Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Updates the create-agent skill to a fully working coding agent - #2

Open
munish-shah wants to merge 2 commits into
OpenRouterArchived:mainfrom
munish-shah:update-create-agent-skill
Open

Updates the create-agent skill to a fully working coding agent#2
munish-shah wants to merge 2 commits into
OpenRouterArchived:mainfrom
munish-shah:update-create-agent-skill

Conversation

@munish-shah

Copy link
Copy Markdown
  • 7 Zod-schema tools: file read/write/edit, shell commands, web search, and web fetch
  • Polished Ink TUI with ASCII banner, streaming text, and tool call indicators
  • Headless mode for CI/CD usage
  • Complete package.json with pinned dependencies and setup instructions

- Fix SDK version from ^0.1.2 to ^0.8.0 (required for getItemsStream)
- Switch from getTextStream() to getItemsStream() for tool execution
- Use SDK tool() helper instead of manual tool definitions
- Fix empty catch blocks that silently swallowed errors
- Fix tool completion indicator logic in CLI
- Add maxToolRounds configuration
Comment thread skills/create-agent/SKILL.md Outdated
Comment thread skills/create-agent/SKILL.md Outdated
Comment thread skills/create-agent/SKILL.md Outdated
Comment thread skills/create-agent/SKILL.md Outdated
Comment thread skills/create-agent/SKILL.md Outdated
Comment thread skills/create-agent/SKILL.md Outdated
Comment thread skills/create-agent/SKILL.md Outdated
Comment thread skills/create-agent/SKILL.md Outdated

@louisgv louisgv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented! Looks like a good start. Let's merge and do another iteration? -- I think the boilerplate and the dependency version can be more dynamic than static -- i.e can we make this skill more robust/durable by leveraging the coding agent's research skills?

…model picker, dynamic deps, Node LTS, generic agent framing, THEME constant for terminal readability
@munish-shah
munish-shah requested a review from louisgv February 20, 2026 15:58
Comment on lines +425 to +448
tool({
name: 'list_files',
description: 'List files in a directory to understand project structure',
inputSchema: z.object({
path: z.string().default('.').describe('Directory to search'),
recursive: z.boolean().default(false).describe('List recursively'),
}),
execute: async (params) => {
call('list_files', params);
try {
const files = await glob(params.recursive ? '**/*' : '*', {
cwd: params.path,
nodir: false,
ignore: ['**/node_modules/**', '**/.git/**', '**/dist/**'],
});
return done('list_files', {
files: files.slice(0, 100),
count: files.length,
});
} catch (e) {
return done('list_files', { error: toErrorMessage(e) });
}
},
}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally better if we can instruct the agent to put tools in a specific files -- make it more modular

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants