@open-agent-toolkit/cli 0.0.10
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/README.md +50 -0
- package/assets/agents/oat-codebase-mapper.md +275 -0
- package/assets/agents/oat-reviewer.md +350 -0
- package/assets/agents/skeptical-evaluator.md +126 -0
- package/assets/docs/contributing/code.md +95 -0
- package/assets/docs/contributing/commit-conventions.md +41 -0
- package/assets/docs/contributing/design-principles.md +124 -0
- package/assets/docs/contributing/documentation.md +69 -0
- package/assets/docs/contributing/hooks-and-safety.md +31 -0
- package/assets/docs/contributing/index.md +18 -0
- package/assets/docs/contributing/markdown-features.md +117 -0
- package/assets/docs/contributing/skills.md +68 -0
- package/assets/docs/guide/cli-reference.md +211 -0
- package/assets/docs/guide/concepts.md +88 -0
- package/assets/docs/guide/configuration.md +130 -0
- package/assets/docs/guide/documentation/commands.md +157 -0
- package/assets/docs/guide/documentation/index.md +27 -0
- package/assets/docs/guide/documentation/quickstart.md +164 -0
- package/assets/docs/guide/documentation/workflows.md +67 -0
- package/assets/docs/guide/getting-started.md +63 -0
- package/assets/docs/guide/ideas/index.md +34 -0
- package/assets/docs/guide/ideas/lifecycle.md +106 -0
- package/assets/docs/guide/index.md +20 -0
- package/assets/docs/guide/provider-sync/commands.md +100 -0
- package/assets/docs/guide/provider-sync/config.md +77 -0
- package/assets/docs/guide/provider-sync/index.md +65 -0
- package/assets/docs/guide/provider-sync/manifest-and-drift.md +55 -0
- package/assets/docs/guide/provider-sync/providers.md +67 -0
- package/assets/docs/guide/provider-sync/scope-and-surface.md +64 -0
- package/assets/docs/guide/skills/index.md +115 -0
- package/assets/docs/guide/tool-packs.md +167 -0
- package/assets/docs/guide/workflow/artifacts.md +44 -0
- package/assets/docs/guide/workflow/hill-checkpoints.md +53 -0
- package/assets/docs/guide/workflow/index.md +34 -0
- package/assets/docs/guide/workflow/lifecycle.md +207 -0
- package/assets/docs/guide/workflow/pr-flow.md +55 -0
- package/assets/docs/guide/workflow/repo-analysis.md +96 -0
- package/assets/docs/guide/workflow/reviews.md +98 -0
- package/assets/docs/guide/workflow/state-machine.md +74 -0
- package/assets/docs/index.md +45 -0
- package/assets/docs/quickstart.md +162 -0
- package/assets/docs/reference/docs-index-contract.md +53 -0
- package/assets/docs/reference/file-locations.md +109 -0
- package/assets/docs/reference/index.md +29 -0
- package/assets/docs/reference/oat-directory-structure.md +236 -0
- package/assets/docs/reference/troubleshooting.md +63 -0
- package/assets/public-package-versions.json +6 -0
- package/assets/scripts/resolve-tracking.sh +233 -0
- package/assets/skills/analyze/SKILL.md +358 -0
- package/assets/skills/compare/SKILL.md +276 -0
- package/assets/skills/create-agnostic-skill/SKILL.md +410 -0
- package/assets/skills/create-agnostic-skill/references/skill-template.md +195 -0
- package/assets/skills/deep-research/SKILL.md +350 -0
- package/assets/skills/deep-research/references/schema-analysis.md +93 -0
- package/assets/skills/deep-research/references/schema-architectural.md +75 -0
- package/assets/skills/deep-research/references/schema-base.md +70 -0
- package/assets/skills/deep-research/references/schema-comparative.md +72 -0
- package/assets/skills/deep-research/references/schema-conceptual.md +68 -0
- package/assets/skills/deep-research/references/schema-technical.md +64 -0
- package/assets/skills/oat-agent-instructions-analyze/SKILL.md +500 -0
- package/assets/skills/oat-agent-instructions-analyze/references/analysis-artifact-template.md +248 -0
- package/assets/skills/oat-agent-instructions-analyze/references/bundle-summary-template.md +31 -0
- package/assets/skills/oat-agent-instructions-analyze/references/directory-assessment-criteria.md +93 -0
- package/assets/skills/oat-agent-instructions-analyze/references/docs/agent-instruction.md +575 -0
- package/assets/skills/oat-agent-instructions-analyze/references/docs/cursor-rules-files.md +510 -0
- package/assets/skills/oat-agent-instructions-analyze/references/docs/provider-reference.md +429 -0
- package/assets/skills/oat-agent-instructions-analyze/references/docs/rules-files.md +594 -0
- package/assets/skills/oat-agent-instructions-analyze/references/file-type-discovery-checklist.md +273 -0
- package/assets/skills/oat-agent-instructions-analyze/references/quality-checklist.md +125 -0
- package/assets/skills/oat-agent-instructions-analyze/references/recommendation-pack-template.md +45 -0
- package/assets/skills/oat-agent-instructions-analyze/references/recommendations-manifest-template.yaml +27 -0
- package/assets/skills/oat-agent-instructions-analyze/scripts/resolve-instruction-files.sh +120 -0
- package/assets/skills/oat-agent-instructions-analyze/scripts/resolve-providers.sh +135 -0
- package/assets/skills/oat-agent-instructions-apply/SKILL.md +507 -0
- package/assets/skills/oat-agent-instructions-apply/references/apply-plan-template.md +80 -0
- package/assets/skills/oat-agent-instructions-apply/references/docs/agent-instruction.md +575 -0
- package/assets/skills/oat-agent-instructions-apply/references/docs/cursor-rules-files.md +510 -0
- package/assets/skills/oat-agent-instructions-apply/references/docs/provider-reference.md +429 -0
- package/assets/skills/oat-agent-instructions-apply/references/docs/rules-files.md +594 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/agents-md-root.md +85 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/agents-md-scoped.md +62 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/frontmatter/claude-rule.md +67 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/frontmatter/copilot-instruction.md +70 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/frontmatter/copilot-shim.md +35 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/frontmatter/cursor-rule.md +84 -0
- package/assets/skills/oat-agent-instructions-apply/references/instruction-file-templates/glob-scoped-rule.md +59 -0
- package/assets/skills/oat-docs/SKILL.md +214 -0
- package/assets/skills/oat-docs-analyze/SKILL.md +355 -0
- package/assets/skills/oat-docs-analyze/references/analysis-artifact-template.md +192 -0
- package/assets/skills/oat-docs-analyze/references/directory-assessment-criteria.md +46 -0
- package/assets/skills/oat-docs-analyze/references/quality-checklist.md +48 -0
- package/assets/skills/oat-docs-apply/SKILL.md +339 -0
- package/assets/skills/oat-docs-apply/references/apply-plan-template.md +69 -0
- package/assets/skills/oat-doctor/SKILL.md +293 -0
- package/assets/skills/oat-idea-ideate/SKILL.md +187 -0
- package/assets/skills/oat-idea-new/SKILL.md +152 -0
- package/assets/skills/oat-idea-scratchpad/SKILL.md +115 -0
- package/assets/skills/oat-idea-summarize/SKILL.md +172 -0
- package/assets/skills/oat-pjm-add-backlog-item/SKILL.md +155 -0
- package/assets/skills/oat-pjm-review-backlog/SKILL.md +171 -0
- package/assets/skills/oat-pjm-review-backlog/references/backlog-review-template.md +172 -0
- package/assets/skills/oat-pjm-update-repo-reference/SKILL.md +128 -0
- package/assets/skills/oat-project-capture/SKILL.md +306 -0
- package/assets/skills/oat-project-clear-active/SKILL.md +50 -0
- package/assets/skills/oat-project-complete/SKILL.md +461 -0
- package/assets/skills/oat-project-design/SKILL.md +461 -0
- package/assets/skills/oat-project-discover/SKILL.md +395 -0
- package/assets/skills/oat-project-document/SKILL.md +468 -0
- package/assets/skills/oat-project-implement/SKILL.md +736 -0
- package/assets/skills/oat-project-import-plan/SKILL.md +228 -0
- package/assets/skills/oat-project-import-plan/scripts/find-recent-provider-plans.sh +149 -0
- package/assets/skills/oat-project-new/SKILL.md +74 -0
- package/assets/skills/oat-project-next/SKILL.md +345 -0
- package/assets/skills/oat-project-open/SKILL.md +47 -0
- package/assets/skills/oat-project-plan/SKILL.md +415 -0
- package/assets/skills/oat-project-plan-writing/SKILL.md +116 -0
- package/assets/skills/oat-project-pr-final/SKILL.md +391 -0
- package/assets/skills/oat-project-pr-progress/SKILL.md +354 -0
- package/assets/skills/oat-project-progress/SKILL.md +342 -0
- package/assets/skills/oat-project-promote-spec-driven/SKILL.md +155 -0
- package/assets/skills/oat-project-quick-start/SKILL.md +363 -0
- package/assets/skills/oat-project-reconcile/SKILL.md +738 -0
- package/assets/skills/oat-project-review-provide/SKILL.md +728 -0
- package/assets/skills/oat-project-review-receive/SKILL.md +641 -0
- package/assets/skills/oat-project-review-receive-remote/SKILL.md +235 -0
- package/assets/skills/oat-project-revise/SKILL.md +316 -0
- package/assets/skills/oat-project-spec/SKILL.md +471 -0
- package/assets/skills/oat-project-subagent-implement/SKILL.md +549 -0
- package/assets/skills/oat-project-subagent-implement/examples/pattern-hill-checkpoint.md +110 -0
- package/assets/skills/oat-project-subagent-implement/examples/pattern-parallel-phases.md +118 -0
- package/assets/skills/oat-project-subagent-implement/scripts/dispatch.sh +133 -0
- package/assets/skills/oat-project-subagent-implement/scripts/reconcile.sh +182 -0
- package/assets/skills/oat-project-subagent-implement/scripts/review-gate.sh +187 -0
- package/assets/skills/oat-project-subagent-implement/tests/fixtures/sample-plan.md +234 -0
- package/assets/skills/oat-project-subagent-implement/tests/test-dry-run.sh +126 -0
- package/assets/skills/oat-project-subagent-implement/tests/test-hill-checkpoint.sh +127 -0
- package/assets/skills/oat-project-subagent-implement/tests/test-reconcile.sh +254 -0
- package/assets/skills/oat-project-subagent-implement/tests/test-review-gate.sh +220 -0
- package/assets/skills/oat-project-summary/SKILL.md +227 -0
- package/assets/skills/oat-repo-knowledge-index/SKILL.md +724 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/architecture.md +83 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/concerns.md +97 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/conventions.md +100 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/integrations.md +91 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/stack.md +86 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/structure.md +88 -0
- package/assets/skills/oat-repo-knowledge-index/references/templates/testing.md +137 -0
- package/assets/skills/oat-repo-maintainability-review/SKILL.md +198 -0
- package/assets/skills/oat-repo-maintainability-review/references/dx-checklist.md +33 -0
- package/assets/skills/oat-repo-maintainability-review/references/repo-review-artifact-template.md +72 -0
- package/assets/skills/oat-repo-maintainability-review/references/repo-review-rubric.md +66 -0
- package/assets/skills/oat-repo-maintainability-review/scripts/resolve-analysis-output.sh +162 -0
- package/assets/skills/oat-review-provide/SKILL.md +231 -0
- package/assets/skills/oat-review-provide/references/review-artifact-template.md +55 -0
- package/assets/skills/oat-review-provide/scripts/resolve-review-output.sh +124 -0
- package/assets/skills/oat-review-receive/SKILL.md +238 -0
- package/assets/skills/oat-review-receive-remote/SKILL.md +250 -0
- package/assets/skills/oat-worktree-bootstrap/SKILL.md +208 -0
- package/assets/skills/oat-worktree-bootstrap/references/worktree-conventions.md +58 -0
- package/assets/skills/oat-worktree-bootstrap-auto/SKILL.md +245 -0
- package/assets/skills/oat-worktree-bootstrap-auto/scripts/bootstrap.sh +194 -0
- package/assets/skills/skeptic/SKILL.md +261 -0
- package/assets/skills/synthesize/SKILL.md +361 -0
- package/assets/templates/backlog-item.md +24 -0
- package/assets/templates/design.md +315 -0
- package/assets/templates/discovery.md +135 -0
- package/assets/templates/docs-app-fuma/app/[[...slug]]/page.tsx +30 -0
- package/assets/templates/docs-app-fuma/app/api/search/route.ts +8 -0
- package/assets/templates/docs-app-fuma/app/globals.css +69 -0
- package/assets/templates/docs-app-fuma/app/layout.tsx +26 -0
- package/assets/templates/docs-app-fuma/docs/contributing.md +71 -0
- package/assets/templates/docs-app-fuma/docs/getting-started.md +40 -0
- package/assets/templates/docs-app-fuma/docs/index.md +13 -0
- package/assets/templates/docs-app-fuma/lib/source.ts +8 -0
- package/assets/templates/docs-app-fuma/next.config.js +6 -0
- package/assets/templates/docs-app-fuma/package.json.template +38 -0
- package/assets/templates/docs-app-fuma/postcss.config.mjs +7 -0
- package/assets/templates/docs-app-fuma/source.config.ts +14 -0
- package/assets/templates/docs-app-fuma/tsconfig.json +25 -0
- package/assets/templates/docs-app-mkdocs/docs/contributing.md +122 -0
- package/assets/templates/docs-app-mkdocs/docs/getting-started.md +28 -0
- package/assets/templates/docs-app-mkdocs/docs/index.md +8 -0
- package/assets/templates/docs-app-mkdocs/mkdocs.yml +47 -0
- package/assets/templates/docs-app-mkdocs/package.json.template +19 -0
- package/assets/templates/docs-app-mkdocs/requirements.txt +6 -0
- package/assets/templates/docs-app-mkdocs/setup-docs.sh +18 -0
- package/assets/templates/ideas/idea-discovery.md +39 -0
- package/assets/templates/ideas/idea-summary.md +42 -0
- package/assets/templates/ideas/ideas-backlog.md +21 -0
- package/assets/templates/ideas/ideas-scratchpad.md +10 -0
- package/assets/templates/implementation.md +207 -0
- package/assets/templates/plan.md +171 -0
- package/assets/templates/roadmap.md +24 -0
- package/assets/templates/spec.md +138 -0
- package/assets/templates/state.md +49 -0
- package/assets/templates/summary.md +82 -0
- package/dist/agents/canonical/index.d.ts +4 -0
- package/dist/agents/canonical/index.d.ts.map +1 -0
- package/dist/agents/canonical/index.js +2 -0
- package/dist/agents/canonical/parse.d.ts +4 -0
- package/dist/agents/canonical/parse.d.ts.map +1 -0
- package/dist/agents/canonical/parse.js +97 -0
- package/dist/agents/canonical/render.d.ts +3 -0
- package/dist/agents/canonical/render.d.ts.map +1 -0
- package/dist/agents/canonical/render.js +17 -0
- package/dist/agents/canonical/types.d.ts +22 -0
- package/dist/agents/canonical/types.d.ts.map +1 -0
- package/dist/agents/canonical/types.js +1 -0
- package/dist/app/command-context.d.ts +21 -0
- package/dist/app/command-context.d.ts.map +1 -0
- package/dist/app/command-context.js +18 -0
- package/dist/app/create-program.d.ts +3 -0
- package/dist/app/create-program.d.ts.map +1 -0
- package/dist/app/create-program.js +17 -0
- package/dist/commands/__tests__/helpers.d.ts +12 -0
- package/dist/commands/__tests__/helpers.d.ts.map +1 -0
- package/dist/commands/__tests__/helpers.js +36 -0
- package/dist/commands/backlog/index.d.ts +14 -0
- package/dist/commands/backlog/index.d.ts.map +1 -0
- package/dist/commands/backlog/index.js +80 -0
- package/dist/commands/backlog/init.d.ts +2 -0
- package/dist/commands/backlog/init.d.ts.map +1 -0
- package/dist/commands/backlog/init.js +66 -0
- package/dist/commands/backlog/regenerate-index.d.ts +2 -0
- package/dist/commands/backlog/regenerate-index.d.ts.map +1 -0
- package/dist/commands/backlog/regenerate-index.js +78 -0
- package/dist/commands/backlog/shared/generate-id.d.ts +4 -0
- package/dist/commands/backlog/shared/generate-id.d.ts.map +1 -0
- package/dist/commands/backlog/shared/generate-id.js +65 -0
- package/dist/commands/cleanup/artifacts/artifacts.d.ts +44 -0
- package/dist/commands/cleanup/artifacts/artifacts.d.ts.map +1 -0
- package/dist/commands/cleanup/artifacts/artifacts.js +381 -0
- package/dist/commands/cleanup/artifacts/artifacts.types.d.ts +13 -0
- package/dist/commands/cleanup/artifacts/artifacts.types.d.ts.map +1 -0
- package/dist/commands/cleanup/artifacts/artifacts.types.js +1 -0
- package/dist/commands/cleanup/artifacts/artifacts.utils.d.ts +14 -0
- package/dist/commands/cleanup/artifacts/artifacts.utils.d.ts.map +1 -0
- package/dist/commands/cleanup/artifacts/artifacts.utils.js +74 -0
- package/dist/commands/cleanup/cleanup.types.d.ts +26 -0
- package/dist/commands/cleanup/cleanup.types.d.ts.map +1 -0
- package/dist/commands/cleanup/cleanup.types.js +1 -0
- package/dist/commands/cleanup/cleanup.utils.d.ts +17 -0
- package/dist/commands/cleanup/cleanup.utils.d.ts.map +1 -0
- package/dist/commands/cleanup/cleanup.utils.js +44 -0
- package/dist/commands/cleanup/index.d.ts +3 -0
- package/dist/commands/cleanup/index.d.ts.map +1 -0
- package/dist/commands/cleanup/index.js +9 -0
- package/dist/commands/cleanup/project/project.d.ts +20 -0
- package/dist/commands/cleanup/project/project.d.ts.map +1 -0
- package/dist/commands/cleanup/project/project.js +263 -0
- package/dist/commands/cleanup/project/project.utils.d.ts +8 -0
- package/dist/commands/cleanup/project/project.utils.d.ts.map +1 -0
- package/dist/commands/cleanup/project/project.utils.js +48 -0
- package/dist/commands/config/index.d.ts +16 -0
- package/dist/commands/config/index.d.ts.map +1 -0
- package/dist/commands/config/index.js +700 -0
- package/dist/commands/docs/analyze.d.ts +8 -0
- package/dist/commands/docs/analyze.d.ts.map +1 -0
- package/dist/commands/docs/analyze.js +45 -0
- package/dist/commands/docs/apply.d.ts +8 -0
- package/dist/commands/docs/apply.d.ts.map +1 -0
- package/dist/commands/docs/apply.js +45 -0
- package/dist/commands/docs/index-generate/generator.d.ts +9 -0
- package/dist/commands/docs/index-generate/generator.d.ts.map +1 -0
- package/dist/commands/docs/index-generate/generator.js +114 -0
- package/dist/commands/docs/index-generate/index.d.ts +16 -0
- package/dist/commands/docs/index-generate/index.d.ts.map +1 -0
- package/dist/commands/docs/index-generate/index.js +72 -0
- package/dist/commands/docs/index.d.ts +3 -0
- package/dist/commands/docs/index.d.ts.map +1 -0
- package/dist/commands/docs/index.js +17 -0
- package/dist/commands/docs/init/index.d.ts +18 -0
- package/dist/commands/docs/init/index.d.ts.map +1 -0
- package/dist/commands/docs/init/index.js +129 -0
- package/dist/commands/docs/init/resolve-options.d.ts +41 -0
- package/dist/commands/docs/init/resolve-options.d.ts.map +1 -0
- package/dist/commands/docs/init/resolve-options.js +120 -0
- package/dist/commands/docs/init/scaffold.d.ts +18 -0
- package/dist/commands/docs/init/scaffold.d.ts.map +1 -0
- package/dist/commands/docs/init/scaffold.js +233 -0
- package/dist/commands/docs/migrate/codemod.d.ts +6 -0
- package/dist/commands/docs/migrate/codemod.d.ts.map +1 -0
- package/dist/commands/docs/migrate/codemod.js +62 -0
- package/dist/commands/docs/migrate/frontmatter.d.ts +12 -0
- package/dist/commands/docs/migrate/frontmatter.d.ts.map +1 -0
- package/dist/commands/docs/migrate/frontmatter.js +55 -0
- package/dist/commands/docs/migrate/index.d.ts +18 -0
- package/dist/commands/docs/migrate/index.d.ts.map +1 -0
- package/dist/commands/docs/migrate/index.js +138 -0
- package/dist/commands/docs/nav/contents.d.ts +14 -0
- package/dist/commands/docs/nav/contents.d.ts.map +1 -0
- package/dist/commands/docs/nav/contents.js +106 -0
- package/dist/commands/docs/nav/index.d.ts +3 -0
- package/dist/commands/docs/nav/index.d.ts.map +1 -0
- package/dist/commands/docs/nav/index.js +7 -0
- package/dist/commands/docs/nav/sync.d.ts +20 -0
- package/dist/commands/docs/nav/sync.d.ts.map +1 -0
- package/dist/commands/docs/nav/sync.js +92 -0
- package/dist/commands/doctor/index.d.ts +32 -0
- package/dist/commands/doctor/index.d.ts.map +1 -0
- package/dist/commands/doctor/index.js +373 -0
- package/dist/commands/index-cmd/index.d.ts +11 -0
- package/dist/commands/index-cmd/index.d.ts.map +1 -0
- package/dist/commands/index-cmd/index.js +62 -0
- package/dist/commands/index-cmd/thin-index.d.ts +19 -0
- package/dist/commands/index-cmd/thin-index.d.ts.map +1 -0
- package/dist/commands/index-cmd/thin-index.js +330 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +38 -0
- package/dist/commands/init/detect-docs.d.ts +11 -0
- package/dist/commands/init/detect-docs.d.ts.map +1 -0
- package/dist/commands/init/detect-docs.js +51 -0
- package/dist/commands/init/gitignore.d.ts +6 -0
- package/dist/commands/init/gitignore.d.ts.map +1 -0
- package/dist/commands/init/gitignore.js +41 -0
- package/dist/commands/init/index.d.ts +70 -0
- package/dist/commands/init/index.d.ts.map +1 -0
- package/dist/commands/init/index.js +570 -0
- package/dist/commands/init/tools/core/index.d.ts +12 -0
- package/dist/commands/init/tools/core/index.d.ts.map +1 -0
- package/dist/commands/init/tools/core/index.js +67 -0
- package/dist/commands/init/tools/core/install-core.d.ts +30 -0
- package/dist/commands/init/tools/core/install-core.d.ts.map +1 -0
- package/dist/commands/init/tools/core/install-core.js +50 -0
- package/dist/commands/init/tools/docs/index.d.ts +17 -0
- package/dist/commands/init/tools/docs/index.d.ts.map +1 -0
- package/dist/commands/init/tools/docs/index.js +110 -0
- package/dist/commands/init/tools/docs/install-docs.d.ts +23 -0
- package/dist/commands/init/tools/docs/install-docs.d.ts.map +1 -0
- package/dist/commands/init/tools/docs/install-docs.js +58 -0
- package/dist/commands/init/tools/ideas/index.d.ts +16 -0
- package/dist/commands/init/tools/ideas/index.d.ts.map +1 -0
- package/dist/commands/init/tools/ideas/index.js +94 -0
- package/dist/commands/init/tools/ideas/install-ideas.d.ts +25 -0
- package/dist/commands/init/tools/ideas/install-ideas.d.ts.map +1 -0
- package/dist/commands/init/tools/ideas/install-ideas.js +78 -0
- package/dist/commands/init/tools/index.d.ts +51 -0
- package/dist/commands/init/tools/index.d.ts.map +1 -0
- package/dist/commands/init/tools/index.js +387 -0
- package/dist/commands/init/tools/project-management/index.d.ts +12 -0
- package/dist/commands/init/tools/project-management/index.d.ts.map +1 -0
- package/dist/commands/init/tools/project-management/index.js +61 -0
- package/dist/commands/init/tools/project-management/install-project-management.d.ts +22 -0
- package/dist/commands/init/tools/project-management/install-project-management.d.ts.map +1 -0
- package/dist/commands/init/tools/project-management/install-project-management.js +52 -0
- package/dist/commands/init/tools/research/index.d.ts +17 -0
- package/dist/commands/init/tools/research/index.d.ts.map +1 -0
- package/dist/commands/init/tools/research/index.js +110 -0
- package/dist/commands/init/tools/research/install-research.d.ts +23 -0
- package/dist/commands/init/tools/research/install-research.d.ts.map +1 -0
- package/dist/commands/init/tools/research/install-research.js +52 -0
- package/dist/commands/init/tools/shared/copy-helpers.d.ts +12 -0
- package/dist/commands/init/tools/shared/copy-helpers.d.ts.map +1 -0
- package/dist/commands/init/tools/shared/copy-helpers.js +52 -0
- package/dist/commands/init/tools/shared/skill-manifest.d.ts +22 -0
- package/dist/commands/init/tools/shared/skill-manifest.d.ts.map +1 -0
- package/dist/commands/init/tools/shared/skill-manifest.js +102 -0
- package/dist/commands/init/tools/shared/version.d.ts +3 -0
- package/dist/commands/init/tools/shared/version.d.ts.map +1 -0
- package/dist/commands/init/tools/shared/version.js +27 -0
- package/dist/commands/init/tools/utility/index.d.ts +17 -0
- package/dist/commands/init/tools/utility/index.d.ts.map +1 -0
- package/dist/commands/init/tools/utility/index.js +109 -0
- package/dist/commands/init/tools/utility/install-utility.d.ts +20 -0
- package/dist/commands/init/tools/utility/install-utility.d.ts.map +1 -0
- package/dist/commands/init/tools/utility/install-utility.js +35 -0
- package/dist/commands/init/tools/workflows/index.d.ts +14 -0
- package/dist/commands/init/tools/workflows/index.d.ts.map +1 -0
- package/dist/commands/init/tools/workflows/index.js +84 -0
- package/dist/commands/init/tools/workflows/install-workflows.d.ts +32 -0
- package/dist/commands/init/tools/workflows/install-workflows.d.ts.map +1 -0
- package/dist/commands/init/tools/workflows/install-workflows.js +135 -0
- package/dist/commands/instructions/index.d.ts +3 -0
- package/dist/commands/instructions/index.d.ts.map +1 -0
- package/dist/commands/instructions/index.js +9 -0
- package/dist/commands/instructions/instructions.types.d.ts +52 -0
- package/dist/commands/instructions/instructions.types.d.ts.map +1 -0
- package/dist/commands/instructions/instructions.types.js +1 -0
- package/dist/commands/instructions/instructions.utils.d.ts +13 -0
- package/dist/commands/instructions/instructions.utils.d.ts.map +1 -0
- package/dist/commands/instructions/instructions.utils.js +211 -0
- package/dist/commands/instructions/sync/sync.d.ts +4 -0
- package/dist/commands/instructions/sync/sync.d.ts.map +1 -0
- package/dist/commands/instructions/sync/sync.js +142 -0
- package/dist/commands/instructions/validate/validate.d.ts +4 -0
- package/dist/commands/instructions/validate/validate.d.ts.map +1 -0
- package/dist/commands/instructions/validate/validate.js +53 -0
- package/dist/commands/internal/index.d.ts +3 -0
- package/dist/commands/internal/index.d.ts.map +1 -0
- package/dist/commands/internal/index.js +7 -0
- package/dist/commands/internal/validate-oat-skills.d.ts +10 -0
- package/dist/commands/internal/validate-oat-skills.d.ts.map +1 -0
- package/dist/commands/internal/validate-oat-skills.js +66 -0
- package/dist/commands/local/apply.d.ts +6 -0
- package/dist/commands/local/apply.d.ts.map +1 -0
- package/dist/commands/local/apply.js +56 -0
- package/dist/commands/local/expand.d.ts +8 -0
- package/dist/commands/local/expand.d.ts.map +1 -0
- package/dist/commands/local/expand.js +83 -0
- package/dist/commands/local/index.d.ts +3 -0
- package/dist/commands/local/index.d.ts.map +1 -0
- package/dist/commands/local/index.js +248 -0
- package/dist/commands/local/manage.d.ts +18 -0
- package/dist/commands/local/manage.d.ts.map +1 -0
- package/dist/commands/local/manage.js +66 -0
- package/dist/commands/local/status.d.ts +7 -0
- package/dist/commands/local/status.d.ts.map +1 -0
- package/dist/commands/local/status.js +46 -0
- package/dist/commands/local/sync.d.ts +20 -0
- package/dist/commands/local/sync.d.ts.map +1 -0
- package/dist/commands/local/sync.js +40 -0
- package/dist/commands/project/archive/archive-utils.d.ts +70 -0
- package/dist/commands/project/archive/archive-utils.d.ts.map +1 -0
- package/dist/commands/project/archive/archive-utils.js +236 -0
- package/dist/commands/project/archive/index.d.ts +20 -0
- package/dist/commands/project/archive/index.d.ts.map +1 -0
- package/dist/commands/project/archive/index.js +217 -0
- package/dist/commands/project/index.d.ts +3 -0
- package/dist/commands/project/index.d.ts.map +1 -0
- package/dist/commands/project/index.js +15 -0
- package/dist/commands/project/new/index.d.ts +17 -0
- package/dist/commands/project/new/index.d.ts.map +1 -0
- package/dist/commands/project/new/index.js +76 -0
- package/dist/commands/project/new/scaffold.d.ts +24 -0
- package/dist/commands/project/new/scaffold.d.ts.map +1 -0
- package/dist/commands/project/new/scaffold.js +177 -0
- package/dist/commands/project/open/index.d.ts +26 -0
- package/dist/commands/project/open/index.d.ts.map +1 -0
- package/dist/commands/project/open/index.js +139 -0
- package/dist/commands/project/pause/index.d.ts +27 -0
- package/dist/commands/project/pause/index.d.ts.map +1 -0
- package/dist/commands/project/pause/index.js +120 -0
- package/dist/commands/project/set-mode/index.d.ts +14 -0
- package/dist/commands/project/set-mode/index.d.ts.map +1 -0
- package/dist/commands/project/set-mode/index.js +115 -0
- package/dist/commands/providers/index.d.ts +4 -0
- package/dist/commands/providers/index.d.ts.map +1 -0
- package/dist/commands/providers/index.js +11 -0
- package/dist/commands/providers/inspect/inspect.d.ts +4 -0
- package/dist/commands/providers/inspect/inspect.d.ts.map +1 -0
- package/dist/commands/providers/inspect/inspect.js +156 -0
- package/dist/commands/providers/list/list.d.ts +4 -0
- package/dist/commands/providers/list/list.d.ts.map +1 -0
- package/dist/commands/providers/list/list.js +163 -0
- package/dist/commands/providers/providers.types.d.ts +63 -0
- package/dist/commands/providers/providers.types.d.ts.map +1 -0
- package/dist/commands/providers/providers.types.js +1 -0
- package/dist/commands/providers/set/index.d.ts +4 -0
- package/dist/commands/providers/set/index.d.ts.map +1 -0
- package/dist/commands/providers/set/index.js +138 -0
- package/dist/commands/remove/index.d.ts +3 -0
- package/dist/commands/remove/index.d.ts.map +1 -0
- package/dist/commands/remove/index.js +9 -0
- package/dist/commands/remove/skill/index.d.ts +2 -0
- package/dist/commands/remove/skill/index.d.ts.map +1 -0
- package/dist/commands/remove/skill/index.js +1 -0
- package/dist/commands/remove/skill/remove-skill.d.ts +23 -0
- package/dist/commands/remove/skill/remove-skill.d.ts.map +1 -0
- package/dist/commands/remove/skill/remove-skill.js +231 -0
- package/dist/commands/remove/skills/index.d.ts +2 -0
- package/dist/commands/remove/skills/index.d.ts.map +1 -0
- package/dist/commands/remove/skills/index.js +1 -0
- package/dist/commands/remove/skills/remove-skills.d.ts +14 -0
- package/dist/commands/remove/skills/remove-skills.d.ts.map +1 -0
- package/dist/commands/remove/skills/remove-skills.js +98 -0
- package/dist/commands/repo/index.d.ts +3 -0
- package/dist/commands/repo/index.d.ts.map +1 -0
- package/dist/commands/repo/index.js +7 -0
- package/dist/commands/repo/pr-comments/collect/collect-comments.d.ts +9 -0
- package/dist/commands/repo/pr-comments/collect/collect-comments.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/collect/collect-comments.js +284 -0
- package/dist/commands/repo/pr-comments/collect/graphql-queries.d.ts +3 -0
- package/dist/commands/repo/pr-comments/collect/graphql-queries.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/collect/graphql-queries.js +56 -0
- package/dist/commands/repo/pr-comments/collect/index.d.ts +4 -0
- package/dist/commands/repo/pr-comments/collect/index.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/collect/index.js +25 -0
- package/dist/commands/repo/pr-comments/collect/pr-comments.types.d.ts +62 -0
- package/dist/commands/repo/pr-comments/collect/pr-comments.types.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/collect/pr-comments.types.js +1 -0
- package/dist/commands/repo/pr-comments/index.d.ts +3 -0
- package/dist/commands/repo/pr-comments/index.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/index.js +9 -0
- package/dist/commands/repo/pr-comments/triage-collection/index.d.ts +4 -0
- package/dist/commands/repo/pr-comments/triage-collection/index.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/triage-collection/index.js +21 -0
- package/dist/commands/repo/pr-comments/triage-collection/triage-comments.d.ts +13 -0
- package/dist/commands/repo/pr-comments/triage-collection/triage-comments.d.ts.map +1 -0
- package/dist/commands/repo/pr-comments/triage-collection/triage-comments.js +81 -0
- package/dist/commands/shared/adopt-stray.d.ts +22 -0
- package/dist/commands/shared/adopt-stray.d.ts.map +1 -0
- package/dist/commands/shared/adopt-stray.js +135 -0
- package/dist/commands/shared/agents-md.d.ts +18 -0
- package/dist/commands/shared/agents-md.d.ts.map +1 -0
- package/dist/commands/shared/agents-md.js +81 -0
- package/dist/commands/shared/codex-strays.d.ts +16 -0
- package/dist/commands/shared/codex-strays.d.ts.map +1 -0
- package/dist/commands/shared/codex-strays.js +116 -0
- package/dist/commands/shared/frontmatter-write.d.ts +8 -0
- package/dist/commands/shared/frontmatter-write.d.ts.map +1 -0
- package/dist/commands/shared/frontmatter-write.js +27 -0
- package/dist/commands/shared/frontmatter.d.ts +6 -0
- package/dist/commands/shared/frontmatter.d.ts.map +1 -0
- package/dist/commands/shared/frontmatter.js +35 -0
- package/dist/commands/shared/messages.d.ts +2 -0
- package/dist/commands/shared/messages.d.ts.map +1 -0
- package/dist/commands/shared/messages.js +1 -0
- package/dist/commands/shared/oat-paths.d.ts +2 -0
- package/dist/commands/shared/oat-paths.d.ts.map +1 -0
- package/dist/commands/shared/oat-paths.js +13 -0
- package/dist/commands/shared/shared.prompts.d.ts +21 -0
- package/dist/commands/shared/shared.prompts.d.ts.map +1 -0
- package/dist/commands/shared/shared.prompts.js +107 -0
- package/dist/commands/shared/shared.utils.d.ts +6 -0
- package/dist/commands/shared/shared.utils.d.ts.map +1 -0
- package/dist/commands/shared/shared.utils.js +9 -0
- package/dist/commands/state/generate.d.ts +21 -0
- package/dist/commands/state/generate.d.ts.map +1 -0
- package/dist/commands/state/generate.js +440 -0
- package/dist/commands/state/index.d.ts +11 -0
- package/dist/commands/state/index.d.ts.map +1 -0
- package/dist/commands/state/index.js +58 -0
- package/dist/commands/status/index.d.ts +44 -0
- package/dist/commands/status/index.d.ts.map +1 -0
- package/dist/commands/status/index.js +340 -0
- package/dist/commands/sync/apply.d.ts +4 -0
- package/dist/commands/sync/apply.d.ts.map +1 -0
- package/dist/commands/sync/apply.js +100 -0
- package/dist/commands/sync/dry-run.d.ts +4 -0
- package/dist/commands/sync/dry-run.d.ts.map +1 -0
- package/dist/commands/sync/dry-run.js +74 -0
- package/dist/commands/sync/index.d.ts +4 -0
- package/dist/commands/sync/index.d.ts.map +1 -0
- package/dist/commands/sync/index.js +225 -0
- package/dist/commands/sync/sync.types.d.ts +80 -0
- package/dist/commands/sync/sync.types.d.ts.map +1 -0
- package/dist/commands/sync/sync.types.js +1 -0
- package/dist/commands/sync/sync.utils.d.ts +3 -0
- package/dist/commands/sync/sync.utils.d.ts.map +1 -0
- package/dist/commands/sync/sync.utils.js +8 -0
- package/dist/commands/tools/index.d.ts +3 -0
- package/dist/commands/tools/index.d.ts.map +1 -0
- package/dist/commands/tools/index.js +17 -0
- package/dist/commands/tools/info/index.d.ts +4 -0
- package/dist/commands/tools/info/index.d.ts.map +1 -0
- package/dist/commands/tools/info/index.js +74 -0
- package/dist/commands/tools/info/info-tool.d.ts +21 -0
- package/dist/commands/tools/info/info-tool.d.ts.map +1 -0
- package/dist/commands/tools/info/info-tool.js +52 -0
- package/dist/commands/tools/install/index.d.ts +4 -0
- package/dist/commands/tools/install/index.d.ts.map +1 -0
- package/dist/commands/tools/install/index.js +34 -0
- package/dist/commands/tools/list/index.d.ts +4 -0
- package/dist/commands/tools/list/index.d.ts.map +1 -0
- package/dist/commands/tools/list/index.js +25 -0
- package/dist/commands/tools/list/list-tools.d.ts +13 -0
- package/dist/commands/tools/list/list-tools.d.ts.map +1 -0
- package/dist/commands/tools/list/list-tools.js +43 -0
- package/dist/commands/tools/outdated/index.d.ts +4 -0
- package/dist/commands/tools/outdated/index.d.ts.map +1 -0
- package/dist/commands/tools/outdated/index.js +25 -0
- package/dist/commands/tools/outdated/outdated-tools.d.ts +13 -0
- package/dist/commands/tools/outdated/outdated-tools.d.ts.map +1 -0
- package/dist/commands/tools/outdated/outdated-tools.js +43 -0
- package/dist/commands/tools/remove/index.d.ts +5 -0
- package/dist/commands/tools/remove/index.d.ts.map +1 -0
- package/dist/commands/tools/remove/index.js +122 -0
- package/dist/commands/tools/remove/remove-tools.d.ts +31 -0
- package/dist/commands/tools/remove/remove-tools.d.ts.map +1 -0
- package/dist/commands/tools/remove/remove-tools.js +41 -0
- package/dist/commands/tools/shared/auto-sync.d.ts +16 -0
- package/dist/commands/tools/shared/auto-sync.d.ts.map +1 -0
- package/dist/commands/tools/shared/auto-sync.js +17 -0
- package/dist/commands/tools/shared/scan-tools.d.ts +18 -0
- package/dist/commands/tools/shared/scan-tools.d.ts.map +1 -0
- package/dist/commands/tools/shared/scan-tools.js +128 -0
- package/dist/commands/tools/shared/types.d.ts +12 -0
- package/dist/commands/tools/shared/types.d.ts.map +1 -0
- package/dist/commands/tools/shared/types.js +1 -0
- package/dist/commands/tools/update/index.d.ts +8 -0
- package/dist/commands/tools/update/index.d.ts.map +1 -0
- package/dist/commands/tools/update/index.js +149 -0
- package/dist/commands/tools/update/update-tools.d.ts +29 -0
- package/dist/commands/tools/update/update-tools.d.ts.map +1 -0
- package/dist/commands/tools/update/update-tools.js +148 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -0
- package/dist/config/oat-config.d.ts +61 -0
- package/dist/config/oat-config.d.ts.map +1 -0
- package/dist/config/oat-config.js +319 -0
- package/dist/config/runtime.d.ts +2 -0
- package/dist/config/runtime.d.ts.map +1 -0
- package/dist/config/runtime.js +3 -0
- package/dist/config/sync-config.d.ts +49 -0
- package/dist/config/sync-config.d.ts.map +1 -0
- package/dist/config/sync-config.js +94 -0
- package/dist/drift/detector.d.ts +4 -0
- package/dist/drift/detector.d.ts.map +1 -0
- package/dist/drift/detector.js +69 -0
- package/dist/drift/drift.types.d.ts +17 -0
- package/dist/drift/drift.types.d.ts.map +1 -0
- package/dist/drift/drift.types.js +1 -0
- package/dist/drift/index.d.ts +4 -0
- package/dist/drift/index.d.ts.map +1 -0
- package/dist/drift/index.js +2 -0
- package/dist/drift/strays.d.ts +7 -0
- package/dist/drift/strays.d.ts.map +1 -0
- package/dist/drift/strays.js +153 -0
- package/dist/engine/compute-plan.d.ts +16 -0
- package/dist/engine/compute-plan.d.ts.map +1 -0
- package/dist/engine/compute-plan.js +234 -0
- package/dist/engine/engine.types.d.ts +28 -0
- package/dist/engine/engine.types.d.ts.map +1 -0
- package/dist/engine/engine.types.js +8 -0
- package/dist/engine/execute-plan.d.ts +5 -0
- package/dist/engine/execute-plan.d.ts.map +1 -0
- package/dist/engine/execute-plan.js +141 -0
- package/dist/engine/hook.d.ts +23 -0
- package/dist/engine/hook.d.ts.map +1 -0
- package/dist/engine/hook.js +254 -0
- package/dist/engine/index.d.ts +9 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +6 -0
- package/dist/engine/markers.d.ts +6 -0
- package/dist/engine/markers.d.ts.map +1 -0
- package/dist/engine/markers.js +24 -0
- package/dist/engine/scanner.d.ts +11 -0
- package/dist/engine/scanner.d.ts.map +1 -0
- package/dist/engine/scanner.js +65 -0
- package/dist/engine/test-helpers.d.ts +3 -0
- package/dist/engine/test-helpers.d.ts.map +1 -0
- package/dist/engine/test-helpers.js +31 -0
- package/dist/errors/cli-error.d.ts +5 -0
- package/dist/errors/cli-error.d.ts.map +1 -0
- package/dist/errors/cli-error.js +8 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/fs/assets.d.ts +2 -0
- package/dist/fs/assets.d.ts.map +1 -0
- package/dist/fs/assets.js +22 -0
- package/dist/fs/index.d.ts +4 -0
- package/dist/fs/index.d.ts.map +1 -0
- package/dist/fs/index.js +3 -0
- package/dist/fs/io.d.ts +9 -0
- package/dist/fs/io.d.ts.map +1 -0
- package/dist/fs/io.js +74 -0
- package/dist/fs/paths.d.ts +9 -0
- package/dist/fs/paths.d.ts.map +1 -0
- package/dist/fs/paths.js +42 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +48 -0
- package/dist/manifest/hash.d.ts +5 -0
- package/dist/manifest/hash.d.ts.map +1 -0
- package/dist/manifest/hash.js +75 -0
- package/dist/manifest/index.d.ts +5 -0
- package/dist/manifest/index.d.ts.map +1 -0
- package/dist/manifest/index.js +3 -0
- package/dist/manifest/manager.d.ts +8 -0
- package/dist/manifest/manager.d.ts.map +1 -0
- package/dist/manifest/manager.js +86 -0
- package/dist/manifest/manifest.types.d.ts +157 -0
- package/dist/manifest/manifest.types.d.ts.map +1 -0
- package/dist/manifest/manifest.types.js +56 -0
- package/dist/providers/claude/adapter.d.ts +3 -0
- package/dist/providers/claude/adapter.d.ts.map +1 -0
- package/dist/providers/claude/adapter.js +20 -0
- package/dist/providers/claude/index.d.ts +3 -0
- package/dist/providers/claude/index.d.ts.map +1 -0
- package/dist/providers/claude/index.js +2 -0
- package/dist/providers/claude/paths.d.ts +4 -0
- package/dist/providers/claude/paths.d.ts.map +1 -0
- package/dist/providers/claude/paths.js +38 -0
- package/dist/providers/claude/rule-transform.d.ts +3 -0
- package/dist/providers/claude/rule-transform.d.ts.map +1 -0
- package/dist/providers/claude/rule-transform.js +22 -0
- package/dist/providers/codex/adapter.d.ts +3 -0
- package/dist/providers/codex/adapter.d.ts.map +1 -0
- package/dist/providers/codex/adapter.js +20 -0
- package/dist/providers/codex/codec/config-merge.d.ts +17 -0
- package/dist/providers/codex/codec/config-merge.d.ts.map +1 -0
- package/dist/providers/codex/codec/config-merge.js +61 -0
- package/dist/providers/codex/codec/export-to-codex.d.ts +9 -0
- package/dist/providers/codex/codec/export-to-codex.d.ts.map +1 -0
- package/dist/providers/codex/codec/export-to-codex.js +45 -0
- package/dist/providers/codex/codec/import-from-codex.d.ts +9 -0
- package/dist/providers/codex/codec/import-from-codex.d.ts.map +1 -0
- package/dist/providers/codex/codec/import-from-codex.js +52 -0
- package/dist/providers/codex/codec/shared.d.ts +7 -0
- package/dist/providers/codex/codec/shared.d.ts.map +1 -0
- package/dist/providers/codex/codec/shared.js +21 -0
- package/dist/providers/codex/codec/sync-extension.d.ts +32 -0
- package/dist/providers/codex/codec/sync-extension.d.ts.map +1 -0
- package/dist/providers/codex/codec/sync-extension.js +227 -0
- package/dist/providers/codex/index.d.ts +6 -0
- package/dist/providers/codex/index.d.ts.map +1 -0
- package/dist/providers/codex/index.js +5 -0
- package/dist/providers/codex/paths.d.ts +4 -0
- package/dist/providers/codex/paths.d.ts.map +1 -0
- package/dist/providers/codex/paths.js +28 -0
- package/dist/providers/copilot/adapter.d.ts +3 -0
- package/dist/providers/copilot/adapter.d.ts.map +1 -0
- package/dist/providers/copilot/adapter.js +30 -0
- package/dist/providers/copilot/index.d.ts +3 -0
- package/dist/providers/copilot/index.d.ts.map +1 -0
- package/dist/providers/copilot/index.js +2 -0
- package/dist/providers/copilot/paths.d.ts +4 -0
- package/dist/providers/copilot/paths.d.ts.map +1 -0
- package/dist/providers/copilot/paths.js +38 -0
- package/dist/providers/copilot/rule-transform.d.ts +3 -0
- package/dist/providers/copilot/rule-transform.d.ts.map +1 -0
- package/dist/providers/copilot/rule-transform.js +58 -0
- package/dist/providers/cursor/adapter.d.ts +3 -0
- package/dist/providers/cursor/adapter.d.ts.map +1 -0
- package/dist/providers/cursor/adapter.js +20 -0
- package/dist/providers/cursor/index.d.ts +3 -0
- package/dist/providers/cursor/index.d.ts.map +1 -0
- package/dist/providers/cursor/index.js +2 -0
- package/dist/providers/cursor/paths.d.ts +4 -0
- package/dist/providers/cursor/paths.d.ts.map +1 -0
- package/dist/providers/cursor/paths.js +38 -0
- package/dist/providers/cursor/rule-transform.d.ts +3 -0
- package/dist/providers/cursor/rule-transform.d.ts.map +1 -0
- package/dist/providers/cursor/rule-transform.js +48 -0
- package/dist/providers/gemini/adapter.d.ts +3 -0
- package/dist/providers/gemini/adapter.d.ts.map +1 -0
- package/dist/providers/gemini/adapter.js +20 -0
- package/dist/providers/gemini/index.d.ts +3 -0
- package/dist/providers/gemini/index.d.ts.map +1 -0
- package/dist/providers/gemini/index.js +2 -0
- package/dist/providers/gemini/paths.d.ts +4 -0
- package/dist/providers/gemini/paths.d.ts.map +1 -0
- package/dist/providers/gemini/paths.js +28 -0
- package/dist/providers/shared/adapter.types.d.ts +21 -0
- package/dist/providers/shared/adapter.types.d.ts.map +1 -0
- package/dist/providers/shared/adapter.types.js +1 -0
- package/dist/providers/shared/adapter.utils.d.ts +12 -0
- package/dist/providers/shared/adapter.utils.d.ts.map +1 -0
- package/dist/providers/shared/adapter.utils.js +57 -0
- package/dist/providers/shared/agent-codec.types.d.ts +13 -0
- package/dist/providers/shared/agent-codec.types.d.ts.map +1 -0
- package/dist/providers/shared/agent-codec.types.js +1 -0
- package/dist/providers/shared/index.d.ts +6 -0
- package/dist/providers/shared/index.d.ts.map +1 -0
- package/dist/providers/shared/index.js +2 -0
- package/dist/providers/shared/markdown-agent-codec.d.ts +5 -0
- package/dist/providers/shared/markdown-agent-codec.d.ts.map +1 -0
- package/dist/providers/shared/markdown-agent-codec.js +12 -0
- package/dist/release/public-package-contract.d.ts +14 -0
- package/dist/release/public-package-contract.d.ts.map +1 -0
- package/dist/release/public-package-contract.js +97 -0
- package/dist/rules/canonical/index.d.ts +6 -0
- package/dist/rules/canonical/index.d.ts.map +1 -0
- package/dist/rules/canonical/index.js +4 -0
- package/dist/rules/canonical/parse.d.ts +9 -0
- package/dist/rules/canonical/parse.d.ts.map +1 -0
- package/dist/rules/canonical/parse.js +103 -0
- package/dist/rules/canonical/provider-filenames.d.ts +3 -0
- package/dist/rules/canonical/provider-filenames.d.ts.map +1 -0
- package/dist/rules/canonical/provider-filenames.js +13 -0
- package/dist/rules/canonical/render.d.ts +5 -0
- package/dist/rules/canonical/render.d.ts.map +1 -0
- package/dist/rules/canonical/render.js +32 -0
- package/dist/rules/canonical/types.d.ts +16 -0
- package/dist/rules/canonical/types.d.ts.map +1 -0
- package/dist/rules/canonical/types.js +6 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/types.d.ts +10 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +14 -0
- package/dist/ui/ansi.d.ts +2 -0
- package/dist/ui/ansi.d.ts.map +1 -0
- package/dist/ui/ansi.js +19 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +3 -0
- package/dist/ui/logger.d.ts +15 -0
- package/dist/ui/logger.d.ts.map +1 -0
- package/dist/ui/logger.js +52 -0
- package/dist/ui/output.d.ts +16 -0
- package/dist/ui/output.d.ts.map +1 -0
- package/dist/ui/output.js +135 -0
- package/dist/ui/spinner.d.ts +16 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +46 -0
- package/dist/validation/index.d.ts +3 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +1 -0
- package/dist/validation/skills.d.ts +10 -0
- package/dist/validation/skills.d.ts.map +1 -0
- package/dist/validation/skills.js +166 -0
- package/package.json +62 -0
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
# Agent Instruction Files Standard
|
|
2
|
+
|
|
3
|
+
## Practical Playbook (Generalized Edition)
|
|
4
|
+
|
|
5
|
+
**Generated:** 2026-02-16T16:20:50.389314 UTC
|
|
6
|
+
|
|
7
|
+
This document is a generalized, cross-tool version of an internal AGENTS.md standard playbook.
|
|
8
|
+
|
|
9
|
+
It is intended to be embedded in repositories as a human- and agent-readable reference for:
|
|
10
|
+
|
|
11
|
+
- How to structure **AGENTS.md**
|
|
12
|
+
- How to structure **CLAUDE.md**
|
|
13
|
+
- How to use **Claude modular rules** (`.claude/rules/*.md`)
|
|
14
|
+
- How to use **Cursor rules** (`.cursor/rules/*.md` / `.mdc`)
|
|
15
|
+
- How to align with **GitHub Copilot** instructions
|
|
16
|
+
- How to remain compatible with **OpenAI Codex** AGENTS.md loading behavior
|
|
17
|
+
|
|
18
|
+
**Out of scope:** automation wiring (CI bots, scheduled agents, workflow orchestration).
|
|
19
|
+
**Skills specifications:** intentionally separate (see `agents-md-skills-spec.md`).
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Table of Contents
|
|
24
|
+
|
|
25
|
+
1. What These Files Are
|
|
26
|
+
2. Why This Matters
|
|
27
|
+
3. Research-Informed Constraints
|
|
28
|
+
4. Hierarchy, Traversal, and Override Semantics
|
|
29
|
+
5. Composition Strategies (Import, Symlink, Parallel)
|
|
30
|
+
6. Size and Cognitive Load Budgets
|
|
31
|
+
7. Root File Structure (Playbook)
|
|
32
|
+
8. Project Structure Guidance
|
|
33
|
+
9. Testing Guidance
|
|
34
|
+
10. Examples
|
|
35
|
+
11. Safety and Permissions
|
|
36
|
+
12. Domain Rules (Optional)
|
|
37
|
+
13. Scoped Files (When and How)
|
|
38
|
+
14. Modular Rules (Claude and Cursor)
|
|
39
|
+
15. Copilot Notes
|
|
40
|
+
16. Anti-Patterns
|
|
41
|
+
17. Final Quality Checklist
|
|
42
|
+
18. References
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
# 1. What These Files Are
|
|
47
|
+
|
|
48
|
+
Agent instruction files are structured Markdown documents that provide operational context to AI coding agents working in a repository.
|
|
49
|
+
|
|
50
|
+
They are **not** README replacements and they are **not** task prompts.
|
|
51
|
+
|
|
52
|
+
They should encode:
|
|
53
|
+
|
|
54
|
+
- Executable workflows (exact commands)
|
|
55
|
+
- Concrete conventions (dos/don'ts)
|
|
56
|
+
- Boundaries and approvals (what's risky)
|
|
57
|
+
- Stable architecture orientation (capabilities over brittle paths)
|
|
58
|
+
|
|
59
|
+
Common instruction surfaces:
|
|
60
|
+
|
|
61
|
+
- `AGENTS.md` (open ecosystem pattern)
|
|
62
|
+
- `AGENTS.override.md` (Codex per-directory override pattern)
|
|
63
|
+
- `CLAUDE.md` (Claude Code project instructions; may be nested)
|
|
64
|
+
- `CLAUDE.local.md` (Claude local overrides; may exist at multiple levels)
|
|
65
|
+
- `.claude/rules/*.md` (Claude topic rules)
|
|
66
|
+
- `.cursor/rules/*.md` / `.mdc` (Cursor rules)
|
|
67
|
+
- `.github/copilot-instructions.md` and `.github/instructions/*.instructions.md` (Copilot)
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
# 2. Why This Matters
|
|
72
|
+
|
|
73
|
+
AI coding agents operate probabilistically. When repository context is implicit, fragmented, or stale, agents will guess.
|
|
74
|
+
|
|
75
|
+
Consequences:
|
|
76
|
+
|
|
77
|
+
- Wrong commands, wrong scripts, wrong environments
|
|
78
|
+
- Convention drift and inconsistent code
|
|
79
|
+
- Higher review burden
|
|
80
|
+
- Wasted tokens and longer loops
|
|
81
|
+
- Silent correctness drift over time
|
|
82
|
+
|
|
83
|
+
A good instruction system reduces "context entropy" and improves first-pass change quality.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
# 3. Research-Informed Constraints
|
|
88
|
+
|
|
89
|
+
These design constraints are supported by empirical findings about instruction following and long-context behavior.
|
|
90
|
+
|
|
91
|
+
## 3.1 Instruction Overload
|
|
92
|
+
|
|
93
|
+
ManyIFEval ("Curse of Instructions"): as instruction count rises, compliance drops.
|
|
94
|
+
|
|
95
|
+
**Implication:** keep global rules short; scope where possible; avoid giant root files.
|
|
96
|
+
|
|
97
|
+
## 3.2 Positional Recall Bias
|
|
98
|
+
|
|
99
|
+
"Lost in the Middle": models recall content at the beginning and end more reliably than mid-context.
|
|
100
|
+
|
|
101
|
+
**Implication:** put canonical commands and non-negotiables near the top.
|
|
102
|
+
|
|
103
|
+
## 3.3 Context Degradation
|
|
104
|
+
|
|
105
|
+
Long contexts degrade retrieval precision ("context rot"-style effects).
|
|
106
|
+
|
|
107
|
+
**Implication:** treat tokens as scarce; avoid duplication; prefer links to deeper docs.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
# 4. Hierarchy, Traversal, and Override Semantics
|
|
112
|
+
|
|
113
|
+
## 4.1 Directory Traversal Model (Conceptual)
|
|
114
|
+
|
|
115
|
+
Most tools determine applicable instruction files by:
|
|
116
|
+
|
|
117
|
+
1. Finding a project root (often Git root)
|
|
118
|
+
2. Walking down to the current working directory
|
|
119
|
+
3. Checking each directory for instruction files
|
|
120
|
+
4. Layering general to specific
|
|
121
|
+
|
|
122
|
+
## 4.2 Per-Directory File Types
|
|
123
|
+
|
|
124
|
+
At any directory level, you may have:
|
|
125
|
+
|
|
126
|
+
- A **primary** instruction file (e.g., `AGENTS.md`, `CLAUDE.md`)
|
|
127
|
+
- A **shared override** file (e.g., `AGENTS.override.md`) -- **version controlled**
|
|
128
|
+
- A **local override** file (e.g., `CLAUDE.local.md`) -- **typically not version controlled**
|
|
129
|
+
- Tool-specific modular rules (e.g., `.claude/rules/*.md`, `.cursor/rules/*.md`)
|
|
130
|
+
|
|
131
|
+
These may appear in user scope, repo root, or nested subdirectories.
|
|
132
|
+
|
|
133
|
+
## 4.3 Shared vs Local Overrides (Explicit)
|
|
134
|
+
|
|
135
|
+
### Shared override files (version controlled)
|
|
136
|
+
|
|
137
|
+
Example: `/apps/web/AGENTS.override.md`
|
|
138
|
+
|
|
139
|
+
- Committed and reviewed like code
|
|
140
|
+
- Used to specialize subtree behavior
|
|
141
|
+
- Should be minimal and explicit (avoid copying root)
|
|
142
|
+
|
|
143
|
+
### Local override files (not version controlled)
|
|
144
|
+
|
|
145
|
+
Example: `/apps/web/CLAUDE.local.md`
|
|
146
|
+
|
|
147
|
+
- Developer-specific, local-only
|
|
148
|
+
- Useful for experimentation/workflow tuning
|
|
149
|
+
- Must **not** encode team policy
|
|
150
|
+
- Must **not** override security non-negotiables
|
|
151
|
+
|
|
152
|
+
### Global user overrides (high blast radius)
|
|
153
|
+
|
|
154
|
+
Example: `~/.codex/AGENTS.override.md`
|
|
155
|
+
|
|
156
|
+
- Affects multiple repos
|
|
157
|
+
- Use sparingly and temporarily
|
|
158
|
+
- Easy to forget
|
|
159
|
+
|
|
160
|
+
## 4.4 "One Meaningful File per Directory" (Design Rule)
|
|
161
|
+
|
|
162
|
+
Codex explicitly states it includes at most one file per directory (override preferred). Other tools merge differently.
|
|
163
|
+
|
|
164
|
+
**To stay portable across tools:** design so that only one meaningful primary/override applies per directory, and keep overrides explicit.
|
|
165
|
+
|
|
166
|
+
## 4.5 Precedence Rules
|
|
167
|
+
|
|
168
|
+
Within a directory:
|
|
169
|
+
|
|
170
|
+
1. Shared override (if present)
|
|
171
|
+
2. Else primary file
|
|
172
|
+
|
|
173
|
+
Across directories:
|
|
174
|
+
|
|
175
|
+
- Deeper (more specific) overrides higher-level guidance
|
|
176
|
+
|
|
177
|
+
If import/include syntax is used, later content overrides earlier content.
|
|
178
|
+
|
|
179
|
+
## 4.6 Tool Variance Warning
|
|
180
|
+
|
|
181
|
+
Codex, Claude, Cursor, and Copilot do not implement identical merging. Avoid relying on subtle undocumented precedence behavior.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
# 5. Composition Strategies (Import, Symlink, Parallel)
|
|
186
|
+
|
|
187
|
+
Choose one strategy to reduce drift.
|
|
188
|
+
|
|
189
|
+
## 5.1 Import / Include (Preferred when supported)
|
|
190
|
+
|
|
191
|
+
Some tools support import/include syntax.
|
|
192
|
+
|
|
193
|
+
Example (Claude Code):
|
|
194
|
+
|
|
195
|
+
```markdown
|
|
196
|
+
# CLAUDE.md
|
|
197
|
+
|
|
198
|
+
@AGENTS.md
|
|
199
|
+
|
|
200
|
+
# Claude-specific additions
|
|
201
|
+
|
|
202
|
+
- Use .claude/rules for topic-specific rules.
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Guidelines:
|
|
206
|
+
|
|
207
|
+
- Imports at the top
|
|
208
|
+
- Tool-specific additions after imports
|
|
209
|
+
- Avoid deep import chains
|
|
210
|
+
- Never allow circular imports
|
|
211
|
+
|
|
212
|
+
## 5.2 Symbolic Links (Fallback)
|
|
213
|
+
|
|
214
|
+
If import isn't supported, symlinks can unify files:
|
|
215
|
+
|
|
216
|
+
- `CLAUDE.md` -> `AGENTS.md`
|
|
217
|
+
- `.github/copilot-instructions.md` -> `AGENTS.md`
|
|
218
|
+
|
|
219
|
+
Caveats:
|
|
220
|
+
|
|
221
|
+
- Verify OS compatibility (esp. Windows)
|
|
222
|
+
- Verify tools resolve symlinks properly
|
|
223
|
+
- Avoid partial duplication alongside symlinks
|
|
224
|
+
|
|
225
|
+
## 5.3 Parallel Files (Least preferred)
|
|
226
|
+
|
|
227
|
+
If neither import nor symlink works:
|
|
228
|
+
|
|
229
|
+
- Keep the canonical file minimal
|
|
230
|
+
- Link instead of copy/paste
|
|
231
|
+
- Audit regularly for divergence
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
# 6. Size and Cognitive Load Budgets
|
|
236
|
+
|
|
237
|
+
Root files:
|
|
238
|
+
|
|
239
|
+
- Target <300 lines
|
|
240
|
+
- Hard max 500 lines
|
|
241
|
+
|
|
242
|
+
Scoped files:
|
|
243
|
+
|
|
244
|
+
- 40-150 lines
|
|
245
|
+
|
|
246
|
+
Modular rules:
|
|
247
|
+
|
|
248
|
+
- Prefer <80 lines
|
|
249
|
+
- One topic per file
|
|
250
|
+
|
|
251
|
+
### Provider Hard Limits
|
|
252
|
+
|
|
253
|
+
| Provider | Limit | Source |
|
|
254
|
+
| -------------- | ----------------------------------------------------------------- | ---------------------------- |
|
|
255
|
+
| Codex | 32 KiB combined instruction files | OpenAI Codex docs (official) |
|
|
256
|
+
| Copilot | ~1,000 lines max per instruction file | GitHub docs (official) |
|
|
257
|
+
| Copilot agents | 30,000 chars per agent body | GitHub docs (official) |
|
|
258
|
+
| Claude Code | Skill descriptions: 2% of context window (~16,000 chars fallback) | Claude Code docs (official) |
|
|
259
|
+
| Cursor | No documented hard limit; 500 lines recommended | Cursor docs (official) |
|
|
260
|
+
|
|
261
|
+
Use 32 KiB as a safe cross-provider ceiling for total combined instruction content.
|
|
262
|
+
|
|
263
|
+
**Salience rule:** canonical commands and non-negotiables should appear in the first screenful.
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
# 7. Root File Structure (Playbook)
|
|
268
|
+
|
|
269
|
+
This structure applies to `AGENTS.md` and `CLAUDE.md` (at repo root).
|
|
270
|
+
|
|
271
|
+
## 7.1 Project Snapshot (Essential)
|
|
272
|
+
|
|
273
|
+
2-4 lines: what this repo is + major stack + unusual constraints.
|
|
274
|
+
|
|
275
|
+
## 7.2 Canonical Commands (Essential)
|
|
276
|
+
|
|
277
|
+
Agents should never guess commands.
|
|
278
|
+
|
|
279
|
+
Include:
|
|
280
|
+
|
|
281
|
+
- install/bootstrap
|
|
282
|
+
- dev
|
|
283
|
+
- build
|
|
284
|
+
- test (fast)
|
|
285
|
+
- test (CI/full)
|
|
286
|
+
- lint/format
|
|
287
|
+
- typecheck
|
|
288
|
+
|
|
289
|
+
Example:
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
pnpm install
|
|
293
|
+
pnpm dev
|
|
294
|
+
pnpm build
|
|
295
|
+
pnpm test
|
|
296
|
+
pnpm test:ci
|
|
297
|
+
pnpm lint
|
|
298
|
+
pnpm typecheck
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
If commands require env vars/services, say so explicitly.
|
|
302
|
+
|
|
303
|
+
## 7.3 Definition of Done (Essential)
|
|
304
|
+
|
|
305
|
+
Make completion objective:
|
|
306
|
+
|
|
307
|
+
- Tests pass
|
|
308
|
+
- Lint/typecheck pass
|
|
309
|
+
- CI-equivalent checks pass
|
|
310
|
+
- No debug logs
|
|
311
|
+
- Docs updated when needed
|
|
312
|
+
|
|
313
|
+
## 7.4 Non-Negotiables (Essential)
|
|
314
|
+
|
|
315
|
+
Put near the top. Examples:
|
|
316
|
+
|
|
317
|
+
- Never commit secrets
|
|
318
|
+
- Do not edit generated directories
|
|
319
|
+
- Do not modify deploy/CI without approval
|
|
320
|
+
- Do not bypass type checks
|
|
321
|
+
|
|
322
|
+
Conflict priority: **Security > Correctness > CI Integrity > Performance > Style**
|
|
323
|
+
|
|
324
|
+
## 7.5 Code Style & Conventions (Essential)
|
|
325
|
+
|
|
326
|
+
Prefer enforceable rules and "Do / Don't" lists.
|
|
327
|
+
|
|
328
|
+
## 7.6 Project Structure (Recommended)
|
|
329
|
+
|
|
330
|
+
Describe capabilities (stable) over brittle paths (volatile).
|
|
331
|
+
|
|
332
|
+
## 7.7 Testing (Recommended)
|
|
333
|
+
|
|
334
|
+
Explain how to run scoped tests and CI-equivalent tests.
|
|
335
|
+
|
|
336
|
+
## 7.8 Examples (Recommended)
|
|
337
|
+
|
|
338
|
+
Point to preferred patterns and known legacy pitfalls.
|
|
339
|
+
|
|
340
|
+
## 7.9 Safety & Permissions (Recommended)
|
|
341
|
+
|
|
342
|
+
Explicit "allowed" vs "ask first" boundaries.
|
|
343
|
+
|
|
344
|
+
## 7.10 PR/Commit Standards (Recommended)
|
|
345
|
+
|
|
346
|
+
Define PR expectations, title format, CI requirements.
|
|
347
|
+
|
|
348
|
+
## 7.11 Domain Concepts (Optional)
|
|
349
|
+
|
|
350
|
+
Only stable terminology and invariants.
|
|
351
|
+
|
|
352
|
+
## 7.12 When Stuck (Recommended)
|
|
353
|
+
|
|
354
|
+
Ask clarifying questions; propose a plan before large changes.
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
# 8. Project Structure Guidance
|
|
359
|
+
|
|
360
|
+
## 8.1 Prefer capabilities over brittle paths
|
|
361
|
+
|
|
362
|
+
Good:
|
|
363
|
+
|
|
364
|
+
- "GraphQL schema lives in the API package."
|
|
365
|
+
- "Shared UI components live in the UI package."
|
|
366
|
+
|
|
367
|
+
Risky:
|
|
368
|
+
|
|
369
|
+
- "Edit src/components/layout/Header.tsx."
|
|
370
|
+
|
|
371
|
+
## 8.2 Avoid encoding temporary migration states
|
|
372
|
+
|
|
373
|
+
Instruction files should describe steady state. Mark legacy explicitly if needed.
|
|
374
|
+
|
|
375
|
+
---
|
|
376
|
+
|
|
377
|
+
# 9. Testing Guidance
|
|
378
|
+
|
|
379
|
+
## 9.1 Provide runnable commands
|
|
380
|
+
|
|
381
|
+
Include fast and full/CI variants.
|
|
382
|
+
|
|
383
|
+
## 9.2 Document scoping patterns
|
|
384
|
+
|
|
385
|
+
Examples:
|
|
386
|
+
|
|
387
|
+
```bash
|
|
388
|
+
pnpm --filter web test
|
|
389
|
+
pnpm test path/to/file.spec.ts
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
## 9.3 Clarify expectations
|
|
393
|
+
|
|
394
|
+
State what requires tests (features, bug fixes) and what is optional.
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
# 10. Examples
|
|
399
|
+
|
|
400
|
+
Examples reduce ambiguity and improve adherence.
|
|
401
|
+
|
|
402
|
+
Include:
|
|
403
|
+
|
|
404
|
+
- A preferred implementation pattern
|
|
405
|
+
- A discouraged legacy pattern
|
|
406
|
+
- Naming conventions
|
|
407
|
+
|
|
408
|
+
Keep examples small and high-signal.
|
|
409
|
+
|
|
410
|
+
---
|
|
411
|
+
|
|
412
|
+
# 11. Safety and Permissions
|
|
413
|
+
|
|
414
|
+
Separate:
|
|
415
|
+
|
|
416
|
+
- **Allowed without approval:** read files, lint, typecheck, unit tests
|
|
417
|
+
- **Ask first:** deps, migrations, CI/CD, deploy configs, deleting files
|
|
418
|
+
|
|
419
|
+
Label destructive commands explicitly.
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
# 12. Domain Rules (Optional)
|
|
424
|
+
|
|
425
|
+
Include only stable domain constraints. Avoid volatile naming, in-flight migrations, and temporary business rules.
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
# 13. Scoped Files (When and How)
|
|
430
|
+
|
|
431
|
+
Create scoped files when a subtree has:
|
|
432
|
+
|
|
433
|
+
- Different tech stack/runtime
|
|
434
|
+
- Different build/test workflow
|
|
435
|
+
- Stricter security boundaries
|
|
436
|
+
- Materially different architecture patterns
|
|
437
|
+
|
|
438
|
+
Do **not** create scoped files for minor style differences.
|
|
439
|
+
|
|
440
|
+
Rules:
|
|
441
|
+
|
|
442
|
+
- Scoped files must not duplicate root
|
|
443
|
+
- Override only where divergence exists
|
|
444
|
+
- Keep within size budget
|
|
445
|
+
|
|
446
|
+
---
|
|
447
|
+
|
|
448
|
+
# 14. Modular Rules (Claude and Cursor)
|
|
449
|
+
|
|
450
|
+
## 14.1 Claude modular rules: `.claude/rules/*.md`
|
|
451
|
+
|
|
452
|
+
Use for topic scoping:
|
|
453
|
+
|
|
454
|
+
- Testing rules
|
|
455
|
+
- CI rules
|
|
456
|
+
- Security rules
|
|
457
|
+
- Formatting rules
|
|
458
|
+
|
|
459
|
+
Guidelines:
|
|
460
|
+
|
|
461
|
+
- One topic per file
|
|
462
|
+
- Keep atomic and short
|
|
463
|
+
- Avoid duplication with root unless overriding
|
|
464
|
+
|
|
465
|
+
## 14.2 Cursor rules: `.cursor/rules/*.md` / `.mdc`
|
|
466
|
+
|
|
467
|
+
Use for directory/topic scoping.
|
|
468
|
+
|
|
469
|
+
Guidelines:
|
|
470
|
+
|
|
471
|
+
- Concise, atomic files
|
|
472
|
+
- Avoid duplication with root instructions
|
|
473
|
+
- Keep rule sets narrow and enforceable
|
|
474
|
+
|
|
475
|
+
## 14.3 Copilot scoped instructions: `.github/instructions/*.instructions.md`
|
|
476
|
+
|
|
477
|
+
Copilot's scoped instruction files function like rules — they activate conditionally based on file patterns.
|
|
478
|
+
|
|
479
|
+
Frontmatter fields:
|
|
480
|
+
|
|
481
|
+
| Field | Description |
|
|
482
|
+
| -------------- | ----------------------------------------------------------------------- |
|
|
483
|
+
| `applyTo` | Glob pattern(s), comma-separated. Relative to workspace root. |
|
|
484
|
+
| `description` | Short description; enables semantic matching when no `applyTo`. |
|
|
485
|
+
| `name` | Display name in VS Code UI. Defaults to filename. |
|
|
486
|
+
| `excludeAgent` | Prevents use by a specific agent (`"code-review"` or `"coding-agent"`). |
|
|
487
|
+
|
|
488
|
+
Guidelines:
|
|
489
|
+
|
|
490
|
+
- Scoped instructions are **additive** — they combine with (not replace) `copilot-instructions.md`
|
|
491
|
+
- When multiple files match, VS Code combines them with no guaranteed order
|
|
492
|
+
- Use `excludeAgent` to prevent code review from applying coding-focused instructions (and vice versa)
|
|
493
|
+
- Keep within the ~1,000 line per-file recommendation
|
|
494
|
+
|
|
495
|
+
---
|
|
496
|
+
|
|
497
|
+
# 15. Copilot Notes
|
|
498
|
+
|
|
499
|
+
## 15.1 Instruction Types
|
|
500
|
+
|
|
501
|
+
| Type | Location | Activation | Purpose |
|
|
502
|
+
| --------------------------- | ---------------------------------------- | ------------------------ | -------------------------------- |
|
|
503
|
+
| **Repository instructions** | `.github/copilot-instructions.md` | Always-on | Repo-wide conventions |
|
|
504
|
+
| **Scoped instructions** | `.github/instructions/*.instructions.md` | `applyTo` glob match | File-type or area-specific rules |
|
|
505
|
+
| **Prompt files** | `.github/prompts/*.prompt.md` | Manual (`/name` in chat) | Reusable task templates |
|
|
506
|
+
| **Agent files** | `*.agent.md` | Auto or manual | Custom agent definitions |
|
|
507
|
+
| **AGENTS.md** | `**/AGENTS.md` | Always-on | Cross-tool instructions |
|
|
508
|
+
|
|
509
|
+
Instructions = rules/standards (always-on or pattern-matched). Prompt files = tasks/workflows (manually invoked). Keep this distinction clear.
|
|
510
|
+
|
|
511
|
+
## 15.2 Composability
|
|
512
|
+
|
|
513
|
+
- Scoped instructions are **additive** to `copilot-instructions.md`, not replacements.
|
|
514
|
+
- AGENTS.md is read natively alongside Copilot's own instruction files.
|
|
515
|
+
- Avoid conflicts between Copilot instructions and AGENTS/CLAUDE content.
|
|
516
|
+
- Prefer a single canonical policy and compose rather than duplicate.
|
|
517
|
+
|
|
518
|
+
## 15.3 Limitations
|
|
519
|
+
|
|
520
|
+
- Custom instructions do **not** affect inline code completions (autocomplete).
|
|
521
|
+
- Organization instructions (public preview) are limited to GitHub.com chat, code review, and coding agent — not IDE chat.
|
|
522
|
+
|
|
523
|
+
---
|
|
524
|
+
|
|
525
|
+
# 16. Anti-Patterns
|
|
526
|
+
|
|
527
|
+
Avoid:
|
|
528
|
+
|
|
529
|
+
- > 500 lines
|
|
530
|
+
- Burying non-negotiables mid-file
|
|
531
|
+
- README duplication
|
|
532
|
+
- Copy/pasting root content into scoped files
|
|
533
|
+
- Circular imports or deep include chains
|
|
534
|
+
- Silent precedence inversions
|
|
535
|
+
- Task-specific instructions that don't generalize
|
|
536
|
+
- Volatile paths that drift with refactors
|
|
537
|
+
- Over-scoping monorepos into dozens of tiny files
|
|
538
|
+
|
|
539
|
+
---
|
|
540
|
+
|
|
541
|
+
# 17. Final Quality Checklist
|
|
542
|
+
|
|
543
|
+
Before merging instruction changes:
|
|
544
|
+
|
|
545
|
+
- [ ] Commands are correct and runnable.
|
|
546
|
+
- [ ] Non-negotiables and canonical commands are near the top.
|
|
547
|
+
- [ ] No duplication across root/scoped/rule files.
|
|
548
|
+
- [ ] Scoped files only exist for real divergence.
|
|
549
|
+
- [ ] Overrides are intentional and minimal.
|
|
550
|
+
- [ ] No circular imports.
|
|
551
|
+
- [ ] File sizes within budgets.
|
|
552
|
+
- [ ] Precedence is clear (and tool variance is not relied upon).
|
|
553
|
+
|
|
554
|
+
---
|
|
555
|
+
|
|
556
|
+
# 18. References
|
|
557
|
+
|
|
558
|
+
### Official Documentation
|
|
559
|
+
|
|
560
|
+
- AGENTS.md ecosystem: <https://agents.md/>
|
|
561
|
+
- OpenAI Codex AGENTS.md guide: <https://developers.openai.com/codex/guides/agents-md/>
|
|
562
|
+
- Claude Code memory & rules: <https://code.claude.com/docs/en/memory>
|
|
563
|
+
- Claude Code best practices: <https://code.claude.com/docs/en/best-practices>
|
|
564
|
+
- Cursor rules: <https://cursor.com/docs/context/rules>
|
|
565
|
+
- Copilot custom instructions: <https://docs.github.com/copilot/customizing-copilot/adding-custom-instructions-for-github-copilot>
|
|
566
|
+
- Copilot custom agents reference: <https://docs.github.com/en/copilot/reference/custom-agents-configuration>
|
|
567
|
+
- VS Code custom instructions: <https://code.visualstudio.com/docs/copilot/customization/custom-instructions>
|
|
568
|
+
- VS Code prompt files: <https://code.visualstudio.com/docs/copilot/customization/prompt-files>
|
|
569
|
+
- Anthropic context engineering: <https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents>
|
|
570
|
+
|
|
571
|
+
### Research
|
|
572
|
+
|
|
573
|
+
- ManyIFEval ("Curse of Instructions"): <https://openreview.net/forum?id=R6q67CDBCH>
|
|
574
|
+
- "Lost in the Middle": <https://arxiv.org/abs/2307.03172>
|
|
575
|
+
- Context degradation ("Context Rot"): <https://research.trychroma.com/context-rot>
|