Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .claude/skills/create-agent/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ Mirror the closest example. The shape is always:
provider is Bedrock — do NOT default to `anthropic/` + `ANTHROPIC_API_KEY`).
- `const cwd = process.env.SKILLS_DIR ?? process.cwd();` then
`sandbox: local({ cwd })` so skills are discoverable and overridable.
- `tools: [...Object.values(xTools)]` — so the tool module must export ONLY
tools. Put pure helpers in a separate `helpers.ts` (a non-tool export here
becomes a bogus tool; `tsc` will catch it).
- `tools: Object.values(xTools)` (it already returns a fresh array — don't
spread-clone it; for several modules use `[...Object.values(a), ...Object.values(b)]`).
The tool module must export ONLY tools — put pure helpers in a separate
`helpers.ts` (a non-tool export here becomes a bogus tool; `tsc` will catch it).
2. **AGENTS.md** — one or two lines of always-on framing ("You do X. Use the
<skill> skill.").
3. **Skill** `.agents/skills/<name>/SKILL.md` — frontmatter (`name`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ const cwd = process.env.SKILLS_DIR ?? process.cwd();
export default defineAgent(() => ({
model: 'amazon-bedrock/us.anthropic.claude-sonnet-4-6',
sandbox: local({ cwd }),
tools: [...Object.values(githubTools)],
tools: Object.values(githubTools),
}));
2 changes: 1 addition & 1 deletion examples/triage-github-actions/src/agents/github-triage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ const cwd = process.env.SKILLS_DIR ?? process.cwd();
export default defineAgent(() => ({
model: 'amazon-bedrock/us.anthropic.claude-sonnet-4-6',
sandbox: local({ cwd }),
tools: [...Object.values(githubTools)],
tools: Object.values(githubTools),
}));