agentic-toolbox 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +14 -6
- package/dist/cjs/agents/index.cjs +9 -0
- package/dist/cjs/agents/index.cjs.map +1 -0
- package/dist/cjs/cli/args/flags.d.cts +3 -0
- package/dist/cjs/cli/args/flags.d.cts.map +1 -0
- package/dist/cjs/cli/args/index.d.cts +5 -0
- package/dist/cjs/cli/args/index.d.cts.map +1 -0
- package/dist/{cli/args/parser.d.ts → cjs/cli/args/parser.d.cts} +2 -2
- package/dist/cjs/cli/args/parser.d.cts.map +1 -0
- package/dist/{cli/args/strategies.d.ts → cjs/cli/args/strategies.d.cts} +2 -2
- package/dist/cjs/cli/args/strategies.d.cts.map +1 -0
- package/dist/cjs/cli/args/subcommands.d.cts +3 -0
- package/dist/cjs/cli/args/subcommands.d.cts.map +1 -0
- package/dist/cjs/cli/commands/diff.d.cts +3 -0
- package/dist/cjs/cli/commands/diff.d.cts.map +1 -0
- package/dist/{cli/commands/doctor.d.ts → cjs/cli/commands/doctor.d.cts} +2 -2
- package/dist/cjs/cli/commands/doctor.d.cts.map +1 -0
- package/dist/cjs/cli/commands/index.d.cts +6 -0
- package/dist/cjs/cli/commands/index.d.cts.map +1 -0
- package/dist/cjs/cli/commands/init.d.cts +3 -0
- package/dist/cjs/cli/commands/init.d.cts.map +1 -0
- package/dist/cjs/cli/commands/sync.d.cts +3 -0
- package/dist/cjs/cli/commands/sync.d.cts.map +1 -0
- package/dist/cjs/cli/commands/validate.d.cts +3 -0
- package/dist/cjs/cli/commands/validate.d.cts.map +1 -0
- package/dist/cjs/cli/help/index.d.cts +3 -0
- package/dist/cjs/cli/help/index.d.cts.map +1 -0
- package/dist/{cli/help/print-help.d.ts → cjs/cli/help/print-help.d.cts} +1 -1
- package/dist/cjs/cli/help/print-help.d.cts.map +1 -0
- package/dist/{cli/help/templates.d.ts → cjs/cli/help/templates.d.cts} +1 -1
- package/dist/cjs/cli/help/templates.d.cts.map +1 -0
- package/dist/cjs/cli/index.d.cts +5 -0
- package/dist/cjs/cli/index.d.cts.map +1 -0
- package/dist/cjs/cli/run-cli.d.cts +3 -0
- package/dist/cjs/cli/run-cli.d.cts.map +1 -0
- package/dist/{core/config/discovery.d.ts → cjs/core/config/discovery.d.cts} +2 -2
- package/dist/cjs/core/config/discovery.d.cts.map +1 -0
- package/dist/cjs/core/config/index.d.cts +4 -0
- package/dist/cjs/core/config/index.d.cts.map +1 -0
- package/dist/cjs/core/config/loader.d.cts +3 -0
- package/dist/cjs/core/config/loader.d.cts.map +1 -0
- package/dist/{core/config/schema.d.ts → cjs/core/config/schema.d.cts} +2 -2
- package/dist/cjs/core/config/schema.d.cts.map +1 -0
- package/dist/cjs/core/index.d.cts +4 -0
- package/dist/cjs/core/index.d.cts.map +1 -0
- package/dist/{core/sync/engine-internal.d.ts → cjs/core/sync/engine-internal.d.cts} +2 -2
- package/dist/cjs/core/sync/engine-internal.d.cts.map +1 -0
- package/dist/{core/sync/engine.d.ts → cjs/core/sync/engine.d.cts} +2 -2
- package/dist/cjs/core/sync/engine.d.cts.map +1 -0
- package/dist/cjs/core/sync/index.d.cts +5 -0
- package/dist/cjs/core/sync/index.d.cts.map +1 -0
- package/dist/{core/sync/manifest.d.ts → cjs/core/sync/manifest.d.cts} +2 -2
- package/dist/cjs/core/sync/manifest.d.cts.map +1 -0
- package/dist/{core/sync/merger.d.ts → cjs/core/sync/merger.d.cts} +2 -2
- package/dist/cjs/core/sync/merger.d.cts.map +1 -0
- package/dist/cjs/core/sync/targets/index.d.cts +2 -0
- package/dist/cjs/core/sync/targets/index.d.cts.map +1 -0
- package/dist/{core/sync/targets/target-configs.d.ts → cjs/core/sync/targets/target-configs.d.cts} +2 -2
- package/dist/cjs/core/sync/targets/target-configs.d.cts.map +1 -0
- package/dist/cjs/core/transform/index.d.cts +7 -0
- package/dist/cjs/core/transform/index.d.cts.map +1 -0
- package/dist/{core/transform/parser.d.ts → cjs/core/transform/parser.d.cts} +3 -3
- package/dist/cjs/core/transform/parser.d.cts.map +1 -0
- package/dist/cjs/core/transform/pipeline.d.cts +3 -0
- package/dist/cjs/core/transform/pipeline.d.cts.map +1 -0
- package/dist/{core/transform/reassembler.d.ts → cjs/core/transform/reassembler.d.cts} +2 -2
- package/dist/cjs/core/transform/reassembler.d.cts.map +1 -0
- package/dist/{core/transform/stripper.d.ts → cjs/core/transform/stripper.d.cts} +2 -2
- package/dist/cjs/core/transform/stripper.d.cts.map +1 -0
- package/dist/{core/transform/transform-agent.d.ts → cjs/core/transform/transform-agent.d.cts} +2 -2
- package/dist/cjs/core/transform/transform-agent.d.cts.map +1 -0
- package/dist/cjs/index.cjs +1749 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +3 -0
- package/dist/cjs/index.d.cts.map +1 -0
- package/dist/cjs/skills/index.cjs +14 -0
- package/dist/cjs/skills/index.cjs.map +1 -0
- package/dist/{types/cli.d.ts → cjs/types/cli.d.cts} +1 -1
- package/dist/cjs/types/cli.d.cts.map +1 -0
- package/dist/{types/config.d.ts → cjs/types/config.d.cts} +1 -1
- package/dist/cjs/types/config.d.cts.map +1 -0
- package/dist/{types/constants.d.ts → cjs/types/constants.d.cts} +1 -1
- package/dist/cjs/types/constants.d.cts.map +1 -0
- package/dist/cjs/types/errors.d.cts +40 -0
- package/dist/cjs/types/errors.d.cts.map +1 -0
- package/dist/cjs/types/index.d.cts +8 -0
- package/dist/cjs/types/index.d.cts.map +1 -0
- package/dist/{types/sync.d.ts → cjs/types/sync.d.cts} +3 -3
- package/dist/cjs/types/sync.d.cts.map +1 -0
- package/dist/{types/targets.d.ts → cjs/types/targets.d.cts} +2 -2
- package/dist/cjs/types/targets.d.cts.map +1 -0
- package/dist/{types/transform.d.ts → cjs/types/transform.d.cts} +2 -2
- package/dist/cjs/types/transform.d.cts.map +1 -0
- package/dist/{utils/errors/classes.d.ts → cjs/utils/errors/classes.d.cts} +2 -2
- package/dist/cjs/utils/errors/classes.d.cts.map +1 -0
- package/dist/cjs/utils/errors/codes.d.cts +2 -0
- package/dist/cjs/utils/errors/codes.d.cts.map +1 -0
- package/dist/cjs/utils/errors/index.d.cts +4 -0
- package/dist/cjs/utils/errors/index.d.cts.map +1 -0
- package/dist/{utils/errors/messages.d.ts → cjs/utils/errors/messages.d.cts} +2 -2
- package/dist/cjs/utils/errors/messages.d.cts.map +1 -0
- package/dist/{utils/fs/atomic.d.ts → cjs/utils/fs/atomic.d.cts} +1 -1
- package/dist/cjs/utils/fs/atomic.d.cts.map +1 -0
- package/dist/cjs/utils/fs/index.d.cts +5 -0
- package/dist/cjs/utils/fs/index.d.cts.map +1 -0
- package/dist/{utils/fs/operations.d.ts → cjs/utils/fs/operations.d.cts} +1 -1
- package/dist/cjs/utils/fs/operations.d.cts.map +1 -0
- package/dist/{utils/fs/paths.d.ts → cjs/utils/fs/paths.d.cts} +1 -1
- package/dist/cjs/utils/fs/paths.d.cts.map +1 -0
- package/dist/{utils/fs/sanitization.d.ts → cjs/utils/fs/sanitization.d.cts} +1 -1
- package/dist/cjs/utils/fs/sanitization.d.cts.map +1 -0
- package/dist/cjs/utils/index.d.cts +4 -0
- package/dist/cjs/utils/index.d.cts.map +1 -0
- package/dist/{utils/logging/console.d.ts → cjs/utils/logging/console.d.cts} +2 -2
- package/dist/cjs/utils/logging/console.d.cts.map +1 -0
- package/dist/cjs/utils/logging/index.d.cts +3 -0
- package/dist/cjs/utils/logging/index.d.cts.map +1 -0
- package/dist/{utils/logging/levels.d.ts → cjs/utils/logging/levels.d.cts} +1 -1
- package/dist/cjs/utils/logging/levels.d.cts.map +1 -0
- package/dist/esm/agents/Agent.md.sample +384 -0
- package/dist/esm/agents/agentic-tools-creator.md +143 -0
- package/dist/esm/agents/index.js +9 -0
- package/dist/esm/agents/index.js.map +1 -0
- package/dist/esm/cli/args/flags.d.mts +3 -0
- package/dist/esm/cli/args/flags.d.mts.map +1 -0
- package/dist/esm/cli/args/index.d.mts +5 -0
- package/dist/esm/cli/args/index.d.mts.map +1 -0
- package/dist/esm/cli/args/parser.d.mts +5 -0
- package/dist/esm/cli/args/parser.d.mts.map +1 -0
- package/dist/esm/cli/args/strategies.d.mts +7 -0
- package/dist/esm/cli/args/strategies.d.mts.map +1 -0
- package/dist/esm/cli/args/subcommands.d.mts +3 -0
- package/dist/esm/cli/args/subcommands.d.mts.map +1 -0
- package/dist/esm/cli/commands/diff.d.mts +3 -0
- package/dist/esm/cli/commands/diff.d.mts.map +1 -0
- package/dist/esm/cli/commands/doctor.d.mts +8 -0
- package/dist/esm/cli/commands/doctor.d.mts.map +1 -0
- package/dist/esm/cli/commands/index.d.mts +6 -0
- package/dist/esm/cli/commands/index.d.mts.map +1 -0
- package/dist/esm/cli/commands/init.d.mts +3 -0
- package/dist/esm/cli/commands/init.d.mts.map +1 -0
- package/dist/esm/cli/commands/sync.d.mts +3 -0
- package/dist/esm/cli/commands/sync.d.mts.map +1 -0
- package/dist/esm/cli/commands/validate.d.mts +3 -0
- package/dist/esm/cli/commands/validate.d.mts.map +1 -0
- package/dist/esm/cli/help/index.d.mts +3 -0
- package/dist/esm/cli/help/index.d.mts.map +1 -0
- package/dist/esm/cli/help/print-help.d.mts +2 -0
- package/dist/esm/cli/help/print-help.d.mts.map +1 -0
- package/dist/esm/cli/help/templates.d.mts +3 -0
- package/dist/esm/cli/help/templates.d.mts.map +1 -0
- package/dist/esm/cli/index.d.mts +5 -0
- package/dist/esm/cli/index.d.mts.map +1 -0
- package/dist/esm/cli/run-cli.d.mts +3 -0
- package/dist/esm/cli/run-cli.d.mts.map +1 -0
- package/dist/esm/core/config/discovery.d.mts +4 -0
- package/dist/esm/core/config/discovery.d.mts.map +1 -0
- package/dist/esm/core/config/index.d.mts +4 -0
- package/dist/esm/core/config/index.d.mts.map +1 -0
- package/dist/esm/core/config/loader.d.mts +3 -0
- package/dist/esm/core/config/loader.d.mts.map +1 -0
- package/dist/esm/core/config/schema.d.mts +8 -0
- package/dist/esm/core/config/schema.d.mts.map +1 -0
- package/dist/esm/core/index.d.mts +4 -0
- package/dist/esm/core/index.d.mts.map +1 -0
- package/dist/esm/core/sync/engine-internal.d.mts +3 -0
- package/dist/esm/core/sync/engine-internal.d.mts.map +1 -0
- package/dist/esm/core/sync/engine.d.mts +4 -0
- package/dist/esm/core/sync/engine.d.mts.map +1 -0
- package/dist/esm/core/sync/index.d.mts +5 -0
- package/dist/esm/core/sync/index.d.mts.map +1 -0
- package/dist/esm/core/sync/manifest.d.mts +10 -0
- package/dist/esm/core/sync/manifest.d.mts.map +1 -0
- package/dist/esm/core/sync/merger.d.mts +9 -0
- package/dist/esm/core/sync/merger.d.mts.map +1 -0
- package/dist/esm/core/sync/targets/index.d.mts +2 -0
- package/dist/esm/core/sync/targets/index.d.mts.map +1 -0
- package/dist/esm/core/sync/targets/target-configs.d.mts +5 -0
- package/dist/esm/core/sync/targets/target-configs.d.mts.map +1 -0
- package/dist/esm/core/transform/index.d.mts +7 -0
- package/dist/esm/core/transform/index.d.mts.map +1 -0
- package/dist/esm/core/transform/parser.d.mts +16 -0
- package/dist/esm/core/transform/parser.d.mts.map +1 -0
- package/dist/esm/core/transform/pipeline.d.mts +3 -0
- package/dist/esm/core/transform/pipeline.d.mts.map +1 -0
- package/dist/esm/core/transform/reassembler.d.mts +3 -0
- package/dist/esm/core/transform/reassembler.d.mts.map +1 -0
- package/dist/esm/core/transform/stripper.d.mts +3 -0
- package/dist/esm/core/transform/stripper.d.mts.map +1 -0
- package/dist/esm/core/transform/transform-agent.d.mts +3 -0
- package/dist/esm/core/transform/transform-agent.d.mts.map +1 -0
- package/dist/esm/index.d.mts +3 -0
- package/dist/esm/index.d.mts.map +1 -0
- package/dist/esm/index.js +1815 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/skills/SKILL.md.sample +322 -0
- package/dist/esm/skills/agent-creator/SKILL.md +110 -0
- package/dist/esm/skills/agent-creator/assets/examples/code-reviewer.md +68 -0
- package/dist/esm/skills/agent-creator/assets/examples/docs-writer.md +67 -0
- package/dist/esm/skills/agent-creator/assets/examples/read-only-researcher.md +64 -0
- package/dist/esm/skills/agent-creator/references/AGENT_TEMPLATE.md +391 -0
- package/dist/esm/skills/agent-creator/references/frontmatter.md +544 -0
- package/dist/esm/skills/agent-creator/references/prompt.md +449 -0
- package/dist/esm/skills/agent-creator/references/validation.md +309 -0
- package/dist/esm/skills/agentic-resource-gatherer/SKILL.md +249 -0
- package/dist/esm/skills/agentic-resource-gatherer/assets/examples/frontend-developer-agent.md +52 -0
- package/dist/esm/skills/agentic-resource-gatherer/assets/examples/git-formatter-skill.md +52 -0
- package/dist/esm/skills/agentic-resource-gatherer/references/agent-repos.md +190 -0
- package/dist/esm/skills/agentic-resource-gatherer/references/skill-repos.md +225 -0
- package/dist/esm/skills/index.js +14 -0
- package/dist/esm/skills/index.js.map +1 -0
- package/dist/esm/skills/skill-creator/SKILL.md +178 -0
- package/dist/esm/skills/skill-creator/assets/examples/background-knowledge-skill.md +25 -0
- package/dist/esm/skills/skill-creator/assets/examples/code-generation-skill.md +51 -0
- package/dist/esm/skills/skill-creator/assets/examples/simple-git-skill.md +36 -0
- package/dist/esm/skills/skill-creator/references/SKILL_TEMPLATE.md +322 -0
- package/dist/esm/skills/skill-creator/references/frontmatter.md +441 -0
- package/dist/esm/skills/skill-creator/references/prompt.md +384 -0
- package/dist/esm/skills/skill-creator/references/validation.md +282 -0
- package/dist/esm/types/cli.d.mts +68 -0
- package/dist/esm/types/cli.d.mts.map +1 -0
- package/dist/esm/types/config.d.mts +22 -0
- package/dist/esm/types/config.d.mts.map +1 -0
- package/dist/esm/types/constants.d.mts +2 -0
- package/dist/esm/types/constants.d.mts.map +1 -0
- package/dist/esm/types/errors.d.mts +40 -0
- package/dist/esm/types/errors.d.mts.map +1 -0
- package/dist/esm/types/index.d.mts +8 -0
- package/dist/esm/types/index.d.mts.map +1 -0
- package/dist/esm/types/sync.d.mts +26 -0
- package/dist/esm/types/sync.d.mts.map +1 -0
- package/dist/esm/types/targets.d.mts +25 -0
- package/dist/esm/types/targets.d.mts.map +1 -0
- package/dist/esm/types/transform.d.mts +24 -0
- package/dist/esm/types/transform.d.mts.map +1 -0
- package/dist/esm/utils/errors/classes.d.mts +76 -0
- package/dist/esm/utils/errors/classes.d.mts.map +1 -0
- package/dist/esm/utils/errors/codes.d.mts +2 -0
- package/dist/esm/utils/errors/codes.d.mts.map +1 -0
- package/dist/esm/utils/errors/index.d.mts +4 -0
- package/dist/esm/utils/errors/index.d.mts.map +1 -0
- package/dist/esm/utils/errors/messages.d.mts +11 -0
- package/dist/esm/utils/errors/messages.d.mts.map +1 -0
- package/dist/esm/utils/fs/atomic.d.mts +2 -0
- package/dist/esm/utils/fs/atomic.d.mts.map +1 -0
- package/dist/esm/utils/fs/index.d.mts +5 -0
- package/dist/esm/utils/fs/index.d.mts.map +1 -0
- package/dist/esm/utils/fs/operations.d.mts +12 -0
- package/dist/esm/utils/fs/operations.d.mts.map +1 -0
- package/dist/esm/utils/fs/paths.d.mts +9 -0
- package/dist/esm/utils/fs/paths.d.mts.map +1 -0
- package/dist/esm/utils/fs/sanitization.d.mts +11 -0
- package/dist/esm/utils/fs/sanitization.d.mts.map +1 -0
- package/dist/esm/utils/index.d.mts +4 -0
- package/dist/esm/utils/index.d.mts.map +1 -0
- package/dist/esm/utils/logging/console.d.mts +34 -0
- package/dist/esm/utils/logging/console.d.mts.map +1 -0
- package/dist/esm/utils/logging/index.d.mts +3 -0
- package/dist/esm/utils/logging/index.d.mts.map +1 -0
- package/dist/esm/utils/logging/levels.d.mts +23 -0
- package/dist/esm/utils/logging/levels.d.mts.map +1 -0
- package/package.json +22 -13
- package/dist/cli/args/flags.d.ts +0 -3
- package/dist/cli/args/flags.d.ts.map +0 -1
- package/dist/cli/args/flags.js +0 -50
- package/dist/cli/args/flags.js.map +0 -1
- package/dist/cli/args/index.d.ts +0 -5
- package/dist/cli/args/index.d.ts.map +0 -1
- package/dist/cli/args/index.js +0 -6
- package/dist/cli/args/index.js.map +0 -1
- package/dist/cli/args/parser.d.ts.map +0 -1
- package/dist/cli/args/parser.js +0 -88
- package/dist/cli/args/parser.js.map +0 -1
- package/dist/cli/args/strategies.d.ts.map +0 -1
- package/dist/cli/args/strategies.js +0 -49
- package/dist/cli/args/strategies.js.map +0 -1
- package/dist/cli/args/subcommands.d.ts +0 -3
- package/dist/cli/args/subcommands.d.ts.map +0 -1
- package/dist/cli/args/subcommands.js +0 -55
- package/dist/cli/args/subcommands.js.map +0 -1
- package/dist/cli/commands/diff.d.ts +0 -3
- package/dist/cli/commands/diff.d.ts.map +0 -1
- package/dist/cli/commands/diff.js +0 -142
- package/dist/cli/commands/diff.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/doctor.js +0 -104
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/index.d.ts +0 -6
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/index.js +0 -7
- package/dist/cli/commands/index.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -3
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -66
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/sync.d.ts +0 -3
- package/dist/cli/commands/sync.d.ts.map +0 -1
- package/dist/cli/commands/sync.js +0 -56
- package/dist/cli/commands/sync.js.map +0 -1
- package/dist/cli/commands/validate.d.ts +0 -3
- package/dist/cli/commands/validate.d.ts.map +0 -1
- package/dist/cli/commands/validate.js +0 -71
- package/dist/cli/commands/validate.js.map +0 -1
- package/dist/cli/help/index.d.ts +0 -3
- package/dist/cli/help/index.d.ts.map +0 -1
- package/dist/cli/help/index.js +0 -4
- package/dist/cli/help/index.js.map +0 -1
- package/dist/cli/help/print-help.d.ts.map +0 -1
- package/dist/cli/help/print-help.js +0 -13
- package/dist/cli/help/print-help.js.map +0 -1
- package/dist/cli/help/templates.d.ts.map +0 -1
- package/dist/cli/help/templates.js +0 -83
- package/dist/cli/help/templates.js.map +0 -1
- package/dist/cli/index.d.ts +0 -5
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -6
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/run-cli.d.ts +0 -3
- package/dist/cli/run-cli.d.ts.map +0 -1
- package/dist/cli/run-cli.js +0 -58
- package/dist/cli/run-cli.js.map +0 -1
- package/dist/core/config/discovery.d.ts.map +0 -1
- package/dist/core/config/discovery.js +0 -21
- package/dist/core/config/discovery.js.map +0 -1
- package/dist/core/config/index.d.ts +0 -4
- package/dist/core/config/index.d.ts.map +0 -1
- package/dist/core/config/index.js +0 -5
- package/dist/core/config/index.js.map +0 -1
- package/dist/core/config/loader.d.ts +0 -3
- package/dist/core/config/loader.d.ts.map +0 -1
- package/dist/core/config/loader.js +0 -70
- package/dist/core/config/loader.js.map +0 -1
- package/dist/core/config/schema.d.ts.map +0 -1
- package/dist/core/config/schema.js +0 -129
- package/dist/core/config/schema.js.map +0 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -5
- package/dist/core/index.js.map +0 -1
- package/dist/core/sync/engine-internal.d.ts.map +0 -1
- package/dist/core/sync/engine-internal.js +0 -244
- package/dist/core/sync/engine-internal.js.map +0 -1
- package/dist/core/sync/engine.d.ts.map +0 -1
- package/dist/core/sync/engine.js +0 -17
- package/dist/core/sync/engine.js.map +0 -1
- package/dist/core/sync/index.d.ts +0 -5
- package/dist/core/sync/index.d.ts.map +0 -1
- package/dist/core/sync/index.js +0 -6
- package/dist/core/sync/index.js.map +0 -1
- package/dist/core/sync/manifest.d.ts.map +0 -1
- package/dist/core/sync/manifest.js +0 -68
- package/dist/core/sync/manifest.js.map +0 -1
- package/dist/core/sync/merger.d.ts.map +0 -1
- package/dist/core/sync/merger.js +0 -65
- package/dist/core/sync/merger.js.map +0 -1
- package/dist/core/sync/targets/index.d.ts +0 -2
- package/dist/core/sync/targets/index.d.ts.map +0 -1
- package/dist/core/sync/targets/index.js +0 -3
- package/dist/core/sync/targets/index.js.map +0 -1
- package/dist/core/sync/targets/target-configs.d.ts.map +0 -1
- package/dist/core/sync/targets/target-configs.js +0 -8
- package/dist/core/sync/targets/target-configs.js.map +0 -1
- package/dist/core/transform/index.d.ts +0 -7
- package/dist/core/transform/index.d.ts.map +0 -1
- package/dist/core/transform/index.js +0 -7
- package/dist/core/transform/index.js.map +0 -1
- package/dist/core/transform/parser.d.ts.map +0 -1
- package/dist/core/transform/parser.js +0 -152
- package/dist/core/transform/parser.js.map +0 -1
- package/dist/core/transform/pipeline.d.ts +0 -3
- package/dist/core/transform/pipeline.d.ts.map +0 -1
- package/dist/core/transform/pipeline.js +0 -10
- package/dist/core/transform/pipeline.js.map +0 -1
- package/dist/core/transform/reassembler.d.ts.map +0 -1
- package/dist/core/transform/reassembler.js +0 -13
- package/dist/core/transform/reassembler.js.map +0 -1
- package/dist/core/transform/stripper.d.ts.map +0 -1
- package/dist/core/transform/stripper.js +0 -10
- package/dist/core/transform/stripper.js.map +0 -1
- package/dist/core/transform/transform-agent.d.ts.map +0 -1
- package/dist/core/transform/transform-agent.js +0 -42
- package/dist/core/transform/transform-agent.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/types/cli.d.ts.map +0 -1
- package/dist/types/cli.js +0 -3
- package/dist/types/cli.js.map +0 -1
- package/dist/types/config.d.ts.map +0 -1
- package/dist/types/config.js +0 -2
- package/dist/types/config.js.map +0 -1
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/constants.js +0 -3
- package/dist/types/constants.js.map +0 -1
- package/dist/types/errors.d.ts +0 -40
- package/dist/types/errors.d.ts.map +0 -1
- package/dist/types/errors.js +0 -36
- package/dist/types/errors.js.map +0 -1
- package/dist/types/index.d.ts +0 -8
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -9
- package/dist/types/index.js.map +0 -1
- package/dist/types/sync.d.ts.map +0 -1
- package/dist/types/sync.js +0 -2
- package/dist/types/sync.js.map +0 -1
- package/dist/types/targets.d.ts.map +0 -1
- package/dist/types/targets.js +0 -92
- package/dist/types/targets.js.map +0 -1
- package/dist/types/transform.d.ts.map +0 -1
- package/dist/types/transform.js +0 -2
- package/dist/types/transform.js.map +0 -1
- package/dist/utils/errors/classes.d.ts.map +0 -1
- package/dist/utils/errors/classes.js +0 -113
- package/dist/utils/errors/classes.js.map +0 -1
- package/dist/utils/errors/codes.d.ts +0 -2
- package/dist/utils/errors/codes.d.ts.map +0 -1
- package/dist/utils/errors/codes.js +0 -3
- package/dist/utils/errors/codes.js.map +0 -1
- package/dist/utils/errors/index.d.ts +0 -4
- package/dist/utils/errors/index.d.ts.map +0 -1
- package/dist/utils/errors/index.js +0 -5
- package/dist/utils/errors/index.js.map +0 -1
- package/dist/utils/errors/messages.d.ts.map +0 -1
- package/dist/utils/errors/messages.js +0 -13
- package/dist/utils/errors/messages.js.map +0 -1
- package/dist/utils/fs/atomic.d.ts.map +0 -1
- package/dist/utils/fs/atomic.js +0 -24
- package/dist/utils/fs/atomic.js.map +0 -1
- package/dist/utils/fs/index.d.ts +0 -5
- package/dist/utils/fs/index.d.ts.map +0 -1
- package/dist/utils/fs/index.js +0 -6
- package/dist/utils/fs/index.js.map +0 -1
- package/dist/utils/fs/operations.d.ts.map +0 -1
- package/dist/utils/fs/operations.js +0 -60
- package/dist/utils/fs/operations.js.map +0 -1
- package/dist/utils/fs/paths.d.ts.map +0 -1
- package/dist/utils/fs/paths.js +0 -58
- package/dist/utils/fs/paths.js.map +0 -1
- package/dist/utils/fs/sanitization.d.ts.map +0 -1
- package/dist/utils/fs/sanitization.js +0 -57
- package/dist/utils/fs/sanitization.js.map +0 -1
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -5
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logging/console.d.ts.map +0 -1
- package/dist/utils/logging/console.js +0 -133
- package/dist/utils/logging/console.js.map +0 -1
- package/dist/utils/logging/index.d.ts +0 -3
- package/dist/utils/logging/index.d.ts.map +0 -1
- package/dist/utils/logging/index.js +0 -4
- package/dist/utils/logging/index.js.map +0 -1
- package/dist/utils/logging/levels.d.ts.map +0 -1
- package/dist/utils/logging/levels.js +0 -2
- package/dist/utils/logging/levels.js.map +0 -1
- /package/dist/{agents → cjs/agents}/Agent.md.sample +0 -0
- /package/dist/{agents → cjs/agents}/agentic-tools-creator.md +0 -0
- /package/dist/{skills → cjs/skills}/SKILL.md.sample +0 -0
- /package/dist/{skills → cjs/skills}/agent-creator/SKILL.md +0 -0
- /package/dist/{skills → cjs/skills}/agent-creator/assets/examples/code-reviewer.md +0 -0
- /package/dist/{skills → cjs/skills}/agent-creator/assets/examples/docs-writer.md +0 -0
- /package/dist/{skills → cjs/skills}/agent-creator/assets/examples/read-only-researcher.md +0 -0
- /package/dist/{skills → cjs/skills}/agent-creator/references/AGENT_TEMPLATE.md +0 -0
- /package/dist/{skills → cjs/skills}/agent-creator/references/frontmatter.md +0 -0
- /package/dist/{skills → cjs/skills}/agent-creator/references/prompt.md +0 -0
- /package/dist/{skills → cjs/skills}/agent-creator/references/validation.md +0 -0
- /package/dist/{skills → cjs/skills}/agentic-resource-gatherer/SKILL.md +0 -0
- /package/dist/{skills → cjs/skills}/agentic-resource-gatherer/assets/examples/frontend-developer-agent.md +0 -0
- /package/dist/{skills → cjs/skills}/agentic-resource-gatherer/assets/examples/git-formatter-skill.md +0 -0
- /package/dist/{skills → cjs/skills}/agentic-resource-gatherer/references/agent-repos.md +0 -0
- /package/dist/{skills → cjs/skills}/agentic-resource-gatherer/references/skill-repos.md +0 -0
- /package/dist/{skills → cjs/skills}/skill-creator/SKILL.md +0 -0
- /package/dist/{skills → cjs/skills}/skill-creator/assets/examples/background-knowledge-skill.md +0 -0
- /package/dist/{skills → cjs/skills}/skill-creator/assets/examples/code-generation-skill.md +0 -0
- /package/dist/{skills → cjs/skills}/skill-creator/assets/examples/simple-git-skill.md +0 -0
- /package/dist/{skills → cjs/skills}/skill-creator/references/SKILL_TEMPLATE.md +0 -0
- /package/dist/{skills → cjs/skills}/skill-creator/references/frontmatter.md +0 -0
- /package/dist/{skills → cjs/skills}/skill-creator/references/prompt.md +0 -0
- /package/dist/{skills → cjs/skills}/skill-creator/references/validation.md +0 -0
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
# SKILL.md Body Reference
|
|
2
|
+
|
|
3
|
+
Complete reference for writing the Markdown body (system prompt) of SKILL.md files.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
The Markdown body after frontmatter contains the skill instructions. There are no format restrictions - write whatever helps agents perform the task effectively.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Recommended Structure
|
|
14
|
+
|
|
15
|
+
While not required, the following structure is recommended for consistency:
|
|
16
|
+
|
|
17
|
+
### What I Do
|
|
18
|
+
|
|
19
|
+
Clear, concise description of the skill's purpose. This helps agents understand the skill's core capability.
|
|
20
|
+
|
|
21
|
+
```markdown
|
|
22
|
+
## What I Do
|
|
23
|
+
|
|
24
|
+
[Clear, concise description of the skill's purpose]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### When to Use Me
|
|
28
|
+
|
|
29
|
+
Specific trigger conditions and use cases. This helps agents decide when to invoke the skill.
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
## When to Use Me
|
|
33
|
+
|
|
34
|
+
[Specific trigger conditions and use cases]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Instructions
|
|
38
|
+
|
|
39
|
+
Step-by-step instructions for the skill. Use phases or numbered steps for complex workflows.
|
|
40
|
+
|
|
41
|
+
```markdown
|
|
42
|
+
## Instructions
|
|
43
|
+
|
|
44
|
+
### Phase 1: [First Step]
|
|
45
|
+
|
|
46
|
+
1. [Detailed instruction]
|
|
47
|
+
2. [Detailed instruction]
|
|
48
|
+
|
|
49
|
+
### Phase 2: [Second Step]
|
|
50
|
+
|
|
51
|
+
1. [Detailed instruction]
|
|
52
|
+
2. [Detailed instruction]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Output Format
|
|
56
|
+
|
|
57
|
+
Expected output structure. This helps agents understand what to return.
|
|
58
|
+
|
|
59
|
+
```markdown
|
|
60
|
+
## Output Format
|
|
61
|
+
|
|
62
|
+
When providing results:
|
|
63
|
+
- [Format requirement 1]
|
|
64
|
+
- [Format requirement 2]
|
|
65
|
+
- [Format requirement 3]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Examples
|
|
69
|
+
|
|
70
|
+
Example inputs and outputs. This helps agents understand the expected behavior.
|
|
71
|
+
|
|
72
|
+
```markdown
|
|
73
|
+
## Examples
|
|
74
|
+
|
|
75
|
+
### Example 1: [Scenario]
|
|
76
|
+
|
|
77
|
+
**Input:** [What the user provides]
|
|
78
|
+
|
|
79
|
+
**Output:** [What the skill produces]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Content Types
|
|
85
|
+
|
|
86
|
+
Skills can contain different types of content:
|
|
87
|
+
|
|
88
|
+
### Reference Content
|
|
89
|
+
|
|
90
|
+
Adds knowledge agents apply to your current work. Conventions, patterns, style guides, domain knowledge. This content runs inline so agents can use it alongside conversation context.
|
|
91
|
+
|
|
92
|
+
```markdown
|
|
93
|
+
## API Conventions
|
|
94
|
+
|
|
95
|
+
When writing API endpoints:
|
|
96
|
+
- Use RESTful naming conventions
|
|
97
|
+
- Return consistent error formats
|
|
98
|
+
- Include request validation
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Task Content
|
|
102
|
+
|
|
103
|
+
Gives agents step-by-step instructions for a specific action. These are often actions you want to invoke directly with `/skill-name`.
|
|
104
|
+
|
|
105
|
+
```markdown
|
|
106
|
+
## Instructions
|
|
107
|
+
|
|
108
|
+
Deploy the application:
|
|
109
|
+
1. Run the test suite
|
|
110
|
+
2. Build the application
|
|
111
|
+
3. Push to the deployment target
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Background Knowledge
|
|
115
|
+
|
|
116
|
+
Context information that should be available when working in specific areas. Use `user-invocable: false` for this type.
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
## Legacy System Context
|
|
120
|
+
|
|
121
|
+
The legacy payment system uses SOAP XML endpoints at:
|
|
122
|
+
- Processing: https://legacy-pay.example.com/soap/process
|
|
123
|
+
- Refunds: https://legacy-pay.example.com/soap/refund
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Progressive Disclosure
|
|
129
|
+
|
|
130
|
+
Agents load skills progressively, pulling in more detail only as a task calls for it:
|
|
131
|
+
|
|
132
|
+
1. **Metadata** (~100 tokens): `name` and `description` loaded at startup for all skills
|
|
133
|
+
2. **Instructions** (<5000 tokens recommended): Full body loaded when skill activates
|
|
134
|
+
3. **Resources** (as needed): Files in `scripts/`, `references/`, `assets/` loaded only when required
|
|
135
|
+
|
|
136
|
+
Keep your main `SKILL.md` under 500 lines. Move detailed reference material to separate files.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Dynamic Context (Claude Only)
|
|
141
|
+
|
|
142
|
+
### Inline Shell Commands
|
|
143
|
+
|
|
144
|
+
Use `` !`command` `` to inject shell output into skill content. Claude runs the command and replaces the line with its output.
|
|
145
|
+
|
|
146
|
+
**Examples:**
|
|
147
|
+
```markdown
|
|
148
|
+
## Current State
|
|
149
|
+
!`git status --short`
|
|
150
|
+
|
|
151
|
+
## Files
|
|
152
|
+
!`ls -la src/`
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
This is useful for grounding instructions in actual data rather than what agents can guess from open files.
|
|
156
|
+
|
|
157
|
+
### String Substitutions
|
|
158
|
+
|
|
159
|
+
| Variable | Description |
|
|
160
|
+
|----------|-------------|
|
|
161
|
+
| `$ARGUMENTS` | All arguments passed when invoking the skill |
|
|
162
|
+
| `$0`, `$1`, `$2` | Specific arguments by index |
|
|
163
|
+
| `$name` | Named argument from `arguments` field |
|
|
164
|
+
| `${CLAUDE_SESSION_ID}` | Current session ID |
|
|
165
|
+
| `${CLAUDE_EFFORT}` | Current effort level |
|
|
166
|
+
| `${CLAUDE_SKILL_DIR}` | Directory containing this SKILL.md |
|
|
167
|
+
| `${CLAUDE_PROJECT_DIR}` | Project root directory |
|
|
168
|
+
|
|
169
|
+
**Examples:**
|
|
170
|
+
```markdown
|
|
171
|
+
## Session Log
|
|
172
|
+
Log to logs/${CLAUDE_SESSION_ID}.log:
|
|
173
|
+
|
|
174
|
+
$ARGUMENTS
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
```markdown
|
|
178
|
+
## Script Execution
|
|
179
|
+
Run `${CLAUDE_SKILL_DIR}/scripts/helper.sh` to process data.
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## File References
|
|
185
|
+
|
|
186
|
+
When referencing other files in your skill, use relative paths from the skill root:
|
|
187
|
+
|
|
188
|
+
```markdown
|
|
189
|
+
## Additional Resources
|
|
190
|
+
|
|
191
|
+
- For templates, see [template.md](template.md)
|
|
192
|
+
- For examples, see [examples/sample.md](examples/sample.md)
|
|
193
|
+
- To run helper script: `${CLAUDE_SKILL_DIR}/scripts/helper.sh`
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Keep file references one level deep from `SKILL.md`. Avoid deeply nested reference chains.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Conciseness Guidelines
|
|
201
|
+
|
|
202
|
+
The body content stays in context across turns, so every line is a recurring token cost:
|
|
203
|
+
|
|
204
|
+
- State what to do rather than narrating how or why
|
|
205
|
+
- Apply the same conciseness test you would for CLAUDE.md content
|
|
206
|
+
- Remove redundant phrases like "Please" or "You should"
|
|
207
|
+
- Use bullet points instead of prose when possible
|
|
208
|
+
|
|
209
|
+
**Verbose (avoid):**
|
|
210
|
+
```markdown
|
|
211
|
+
You should first make sure to read the file that the user is asking about, and then you should analyze its contents carefully.
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Concise (prefer):**
|
|
215
|
+
```markdown
|
|
216
|
+
1. Read the file
|
|
217
|
+
2. Analyze contents
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Examples from Real Skills
|
|
223
|
+
|
|
224
|
+
### Simple Skill Body
|
|
225
|
+
|
|
226
|
+
```markdown
|
|
227
|
+
## What I Do
|
|
228
|
+
|
|
229
|
+
Display git log in a clean, readable format with:
|
|
230
|
+
- Commit hash (abbreviated)
|
|
231
|
+
- Author name
|
|
232
|
+
- Relative date
|
|
233
|
+
- Commit message
|
|
234
|
+
|
|
235
|
+
## When to Use Me
|
|
236
|
+
|
|
237
|
+
- Reviewing recent commits
|
|
238
|
+
- Preparing standup notes
|
|
239
|
+
- Checking project history
|
|
240
|
+
|
|
241
|
+
## Instructions
|
|
242
|
+
|
|
243
|
+
Run the following command and present the output:
|
|
244
|
+
|
|
245
|
+
!`git log --oneline --graph --decorate -20`
|
|
246
|
+
|
|
247
|
+
Format the output for readability and highlight any merge commits.
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Complex Skill Body with Phases
|
|
251
|
+
|
|
252
|
+
```markdown
|
|
253
|
+
## What I Do
|
|
254
|
+
|
|
255
|
+
Generate comprehensive unit tests for code, including:
|
|
256
|
+
- Test setup and teardown
|
|
257
|
+
- Happy path tests
|
|
258
|
+
- Edge cases
|
|
259
|
+
- Error handling
|
|
260
|
+
- Mocking where appropriate
|
|
261
|
+
|
|
262
|
+
## When to Use Me
|
|
263
|
+
|
|
264
|
+
- Adding test coverage to existing code
|
|
265
|
+
- Creating test suites for new features
|
|
266
|
+
- Improving test quality
|
|
267
|
+
|
|
268
|
+
## Instructions
|
|
269
|
+
|
|
270
|
+
### Phase 1: Analysis
|
|
271
|
+
|
|
272
|
+
1. Read the source file
|
|
273
|
+
2. Identify all public functions and methods
|
|
274
|
+
3. Determine the testing framework from project configuration
|
|
275
|
+
|
|
276
|
+
### Phase 2: Generation
|
|
277
|
+
|
|
278
|
+
1. Create test file with proper imports
|
|
279
|
+
2. Generate test suite structure
|
|
280
|
+
3. Write individual test cases with descriptive names
|
|
281
|
+
4. Add edge case coverage
|
|
282
|
+
5. Include comments explaining complex assertions
|
|
283
|
+
|
|
284
|
+
### Phase 3: Validation
|
|
285
|
+
|
|
286
|
+
1. Verify test syntax is valid
|
|
287
|
+
2. Ensure all imports resolve
|
|
288
|
+
3. Check for missing test cases
|
|
289
|
+
|
|
290
|
+
## Input
|
|
291
|
+
|
|
292
|
+
The user will specify:
|
|
293
|
+
- File path to the source code
|
|
294
|
+
- Testing framework (if not specified, infer from project)
|
|
295
|
+
|
|
296
|
+
## Output
|
|
297
|
+
|
|
298
|
+
A complete test file with:
|
|
299
|
+
- Proper imports
|
|
300
|
+
- Test suite structure
|
|
301
|
+
- Individual test cases
|
|
302
|
+
- Edge case coverage
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### Background Knowledge Body
|
|
306
|
+
|
|
307
|
+
```markdown
|
|
308
|
+
## Legacy API Context
|
|
309
|
+
|
|
310
|
+
The legacy REST API uses these endpoints:
|
|
311
|
+
- Users: GET/POST /api/v1/users
|
|
312
|
+
- Orders: GET/POST /api/v1/orders
|
|
313
|
+
- Auth: POST /api/v1/auth/token
|
|
314
|
+
|
|
315
|
+
Key data structures:
|
|
316
|
+
- UserID: Integer (auto-increment)
|
|
317
|
+
- OrderID: UUID format
|
|
318
|
+
- Timestamps: ISO 8601
|
|
319
|
+
|
|
320
|
+
When modifying API code, always check for backwards
|
|
321
|
+
compatibility with these endpoints.
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
## Common Patterns
|
|
327
|
+
|
|
328
|
+
### Command Execution Pattern
|
|
329
|
+
|
|
330
|
+
```markdown
|
|
331
|
+
## Instructions
|
|
332
|
+
|
|
333
|
+
Run the following command and present the output:
|
|
334
|
+
|
|
335
|
+
!`[command here]`
|
|
336
|
+
|
|
337
|
+
Format the output for readability.
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Multi-Step Workflow Pattern
|
|
341
|
+
|
|
342
|
+
```markdown
|
|
343
|
+
## Instructions
|
|
344
|
+
|
|
345
|
+
### Step 1: [Action]
|
|
346
|
+
|
|
347
|
+
[Instructions]
|
|
348
|
+
|
|
349
|
+
### Step 2: [Action]
|
|
350
|
+
|
|
351
|
+
[Instructions]
|
|
352
|
+
|
|
353
|
+
### Step 3: [Action]
|
|
354
|
+
|
|
355
|
+
[Instructions]
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
### Conditional Logic Pattern
|
|
359
|
+
|
|
360
|
+
```markdown
|
|
361
|
+
## Instructions
|
|
362
|
+
|
|
363
|
+
1. Check [condition]
|
|
364
|
+
2. If [condition] is true:
|
|
365
|
+
- [Action A]
|
|
366
|
+
3. If [condition] is false:
|
|
367
|
+
- [Action B]
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### Input/Output Pattern
|
|
371
|
+
|
|
372
|
+
```markdown
|
|
373
|
+
## Input
|
|
374
|
+
|
|
375
|
+
The user will provide:
|
|
376
|
+
- [Input item 1]
|
|
377
|
+
- [Input item 2]
|
|
378
|
+
|
|
379
|
+
## Output
|
|
380
|
+
|
|
381
|
+
Return:
|
|
382
|
+
- [Output item 1]
|
|
383
|
+
- [Output item 2]
|
|
384
|
+
```
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# SKILL.md Validation Reference
|
|
2
|
+
|
|
3
|
+
Complete validation checklist for SKILL.md files.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## File Structure Validation
|
|
8
|
+
|
|
9
|
+
### File Name and Location
|
|
10
|
+
|
|
11
|
+
| Rule | Constraint |
|
|
12
|
+
|------|------------|
|
|
13
|
+
| File name | Must be `SKILL.md` (all caps) |
|
|
14
|
+
| Directory name | Must match `name` field in frontmatter |
|
|
15
|
+
| Location | Must be inside a directory matching the skill name |
|
|
16
|
+
|
|
17
|
+
**Valid structure:**
|
|
18
|
+
```
|
|
19
|
+
my-skill/
|
|
20
|
+
├── SKILL.md # ✓ Correct
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Invalid structure:**
|
|
24
|
+
```
|
|
25
|
+
my-skill/
|
|
26
|
+
├── skill.md # ✗ Wrong case
|
|
27
|
+
├── Skill.md # ✗ Wrong case
|
|
28
|
+
MY-SKILL/
|
|
29
|
+
├── SKILL.md # ✗ Directory name mismatch
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Frontmatter Validation
|
|
35
|
+
|
|
36
|
+
### `name` Field (Required)
|
|
37
|
+
|
|
38
|
+
| Rule | Constraint |
|
|
39
|
+
|------|------------|
|
|
40
|
+
| Length | 1-64 characters |
|
|
41
|
+
| Characters | Lowercase letters, numbers, hyphens only |
|
|
42
|
+
| Start | Cannot start with hyphen |
|
|
43
|
+
| End | Cannot end with hyphen |
|
|
44
|
+
| Consecutive | Cannot contain consecutive hyphens (`--`) |
|
|
45
|
+
| Match | Must match parent directory name |
|
|
46
|
+
|
|
47
|
+
**Valid examples:**
|
|
48
|
+
```yaml
|
|
49
|
+
name: pdf-processing
|
|
50
|
+
name: data-analysis
|
|
51
|
+
name: code-review
|
|
52
|
+
name: test123
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Invalid examples:**
|
|
56
|
+
```yaml
|
|
57
|
+
name: PDF-Processing # uppercase not allowed
|
|
58
|
+
name: -pdf # cannot start with hyphen
|
|
59
|
+
name: pdf- # cannot end with hyphen
|
|
60
|
+
name: pdf--processing # consecutive hyphens not allowed
|
|
61
|
+
name: pdf_processing # underscore not allowed
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### `description` Field (Required)
|
|
65
|
+
|
|
66
|
+
| Rule | Constraint |
|
|
67
|
+
|------|------------|
|
|
68
|
+
| Length | 1-1024 characters |
|
|
69
|
+
| Content | Must describe what it does AND when to use it |
|
|
70
|
+
|
|
71
|
+
**Description must include:**
|
|
72
|
+
1. What it does (core capability)
|
|
73
|
+
2. When to invoke (trigger conditions)
|
|
74
|
+
3. What NOT to use it for (exclusions)
|
|
75
|
+
4. What it returns (output structure)
|
|
76
|
+
|
|
77
|
+
**Good example:**
|
|
78
|
+
```yaml
|
|
79
|
+
description: >
|
|
80
|
+
Create consistent releases and changelogs from merged PRs. Use when
|
|
81
|
+
preparing a tagged release or generating release notes. Do not use for
|
|
82
|
+
feature branch merges, hotfix deployments, or version bumps without
|
|
83
|
+
release notes. Returns a structured release with version bump
|
|
84
|
+
recommendation, changelog entries, and a ready-to-run gh release command.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Poor examples:**
|
|
88
|
+
```yaml
|
|
89
|
+
description: Helps with releases # Too vague
|
|
90
|
+
description: Release # Missing context
|
|
91
|
+
description: A skill for releases... # Missing "when to use"
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### `license` Field (Optional)
|
|
95
|
+
|
|
96
|
+
| Rule | Constraint |
|
|
97
|
+
|------|------------|
|
|
98
|
+
| Format | License name or reference to bundled license file |
|
|
99
|
+
| Length | No specific limit |
|
|
100
|
+
|
|
101
|
+
**Examples:**
|
|
102
|
+
```yaml
|
|
103
|
+
license: MIT
|
|
104
|
+
license: Apache-2.0
|
|
105
|
+
license: Proprietary. LICENSE.txt has complete terms
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### `compatibility` Field (Optional)
|
|
109
|
+
|
|
110
|
+
| Rule | Constraint |
|
|
111
|
+
|------|------------|
|
|
112
|
+
| Length | 1-500 characters |
|
|
113
|
+
| Content | Environment requirements (product, packages, network) |
|
|
114
|
+
|
|
115
|
+
**Examples:**
|
|
116
|
+
```yaml
|
|
117
|
+
compatibility: Designed for Claude Code (or similar products)
|
|
118
|
+
compatibility: Requires git, docker, jq, and access to the internet
|
|
119
|
+
compatibility: Requires Python 3.14+ and uv
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Most skills do not need this field.
|
|
123
|
+
|
|
124
|
+
### `metadata` Field (Optional)
|
|
125
|
+
|
|
126
|
+
| Rule | Constraint |
|
|
127
|
+
|------|------------|
|
|
128
|
+
| Type | Map from string keys to string values |
|
|
129
|
+
| Keys | String |
|
|
130
|
+
| Values | String |
|
|
131
|
+
|
|
132
|
+
**Example:**
|
|
133
|
+
```yaml
|
|
134
|
+
metadata:
|
|
135
|
+
author: example-org
|
|
136
|
+
version: "1.0"
|
|
137
|
+
audience: developers
|
|
138
|
+
workflow: github
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### `allowed-tools` Field (Optional)
|
|
142
|
+
|
|
143
|
+
| Rule | Constraint |
|
|
144
|
+
|------|------------|
|
|
145
|
+
| Format | Space-separated string or YAML list |
|
|
146
|
+
| Values | Tool names |
|
|
147
|
+
|
|
148
|
+
**Examples:**
|
|
149
|
+
```yaml
|
|
150
|
+
allowed-tools: Read Grep Glob Bash
|
|
151
|
+
allowed-tools: Read, Write, Edit, Bash
|
|
152
|
+
allowed-tools:
|
|
153
|
+
- Read
|
|
154
|
+
- Write
|
|
155
|
+
- Edit
|
|
156
|
+
- Bash
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Claude-Specific Fields
|
|
160
|
+
|
|
161
|
+
| Field | Type | Description |
|
|
162
|
+
|-------|------|-------------|
|
|
163
|
+
| `when_to_use` | String | Additional trigger context |
|
|
164
|
+
| `argument-hint` | String | Autocomplete hint |
|
|
165
|
+
| `arguments` | List | Named positional arguments |
|
|
166
|
+
| `disable-model-invocation` | Boolean | Prevent Claude auto-invocation |
|
|
167
|
+
| `user-invocable` | Boolean | Hide from `/` menu |
|
|
168
|
+
| `disallowed-tools` | List | Tools to remove while active |
|
|
169
|
+
| `model` | String | Model override |
|
|
170
|
+
| `effort` | String | Effort level override |
|
|
171
|
+
| `context` | String | Run in forked subagent |
|
|
172
|
+
| `agent` | String | Subagent type |
|
|
173
|
+
| `background` | Boolean | Run in background |
|
|
174
|
+
| `hooks` | Object | Lifecycle hooks |
|
|
175
|
+
| `paths` | List | Glob patterns for activation |
|
|
176
|
+
| `shell` | String | Shell for inline commands |
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Body Content Validation
|
|
181
|
+
|
|
182
|
+
### Structure
|
|
183
|
+
|
|
184
|
+
| Rule | Constraint |
|
|
185
|
+
|------|------------|
|
|
186
|
+
| Format | Markdown after frontmatter |
|
|
187
|
+
| Length | Under 500 lines recommended |
|
|
188
|
+
| Sections | Recommended but not required |
|
|
189
|
+
|
|
190
|
+
**Recommended sections:**
|
|
191
|
+
- What I Do
|
|
192
|
+
- When to Use Me
|
|
193
|
+
- Instructions
|
|
194
|
+
- Output Format
|
|
195
|
+
- Examples
|
|
196
|
+
|
|
197
|
+
### Quality
|
|
198
|
+
|
|
199
|
+
| Rule | Constraint |
|
|
200
|
+
|------|------------|
|
|
201
|
+
| Clarity | Clear, actionable instructions |
|
|
202
|
+
| Completeness | Covers edge cases |
|
|
203
|
+
| Conciseness | No redundant phrases |
|
|
204
|
+
| Examples | Input/output examples provided |
|
|
205
|
+
|
|
206
|
+
**Conciseness guidelines:**
|
|
207
|
+
- State what to do rather than narrating how or why
|
|
208
|
+
- Remove "Please" and "You should"
|
|
209
|
+
- Use bullet points instead of prose
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Platform-Specific Validation
|
|
214
|
+
|
|
215
|
+
### OpenCode
|
|
216
|
+
|
|
217
|
+
| Rule | Constraint |
|
|
218
|
+
|------|------------|
|
|
219
|
+
| `name` | Required, must match directory |
|
|
220
|
+
| `description` | Required, 1-1024 characters |
|
|
221
|
+
| Other fields | Ignored (not processed) |
|
|
222
|
+
|
|
223
|
+
### Claude
|
|
224
|
+
|
|
225
|
+
| Rule | Constraint |
|
|
226
|
+
|------|------------|
|
|
227
|
+
| `name` | Optional, defaults to directory name |
|
|
228
|
+
| `description` | Required for auto-invocation |
|
|
229
|
+
| `allowed-tools` | Space or comma-separated, or YAML list |
|
|
230
|
+
| `arguments` | Space-separated string or YAML list |
|
|
231
|
+
|
|
232
|
+
### Cross-Platform
|
|
233
|
+
|
|
234
|
+
| Rule | Constraint |
|
|
235
|
+
|------|------------|
|
|
236
|
+
| Directory structure | Follows Agent Skills specification |
|
|
237
|
+
| File name | `SKILL.md` (all caps) |
|
|
238
|
+
| Frontmatter | YAML format |
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Validation Checklist
|
|
243
|
+
|
|
244
|
+
Use this checklist to validate your skill:
|
|
245
|
+
|
|
246
|
+
### File Structure
|
|
247
|
+
- [ ] File is named `SKILL.md` (all caps)
|
|
248
|
+
- [ ] File is in a directory matching the skill name
|
|
249
|
+
|
|
250
|
+
### Frontmatter
|
|
251
|
+
- [ ] `name` is 1-64 characters
|
|
252
|
+
- [ ] `name` contains only lowercase letters, numbers, hyphens
|
|
253
|
+
- [ ] `name` does not start or end with hyphen
|
|
254
|
+
- [ ] `name` does not contain consecutive hyphens
|
|
255
|
+
- [ ] `name` matches directory name
|
|
256
|
+
- [ ] `description` is 1-1024 characters
|
|
257
|
+
- [ ] `description` includes what, when, not-for, returns
|
|
258
|
+
|
|
259
|
+
### Body Content
|
|
260
|
+
- [ ] Has clear, step-by-step instructions
|
|
261
|
+
- [ ] Includes input/output examples
|
|
262
|
+
- [ ] Uses proper markdown formatting
|
|
263
|
+
- [ ] Under 500 lines (or moved to separate files)
|
|
264
|
+
- [ ] File references are one level deep
|
|
265
|
+
|
|
266
|
+
### Optional
|
|
267
|
+
- [ ] `license` field included if applicable
|
|
268
|
+
- [ ] `compatibility` field included if applicable
|
|
269
|
+
- [ ] `metadata` field included if applicable
|
|
270
|
+
- [ ] `allowed-tools` field included if applicable
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## Automated Validation
|
|
275
|
+
|
|
276
|
+
Use the [skills-ref](https://github.com/agentskills/agentskills/tree/main/skills-ref) library to validate skills programmatically:
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
skills-ref validate ./my-skill
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
This checks that `SKILL.md` frontmatter is valid and follows all naming conventions.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared options strictly applicable to every executing command handler.
|
|
3
|
+
*/
|
|
4
|
+
export interface BaseCommandArgs {
|
|
5
|
+
configPath?: string;
|
|
6
|
+
verbose?: boolean;
|
|
7
|
+
quiet?: boolean;
|
|
8
|
+
noColor?: boolean;
|
|
9
|
+
json?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** Arguments for 'agentic-toolbox sync' */
|
|
12
|
+
export interface SyncArgs extends BaseCommandArgs {
|
|
13
|
+
dryRun?: boolean;
|
|
14
|
+
incremental?: boolean;
|
|
15
|
+
targets?: string[];
|
|
16
|
+
}
|
|
17
|
+
/** Arguments for 'agentic-toolbox init' */
|
|
18
|
+
export interface InitArgs extends BaseCommandArgs {
|
|
19
|
+
force?: boolean;
|
|
20
|
+
targets?: string[];
|
|
21
|
+
}
|
|
22
|
+
/** Arguments for 'agentic-toolbox validate' */
|
|
23
|
+
export interface ValidateArgs extends BaseCommandArgs {
|
|
24
|
+
}
|
|
25
|
+
/** Arguments for 'agentic-toolbox diff' */
|
|
26
|
+
export interface DiffArgs extends BaseCommandArgs {
|
|
27
|
+
targets?: string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Top-level CLI arguments produced by the parser.
|
|
31
|
+
* Contains only explicitly defined and supported flags. No index signature.
|
|
32
|
+
*/
|
|
33
|
+
export interface CliArgs extends BaseCommandArgs {
|
|
34
|
+
command?: string;
|
|
35
|
+
help?: boolean;
|
|
36
|
+
version?: boolean;
|
|
37
|
+
dryRun?: boolean;
|
|
38
|
+
incremental?: boolean;
|
|
39
|
+
force?: boolean;
|
|
40
|
+
targets?: string[];
|
|
41
|
+
}
|
|
42
|
+
export interface FlagDefinition {
|
|
43
|
+
name: string;
|
|
44
|
+
alias?: string;
|
|
45
|
+
description: string;
|
|
46
|
+
type: 'boolean' | 'string' | 'string[]';
|
|
47
|
+
default?: unknown;
|
|
48
|
+
}
|
|
49
|
+
export interface FlagParseResult {
|
|
50
|
+
value: unknown;
|
|
51
|
+
nextIndex: number;
|
|
52
|
+
}
|
|
53
|
+
export interface FlagStrategy {
|
|
54
|
+
parse(flagDef: FlagDefinition, rawFlag: string, argv: string[], currentIndex: number, currentValue?: unknown): FlagParseResult;
|
|
55
|
+
}
|
|
56
|
+
export interface SubcommandDefinition {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
flags: FlagDefinition[];
|
|
60
|
+
handler: (args: CliArgs) => Promise<CommandResult>;
|
|
61
|
+
}
|
|
62
|
+
export interface CommandResult {
|
|
63
|
+
success: boolean;
|
|
64
|
+
exitCode: number;
|
|
65
|
+
message?: string;
|
|
66
|
+
error?: Error;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=cli.d.mts.map
|