artifact-chain-assistant 0.8.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/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +20 -0
- package/.claude-plugin/plugin.json +11 -0
- package/.codex-plugin/plugin.json +27 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +26 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +19 -0
- package/.github/pull_request_template.md +14 -0
- package/.github/workflows/ci.yml +23 -0
- package/CHANGELOG.md +196 -0
- package/CODE_OF_CONDUCT.md +11 -0
- package/CONTRIBUTING.md +24 -0
- package/EXTENDED-ARTIFACT-CATALOG.md +312 -0
- package/EXTENDED-ARTIFACT-CATALOG.zh-CN.md +289 -0
- package/INSTALL.md +1340 -0
- package/LICENSE +186 -0
- package/NOTICE +18 -0
- package/README.md +426 -0
- package/README.zh-CN.md +409 -0
- package/SECURITY.md +19 -0
- package/adapters/claude/.claude-plugin/plugin.json +11 -0
- package/adapters/claude/EXTENDED-ARTIFACT-CATALOG.md +312 -0
- package/adapters/claude/EXTENDED-ARTIFACT-CATALOG.zh-CN.md +289 -0
- package/adapters/claude/INSTALL.md +1340 -0
- package/adapters/claude/agent-methods/catalog.yaml +260 -0
- package/adapters/claude/bin/version-lock-audit.sh +21 -0
- package/adapters/claude/bin/version-lock-refresh.sh +21 -0
- package/adapters/claude/commands/version-lock-audit.md +9 -0
- package/adapters/claude/commands/version-lock-refresh.md +9 -0
- package/adapters/claude/compatibility.json +9 -0
- package/adapters/claude/hooks/hooks.json +16 -0
- package/adapters/claude/hooks/version-lock-stop.mjs +77 -0
- package/adapters/claude/schemas/artifact-workflow-profile.schema.json +72 -0
- package/adapters/claude/scripts/batch-merge.mjs +276 -0
- package/adapters/claude/scripts/batch-split.mjs +184 -0
- package/adapters/claude/scripts/check-workflow-profile.mjs +64 -0
- package/adapters/claude/scripts/doctor.mjs +44 -0
- package/adapters/claude/scripts/lib/artifact-graph-runtime.mjs +189 -0
- package/adapters/claude/scripts/lib/compatibility-policy.mjs +435 -0
- package/adapters/claude/scripts/lib/inline-yaml-parser.mjs +216 -0
- package/adapters/claude/scripts/lib/method-registry-version.mjs +7 -0
- package/adapters/claude/scripts/lib/workflow-profile.mjs +645 -0
- package/adapters/claude/scripts/run-artifact-workflow.mjs +366 -0
- package/adapters/claude/skills/artifact-audit/SKILL.md +80 -0
- package/adapters/claude/skills/artifact-batch/SKILL.md +115 -0
- package/adapters/claude/skills/artifact-chain-bootstrap/SKILL.md +343 -0
- package/adapters/claude/skills/artifact-chain-maintainer/SKILL.md +167 -0
- package/adapters/claude/skills/artifact-generate/SKILL.md +89 -0
- package/adapters/claude/skills/artifact-repair/SKILL.md +124 -0
- package/adapters/claude/skills/artifact-review/SKILL.md +122 -0
- package/adapters/claude/skills/artifact-workflow-worker/SKILL.md +90 -0
- package/adapters/claude/skills/prd-feature/SKILL.md +68 -0
- package/adapters/claude/skills/prd-feature/author/SKILL.md +92 -0
- package/adapters/claude/skills/prd-feature/references/compose.md +43 -0
- package/adapters/claude/skills/prd-feature/references/inspect.md +94 -0
- package/adapters/claude/skills/prd-feature/references/validate.md +65 -0
- package/adapters/claude/skills/prd-feature/repair/SKILL.md +135 -0
- package/adapters/claude/skills/prd-feature/review/SKILL.md +134 -0
- package/adapters/claude/skills/scenario-script/SKILL.md +76 -0
- package/adapters/claude/skills/scenario-script/author/SKILL.md +111 -0
- package/adapters/claude/skills/scenario-script/references/compose.md +43 -0
- package/adapters/claude/skills/scenario-script/references/inspect.md +105 -0
- package/adapters/claude/skills/scenario-script/references/validate.md +72 -0
- package/adapters/claude/skills/scenario-script/repair/SKILL.md +135 -0
- package/adapters/claude/skills/scenario-script/review/SKILL.md +137 -0
- package/adapters/claude/skills/where-am-i/SKILL.md +233 -0
- package/adapters/claude/templates/README.md +159 -0
- package/adapters/claude/templates/core/decision/review-checklist.md +35 -0
- package/adapters/claude/templates/core/decision/starter.md +66 -0
- package/adapters/claude/templates/core/design/review-checklist.md +41 -0
- package/adapters/claude/templates/core/design/starter.md +84 -0
- package/adapters/claude/templates/core/e2e_test/review-checklist.md +43 -0
- package/adapters/claude/templates/core/e2e_test/starter.md +70 -0
- package/adapters/claude/templates/core/feature/review-checklist.md +29 -0
- package/adapters/claude/templates/core/feature/starter.md +43 -0
- package/adapters/claude/templates/core/scenario/review-checklist.md +29 -0
- package/adapters/claude/templates/core/scenario/starter.md +57 -0
- package/adapters/claude/templates/core/test/review-checklist.md +37 -0
- package/adapters/claude/templates/core/test/starter.md +70 -0
- package/adapters/claude/templates/extended/ADOPTION-GUIDE.md +263 -0
- package/adapters/claude/templates/extended/README.md +261 -0
- package/adapters/claude/templates/extended/agent/agent_skill/review-checklist.md +51 -0
- package/adapters/claude/templates/extended/agent/agent_skill/starter.md +133 -0
- package/adapters/claude/templates/extended/agent/hook_policy/review-checklist.md +58 -0
- package/adapters/claude/templates/extended/agent/hook_policy/starter.md +134 -0
- package/adapters/claude/templates/extended/agent/prompt_packet/review-checklist.md +54 -0
- package/adapters/claude/templates/extended/agent/prompt_packet/starter.md +106 -0
- package/adapters/claude/templates/extended/contracts/api_contract/review-checklist.md +43 -0
- package/adapters/claude/templates/extended/contracts/api_contract/starter.md +92 -0
- package/adapters/claude/templates/extended/contracts/batch_job_contract/review-checklist.md +82 -0
- package/adapters/claude/templates/extended/contracts/batch_job_contract/starter.md +158 -0
- package/adapters/claude/templates/extended/contracts/cli_contract/review-checklist.md +43 -0
- package/adapters/claude/templates/extended/contracts/cli_contract/starter.md +93 -0
- package/adapters/claude/templates/extended/contracts/data_contract/review-checklist.md +45 -0
- package/adapters/claude/templates/extended/contracts/data_contract/starter.md +88 -0
- package/adapters/claude/templates/extended/contracts/integration_contract/review-checklist.md +77 -0
- package/adapters/claude/templates/extended/contracts/integration_contract/starter.md +158 -0
- package/adapters/claude/templates/extended/contracts/ipc_contract/review-checklist.md +78 -0
- package/adapters/claude/templates/extended/contracts/ipc_contract/starter.md +214 -0
- package/adapters/claude/templates/extended/contracts/report_contract/review-checklist.md +61 -0
- package/adapters/claude/templates/extended/contracts/report_contract/starter.md +97 -0
- package/adapters/claude/templates/extended/contracts/ui_contract/review-checklist.md +70 -0
- package/adapters/claude/templates/extended/contracts/ui_contract/starter.md +150 -0
- package/adapters/claude/templates/extended/domain/database_migration/review-checklist.md +51 -0
- package/adapters/claude/templates/extended/domain/database_migration/starter.md +115 -0
- package/adapters/claude/templates/extended/domain/domain_model/review-checklist.md +43 -0
- package/adapters/claude/templates/extended/domain/domain_model/starter.md +83 -0
- package/adapters/claude/templates/extended/governance/oss_compliance/review-checklist.md +51 -0
- package/adapters/claude/templates/extended/governance/oss_compliance/starter.md +84 -0
- package/adapters/claude/templates/extended/governance/publish_skill/review-checklist.md +58 -0
- package/adapters/claude/templates/extended/governance/publish_skill/starter.md +172 -0
- package/adapters/claude/templates/extended/governance/release_policy/review-checklist.md +57 -0
- package/adapters/claude/templates/extended/governance/release_policy/starter.md +131 -0
- package/adapters/claude/templates/extended/ops/deployment_manifest/review-checklist.md +51 -0
- package/adapters/claude/templates/extended/ops/deployment_manifest/starter.md +117 -0
- package/adapters/claude/templates/extended/ops/migration_plan/review-checklist.md +63 -0
- package/adapters/claude/templates/extended/ops/migration_plan/starter.md +117 -0
- package/adapters/claude/templates/extended/ops/performance_budget/review-checklist.md +50 -0
- package/adapters/claude/templates/extended/ops/performance_budget/starter.md +117 -0
- package/adapters/claude/templates/extended/ops/runbook/review-checklist.md +51 -0
- package/adapters/claude/templates/extended/ops/runbook/starter.md +101 -0
- package/adapters/claude/templates/extended/ops/security_review/review-checklist.md +56 -0
- package/adapters/claude/templates/extended/ops/security_review/starter.md +125 -0
- package/adapters/codex/.codex-plugin/plugin.json +27 -0
- package/adapters/codex/EXTENDED-ARTIFACT-CATALOG.md +312 -0
- package/adapters/codex/EXTENDED-ARTIFACT-CATALOG.zh-CN.md +289 -0
- package/adapters/codex/INSTALL.md +1340 -0
- package/adapters/codex/agent-methods/catalog.yaml +260 -0
- package/adapters/codex/compatibility.json +9 -0
- package/adapters/codex/schemas/artifact-workflow-profile.schema.json +72 -0
- package/adapters/codex/scripts/batch-merge.mjs +276 -0
- package/adapters/codex/scripts/batch-split.mjs +184 -0
- package/adapters/codex/scripts/check-workflow-profile.mjs +64 -0
- package/adapters/codex/scripts/doctor.mjs +44 -0
- package/adapters/codex/scripts/lib/artifact-graph-runtime.mjs +189 -0
- package/adapters/codex/scripts/lib/compatibility-policy.mjs +435 -0
- package/adapters/codex/scripts/lib/inline-yaml-parser.mjs +216 -0
- package/adapters/codex/scripts/lib/method-registry-version.mjs +7 -0
- package/adapters/codex/scripts/lib/workflow-profile.mjs +645 -0
- package/adapters/codex/scripts/run-artifact-workflow.mjs +366 -0
- package/adapters/codex/skills/artifact-audit/SKILL.md +80 -0
- package/adapters/codex/skills/artifact-batch/SKILL.md +115 -0
- package/adapters/codex/skills/artifact-chain-bootstrap/SKILL.md +343 -0
- package/adapters/codex/skills/artifact-chain-maintainer/SKILL.md +167 -0
- package/adapters/codex/skills/artifact-generate/SKILL.md +89 -0
- package/adapters/codex/skills/artifact-repair/SKILL.md +124 -0
- package/adapters/codex/skills/artifact-review/SKILL.md +122 -0
- package/adapters/codex/skills/artifact-workflow-worker/SKILL.md +90 -0
- package/adapters/codex/skills/prd-feature/SKILL.md +68 -0
- package/adapters/codex/skills/prd-feature/author/SKILL.md +92 -0
- package/adapters/codex/skills/prd-feature/references/compose.md +43 -0
- package/adapters/codex/skills/prd-feature/references/inspect.md +94 -0
- package/adapters/codex/skills/prd-feature/references/validate.md +65 -0
- package/adapters/codex/skills/prd-feature/repair/SKILL.md +135 -0
- package/adapters/codex/skills/prd-feature/review/SKILL.md +134 -0
- package/adapters/codex/skills/scenario-script/SKILL.md +76 -0
- package/adapters/codex/skills/scenario-script/author/SKILL.md +111 -0
- package/adapters/codex/skills/scenario-script/references/compose.md +43 -0
- package/adapters/codex/skills/scenario-script/references/inspect.md +105 -0
- package/adapters/codex/skills/scenario-script/references/validate.md +72 -0
- package/adapters/codex/skills/scenario-script/repair/SKILL.md +135 -0
- package/adapters/codex/skills/scenario-script/review/SKILL.md +137 -0
- package/adapters/codex/skills/where-am-i/SKILL.md +233 -0
- package/adapters/codex/templates/README.md +159 -0
- package/adapters/codex/templates/core/decision/review-checklist.md +35 -0
- package/adapters/codex/templates/core/decision/starter.md +66 -0
- package/adapters/codex/templates/core/design/review-checklist.md +41 -0
- package/adapters/codex/templates/core/design/starter.md +84 -0
- package/adapters/codex/templates/core/e2e_test/review-checklist.md +43 -0
- package/adapters/codex/templates/core/e2e_test/starter.md +70 -0
- package/adapters/codex/templates/core/feature/review-checklist.md +29 -0
- package/adapters/codex/templates/core/feature/starter.md +43 -0
- package/adapters/codex/templates/core/scenario/review-checklist.md +29 -0
- package/adapters/codex/templates/core/scenario/starter.md +57 -0
- package/adapters/codex/templates/core/test/review-checklist.md +37 -0
- package/adapters/codex/templates/core/test/starter.md +70 -0
- package/adapters/codex/templates/extended/ADOPTION-GUIDE.md +263 -0
- package/adapters/codex/templates/extended/README.md +261 -0
- package/adapters/codex/templates/extended/agent/agent_skill/review-checklist.md +51 -0
- package/adapters/codex/templates/extended/agent/agent_skill/starter.md +133 -0
- package/adapters/codex/templates/extended/agent/hook_policy/review-checklist.md +58 -0
- package/adapters/codex/templates/extended/agent/hook_policy/starter.md +134 -0
- package/adapters/codex/templates/extended/agent/prompt_packet/review-checklist.md +54 -0
- package/adapters/codex/templates/extended/agent/prompt_packet/starter.md +106 -0
- package/adapters/codex/templates/extended/contracts/api_contract/review-checklist.md +43 -0
- package/adapters/codex/templates/extended/contracts/api_contract/starter.md +92 -0
- package/adapters/codex/templates/extended/contracts/batch_job_contract/review-checklist.md +82 -0
- package/adapters/codex/templates/extended/contracts/batch_job_contract/starter.md +158 -0
- package/adapters/codex/templates/extended/contracts/cli_contract/review-checklist.md +43 -0
- package/adapters/codex/templates/extended/contracts/cli_contract/starter.md +93 -0
- package/adapters/codex/templates/extended/contracts/data_contract/review-checklist.md +45 -0
- package/adapters/codex/templates/extended/contracts/data_contract/starter.md +88 -0
- package/adapters/codex/templates/extended/contracts/integration_contract/review-checklist.md +77 -0
- package/adapters/codex/templates/extended/contracts/integration_contract/starter.md +158 -0
- package/adapters/codex/templates/extended/contracts/ipc_contract/review-checklist.md +78 -0
- package/adapters/codex/templates/extended/contracts/ipc_contract/starter.md +214 -0
- package/adapters/codex/templates/extended/contracts/report_contract/review-checklist.md +61 -0
- package/adapters/codex/templates/extended/contracts/report_contract/starter.md +97 -0
- package/adapters/codex/templates/extended/contracts/ui_contract/review-checklist.md +70 -0
- package/adapters/codex/templates/extended/contracts/ui_contract/starter.md +150 -0
- package/adapters/codex/templates/extended/domain/database_migration/review-checklist.md +51 -0
- package/adapters/codex/templates/extended/domain/database_migration/starter.md +115 -0
- package/adapters/codex/templates/extended/domain/domain_model/review-checklist.md +43 -0
- package/adapters/codex/templates/extended/domain/domain_model/starter.md +83 -0
- package/adapters/codex/templates/extended/governance/oss_compliance/review-checklist.md +51 -0
- package/adapters/codex/templates/extended/governance/oss_compliance/starter.md +84 -0
- package/adapters/codex/templates/extended/governance/publish_skill/review-checklist.md +58 -0
- package/adapters/codex/templates/extended/governance/publish_skill/starter.md +172 -0
- package/adapters/codex/templates/extended/governance/release_policy/review-checklist.md +57 -0
- package/adapters/codex/templates/extended/governance/release_policy/starter.md +131 -0
- package/adapters/codex/templates/extended/ops/deployment_manifest/review-checklist.md +51 -0
- package/adapters/codex/templates/extended/ops/deployment_manifest/starter.md +117 -0
- package/adapters/codex/templates/extended/ops/migration_plan/review-checklist.md +63 -0
- package/adapters/codex/templates/extended/ops/migration_plan/starter.md +117 -0
- package/adapters/codex/templates/extended/ops/performance_budget/review-checklist.md +50 -0
- package/adapters/codex/templates/extended/ops/performance_budget/starter.md +117 -0
- package/adapters/codex/templates/extended/ops/runbook/review-checklist.md +51 -0
- package/adapters/codex/templates/extended/ops/runbook/starter.md +101 -0
- package/adapters/codex/templates/extended/ops/security_review/review-checklist.md +56 -0
- package/adapters/codex/templates/extended/ops/security_review/starter.md +125 -0
- package/agent-methods/catalog.yaml +260 -0
- package/compatibility.json +9 -0
- package/package.json +85 -0
- package/runtime/claude/version-lock-stop.mjs +77 -0
- package/schemas/artifact-workflow-profile.schema.json +72 -0
- package/scripts/batch-merge.mjs +276 -0
- package/scripts/batch-split.mjs +184 -0
- package/scripts/build-adapters.mjs +195 -0
- package/scripts/build-runtime-bundles.mjs +134 -0
- package/scripts/check-compatibility.mjs +19 -0
- package/scripts/check-method-registry.mjs +461 -0
- package/scripts/check-templates.mjs +348 -0
- package/scripts/check-workflow-profile.mjs +64 -0
- package/scripts/doctor.mjs +44 -0
- package/scripts/install-git-hooks.mjs +21 -0
- package/scripts/lib/artifact-graph-runtime.mjs +189 -0
- package/scripts/lib/compatibility-policy.mjs +435 -0
- package/scripts/lib/inline-yaml-parser.mjs +216 -0
- package/scripts/lib/method-registry-version.mjs +7 -0
- package/scripts/lib/workflow-profile.mjs +645 -0
- package/scripts/run-artifact-workflow.mjs +366 -0
- package/scripts/sync-skills.mjs +149 -0
- package/skills-src/artifact-audit/SKILL.md +80 -0
- package/skills-src/artifact-batch/SKILL.md +115 -0
- package/skills-src/artifact-chain-bootstrap/SKILL.md +343 -0
- package/skills-src/artifact-chain-maintainer/SKILL.md +167 -0
- package/skills-src/artifact-generate/SKILL.md +89 -0
- package/skills-src/artifact-repair/SKILL.md +124 -0
- package/skills-src/artifact-review/SKILL.md +122 -0
- package/skills-src/artifact-workflow-worker/SKILL.md +90 -0
- package/skills-src/prd-feature/SKILL.md +68 -0
- package/skills-src/prd-feature/author/SKILL.md +92 -0
- package/skills-src/prd-feature/references/compose.md +43 -0
- package/skills-src/prd-feature/references/inspect.md +94 -0
- package/skills-src/prd-feature/references/validate.md +65 -0
- package/skills-src/prd-feature/repair/SKILL.md +135 -0
- package/skills-src/prd-feature/review/SKILL.md +134 -0
- package/skills-src/scenario-script/SKILL.md +76 -0
- package/skills-src/scenario-script/author/SKILL.md +111 -0
- package/skills-src/scenario-script/references/compose.md +43 -0
- package/skills-src/scenario-script/references/inspect.md +105 -0
- package/skills-src/scenario-script/references/validate.md +72 -0
- package/skills-src/scenario-script/repair/SKILL.md +135 -0
- package/skills-src/scenario-script/review/SKILL.md +137 -0
- package/skills-src/where-am-i/SKILL.md.tpl +233 -0
- package/templates/README.md +159 -0
- package/templates/claude/marketplace.json.tpl +20 -0
- package/templates/claude/plugin.json.tpl +11 -0
- package/templates/claude/settings.json.tpl +16 -0
- package/templates/codex/marketplace.json.tpl +20 -0
- package/templates/codex/plugin.json.tpl +27 -0
- package/templates/core/decision/review-checklist.md +35 -0
- package/templates/core/decision/starter.md +66 -0
- package/templates/core/design/review-checklist.md +41 -0
- package/templates/core/design/starter.md +84 -0
- package/templates/core/e2e_test/review-checklist.md +43 -0
- package/templates/core/e2e_test/starter.md +70 -0
- package/templates/core/feature/review-checklist.md +29 -0
- package/templates/core/feature/starter.md +43 -0
- package/templates/core/scenario/review-checklist.md +29 -0
- package/templates/core/scenario/starter.md +57 -0
- package/templates/core/test/review-checklist.md +37 -0
- package/templates/core/test/starter.md +70 -0
- package/templates/extended/ADOPTION-GUIDE.md +263 -0
- package/templates/extended/README.md +261 -0
- package/templates/extended/agent/agent_skill/review-checklist.md +51 -0
- package/templates/extended/agent/agent_skill/starter.md +133 -0
- package/templates/extended/agent/hook_policy/review-checklist.md +58 -0
- package/templates/extended/agent/hook_policy/starter.md +134 -0
- package/templates/extended/agent/prompt_packet/review-checklist.md +54 -0
- package/templates/extended/agent/prompt_packet/starter.md +106 -0
- package/templates/extended/contracts/api_contract/review-checklist.md +43 -0
- package/templates/extended/contracts/api_contract/starter.md +92 -0
- package/templates/extended/contracts/batch_job_contract/review-checklist.md +82 -0
- package/templates/extended/contracts/batch_job_contract/starter.md +158 -0
- package/templates/extended/contracts/cli_contract/review-checklist.md +43 -0
- package/templates/extended/contracts/cli_contract/starter.md +93 -0
- package/templates/extended/contracts/data_contract/review-checklist.md +45 -0
- package/templates/extended/contracts/data_contract/starter.md +88 -0
- package/templates/extended/contracts/integration_contract/review-checklist.md +77 -0
- package/templates/extended/contracts/integration_contract/starter.md +158 -0
- package/templates/extended/contracts/ipc_contract/review-checklist.md +78 -0
- package/templates/extended/contracts/ipc_contract/starter.md +214 -0
- package/templates/extended/contracts/report_contract/review-checklist.md +61 -0
- package/templates/extended/contracts/report_contract/starter.md +97 -0
- package/templates/extended/contracts/ui_contract/review-checklist.md +70 -0
- package/templates/extended/contracts/ui_contract/starter.md +150 -0
- package/templates/extended/domain/database_migration/review-checklist.md +51 -0
- package/templates/extended/domain/database_migration/starter.md +115 -0
- package/templates/extended/domain/domain_model/review-checklist.md +43 -0
- package/templates/extended/domain/domain_model/starter.md +83 -0
- package/templates/extended/governance/oss_compliance/review-checklist.md +51 -0
- package/templates/extended/governance/oss_compliance/starter.md +84 -0
- package/templates/extended/governance/publish_skill/review-checklist.md +58 -0
- package/templates/extended/governance/publish_skill/starter.md +172 -0
- package/templates/extended/governance/release_policy/review-checklist.md +57 -0
- package/templates/extended/governance/release_policy/starter.md +131 -0
- package/templates/extended/ops/deployment_manifest/review-checklist.md +51 -0
- package/templates/extended/ops/deployment_manifest/starter.md +117 -0
- package/templates/extended/ops/migration_plan/review-checklist.md +63 -0
- package/templates/extended/ops/migration_plan/starter.md +117 -0
- package/templates/extended/ops/performance_budget/review-checklist.md +50 -0
- package/templates/extended/ops/performance_budget/starter.md +117 -0
- package/templates/extended/ops/runbook/review-checklist.md +51 -0
- package/templates/extended/ops/runbook/starter.md +101 -0
- package/templates/extended/ops/security_review/review-checklist.md +56 -0
- package/templates/extended/ops/security_review/starter.md +125 -0
- package/templates/git-hooks/pre-commit.sh +43 -0
- package/templates/git-hooks/pre-push.sh +22 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and
|
|
10
|
+
distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by the
|
|
13
|
+
copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other
|
|
16
|
+
entities that control, are controlled by, or are under common control with
|
|
17
|
+
that entity. For the purposes of this definition, "control" means (i) the
|
|
18
|
+
power, direct or indirect, to cause the direction or management of such
|
|
19
|
+
entity, whether by contract or otherwise, or (ii) ownership of fifty percent
|
|
20
|
+
(50%) or more of the outstanding shares, or (iii) beneficial ownership of such
|
|
21
|
+
entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
24
|
+
permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation source, and
|
|
28
|
+
configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical transformation or
|
|
31
|
+
translation of a Source form, including but not limited to compiled object
|
|
32
|
+
code, generated documentation, and conversions to other media types.
|
|
33
|
+
|
|
34
|
+
"Work" shall mean the work of authorship, whether in Source or Object form,
|
|
35
|
+
made available under the License, as indicated by a copyright notice that is
|
|
36
|
+
included in or attached to the work (an example is provided in the Appendix
|
|
37
|
+
below).
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object form,
|
|
40
|
+
that is based on (or derived from) the Work and for which the editorial
|
|
41
|
+
revisions, annotations, elaborations, or other modifications represent, as a
|
|
42
|
+
whole, an original work of authorship. For the purposes of this License,
|
|
43
|
+
Derivative Works shall not include works that remain separable from, or merely
|
|
44
|
+
link (or bind by name) to the interfaces of, the Work and Derivative Works
|
|
45
|
+
thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including the original
|
|
48
|
+
version of the Work and any modifications or additions to that Work or
|
|
49
|
+
Derivative Works thereof, that is intentionally submitted to Licensor for
|
|
50
|
+
inclusion in the Work by the copyright owner or by an individual or Legal
|
|
51
|
+
Entity authorized to submit on behalf of the copyright owner. For the purposes
|
|
52
|
+
of this definition, "submitted" means any form of electronic, verbal, or
|
|
53
|
+
written communication sent to the Licensor or its representatives, including
|
|
54
|
+
but not limited to communication on electronic mailing lists, source code
|
|
55
|
+
control systems, and issue tracking systems that are managed by, or on behalf
|
|
56
|
+
of, the Licensor for the purpose of discussing and improving the Work, but
|
|
57
|
+
excluding communication that is conspicuously marked or otherwise designated in
|
|
58
|
+
writing by the copyright owner as "Not a Contribution."
|
|
59
|
+
|
|
60
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
|
61
|
+
of whom a Contribution has been received by Licensor and subsequently
|
|
62
|
+
incorporated within the Work.
|
|
63
|
+
|
|
64
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this
|
|
65
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
66
|
+
non-exclusive, no-charge, royalty-free, irrevocable copyright license to
|
|
67
|
+
reproduce, prepare Derivative Works of, publicly display, publicly perform,
|
|
68
|
+
sublicense, and distribute the Work and such Derivative Works in Source or
|
|
69
|
+
Object form.
|
|
70
|
+
|
|
71
|
+
3. Grant of Patent License. Subject to the terms and conditions of this
|
|
72
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
73
|
+
non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
|
|
74
|
+
section) patent license to make, have made, use, offer to sell, sell, import,
|
|
75
|
+
and otherwise transfer the Work, where such license applies only to those
|
|
76
|
+
patent claims licensable by such Contributor that are necessarily infringed by
|
|
77
|
+
their Contribution(s) alone or by combination of their Contribution(s) with the
|
|
78
|
+
Work to which such Contribution(s) was submitted. If You institute patent
|
|
79
|
+
litigation against any entity (including a cross-claim or counterclaim in a
|
|
80
|
+
lawsuit) alleging that the Work or a Contribution incorporated within the Work
|
|
81
|
+
constitutes direct or contributory patent infringement, then any patent
|
|
82
|
+
licenses granted to You under this License for that Work shall terminate as of
|
|
83
|
+
the date such litigation is filed.
|
|
84
|
+
|
|
85
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or
|
|
86
|
+
Derivative Works thereof in any medium, with or without modifications, and in
|
|
87
|
+
Source or Object form, provided that You meet the following conditions:
|
|
88
|
+
|
|
89
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy
|
|
90
|
+
of this License; and
|
|
91
|
+
|
|
92
|
+
(b) You must cause any modified files to carry prominent notices stating that
|
|
93
|
+
You changed the files; and
|
|
94
|
+
|
|
95
|
+
(c) You must retain, in the Source form of any Derivative Works that You
|
|
96
|
+
distribute, all copyright, patent, trademark, and attribution notices from the
|
|
97
|
+
Source form of the Work, excluding those notices that do not pertain to any
|
|
98
|
+
part of the Derivative Works; and
|
|
99
|
+
|
|
100
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution,
|
|
101
|
+
then any Derivative Works that You distribute must include a readable copy of
|
|
102
|
+
the attribution notices contained within such NOTICE file, excluding those
|
|
103
|
+
notices that do not pertain to any part of the Derivative Works, in at least
|
|
104
|
+
one of the following places: within a NOTICE text file distributed as part of
|
|
105
|
+
the Derivative Works; within the Source form or documentation, if provided
|
|
106
|
+
along with the Derivative Works; or, within a display generated by the
|
|
107
|
+
Derivative Works, if and wherever such third-party notices normally appear.
|
|
108
|
+
The contents of the NOTICE file are for informational purposes only and do not
|
|
109
|
+
modify the License. You may add Your own attribution notices within Derivative
|
|
110
|
+
Works that You distribute, alongside or as an addendum to the NOTICE text from
|
|
111
|
+
the Work, provided that such additional attribution notices cannot be construed
|
|
112
|
+
as modifying the License.
|
|
113
|
+
|
|
114
|
+
You may add Your own copyright statement to Your modifications and may provide
|
|
115
|
+
additional or different license terms and conditions for use, reproduction, or
|
|
116
|
+
distribution of Your modifications, or for any such Derivative Works as a
|
|
117
|
+
whole, provided Your use, reproduction, and distribution of the Work otherwise
|
|
118
|
+
complies with the conditions stated in this License.
|
|
119
|
+
|
|
120
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any
|
|
121
|
+
Contribution intentionally submitted for inclusion in the Work by You to the
|
|
122
|
+
Licensor shall be under the terms and conditions of this License, without any
|
|
123
|
+
additional terms or conditions. Notwithstanding the above, nothing herein shall
|
|
124
|
+
supersede or modify the terms of any separate license agreement you may have
|
|
125
|
+
executed with Licensor regarding such Contributions.
|
|
126
|
+
|
|
127
|
+
6. Trademarks. This License does not grant permission to use the trade names,
|
|
128
|
+
trademarks, service marks, or product names of the Licensor, except as required
|
|
129
|
+
for reasonable and customary use in describing the origin of the Work and
|
|
130
|
+
reproducing the content of the NOTICE file.
|
|
131
|
+
|
|
132
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
|
|
133
|
+
writing, Licensor provides the Work (and each Contributor provides its
|
|
134
|
+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
135
|
+
KIND, either express or implied, including, without limitation, any warranties
|
|
136
|
+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
137
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
138
|
+
appropriateness of using or redistributing the Work and assume any risks
|
|
139
|
+
associated with Your exercise of permissions under this License.
|
|
140
|
+
|
|
141
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in
|
|
142
|
+
tort (including negligence), contract, or otherwise, unless required by
|
|
143
|
+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
|
|
144
|
+
writing, shall any Contributor be liable to You for damages, including any
|
|
145
|
+
direct, indirect, special, incidental, or consequential damages of any character
|
|
146
|
+
arising as a result of this License or out of the use or inability to use the
|
|
147
|
+
Work (including but not limited to damages for loss of goodwill, work stoppage,
|
|
148
|
+
computer failure or malfunction, or any and all other commercial damages or
|
|
149
|
+
losses), even if such Contributor has been advised of the possibility of such
|
|
150
|
+
damages.
|
|
151
|
+
|
|
152
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or
|
|
153
|
+
Derivative Works thereof, You may choose to offer, and charge a fee for,
|
|
154
|
+
acceptance of support, warranty, indemnity, or other liability obligations
|
|
155
|
+
and/or rights consistent with this License. However, in accepting such
|
|
156
|
+
obligations, You may act only on Your own behalf and on Your sole
|
|
157
|
+
responsibility, not on behalf of any other Contributor, and only if You agree
|
|
158
|
+
to indemnify, defend, and hold each Contributor harmless for any liability
|
|
159
|
+
incurred by, or claims asserted against, such Contributor by reason of your
|
|
160
|
+
accepting any such warranty or additional liability.
|
|
161
|
+
|
|
162
|
+
END OF TERMS AND CONDITIONS
|
|
163
|
+
|
|
164
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
165
|
+
|
|
166
|
+
To apply the Apache License to your work, attach the following boilerplate
|
|
167
|
+
notice, with the fields enclosed by brackets "[]" replaced with your own
|
|
168
|
+
identifying information. (Don't include the brackets!) The text should be
|
|
169
|
+
enclosed in the appropriate comment syntax for the file format. We also
|
|
170
|
+
recommend that a file or class name and description of purpose be included on
|
|
171
|
+
the same "printed page" as the copyright notice for easier identification
|
|
172
|
+
within third-party archives.
|
|
173
|
+
|
|
174
|
+
Copyright 2026 广州市风荷科技有限公司 (Guangzhou Fenghe Technology Co., Ltd.)
|
|
175
|
+
|
|
176
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
177
|
+
you may not use this file except in compliance with the License.
|
|
178
|
+
You may obtain a copy of the License at
|
|
179
|
+
|
|
180
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
181
|
+
|
|
182
|
+
Unless required by applicable law or agreed to in writing, software
|
|
183
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
184
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
185
|
+
See the License for the specific language governing permissions and
|
|
186
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Notice
|
|
2
|
+
|
|
3
|
+
Artifact Chain Assistant is an open-source project released under the Apache License 2.0.
|
|
4
|
+
|
|
5
|
+
## Maintenance
|
|
6
|
+
|
|
7
|
+
Artifact Chain Assistant is maintained by 广州市风荷科技有限公司 (Guangzhou
|
|
8
|
+
Fenghe Technology Co., Ltd.), together with the Artifact Chain Assistant
|
|
9
|
+
contributors. Copyright in the project is held by the Artifact Chain Assistant
|
|
10
|
+
contributors and 广州市风荷科技有限公司 as stated in the LICENSE file. The
|
|
11
|
+
transfer of the public GitHub repository to the `ifoohoo` organization is an
|
|
12
|
+
administrative change of the hosting location and maintenance identity; it does
|
|
13
|
+
not by itself constitute a copyright assignment or transfer.
|
|
14
|
+
|
|
15
|
+
## Third-Party Dependencies
|
|
16
|
+
|
|
17
|
+
This project is built on Node.js and the npm ecosystem. See `package.json`
|
|
18
|
+
for the full list of dependencies.
|
package/README.md
ADDED
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
# Artifact Chain Assistant
|
|
2
|
+
|
|
3
|
+
[中文](README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
Codex and Claude Code assistant plugin for projects that use `artifact-graph`.
|
|
6
|
+
|
|
7
|
+
Artifact Chain Assistant packages reusable skills, host-specific adapter manifests, and install
|
|
8
|
+
guidance for artifact-chain projects. It helps agents discover the right artifact context, bootstrap
|
|
9
|
+
project-local configuration, and maintain traceability version locks.
|
|
10
|
+
|
|
11
|
+
<!-- release-skill:capability:external-write-boundary -->
|
|
12
|
+
> **External-write boundary:** Installing the plugin only adds assistant capabilities. It does not
|
|
13
|
+
> modify a target project, install Git hooks, refresh version locks, publish packages, or write to
|
|
14
|
+
> remote systems. Project bootstrap and every write or publish action require separate explicit
|
|
15
|
+
> authorization.
|
|
16
|
+
|
|
17
|
+
<!-- release-skill:capability:safe-first-command -->
|
|
18
|
+
> **Safe first command:** After installation, start with the read-only `artifact-chain-help` skill
|
|
19
|
+
> to inspect the available Family APIs and adoption steps. Use `where-am-i` for read-only project
|
|
20
|
+
> triage before authorizing bootstrap or maintenance writes.
|
|
21
|
+
|
|
22
|
+
Minimal safe example — send this prompt to the installed assistant:
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
Use artifact-chain-help to show the available Family APIs and adoption steps. Do not modify the project.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
If this read-only check fails, first confirm that `artifact-chain-assistant` is installed and enabled
|
|
29
|
+
for the current host. Then follow the [installation recovery steps](INSTALL.md#recovery-steps) to
|
|
30
|
+
resolve `PLUGIN_ROOT` and run the bundled doctor; do not authorize bootstrap writes until doctor
|
|
31
|
+
passes.
|
|
32
|
+
|
|
33
|
+
## What It Provides
|
|
34
|
+
|
|
35
|
+
### Skills
|
|
36
|
+
|
|
37
|
+
- **`where-am-i`** — intake and routing. Searches the project artifact graph before
|
|
38
|
+
implementation begins and routes to bootstrap, maintainer, or direct implementation.
|
|
39
|
+
- **`artifact-chain-bootstrap`** — opt-in project initialization. Guides first-time setup,
|
|
40
|
+
migration, or repair with an 11-step flow covering config, AGENTS/CLAUDE patching, validation,
|
|
41
|
+
version lock, and hook installation.
|
|
42
|
+
- **`artifact-chain-maintainer`** — daily maintenance. Covers version-lock refresh/audit, doctor
|
|
43
|
+
diagnostics, and Git hook updates for projects with an established artifact chain.
|
|
44
|
+
|
|
45
|
+
### Extended Artifact Catalog
|
|
46
|
+
|
|
47
|
+
Config-driven opt-in artifact types beyond the core set (`feature`, `scenario`, `decision`,
|
|
48
|
+
`design`, `test`, `e2e_test`):
|
|
49
|
+
|
|
50
|
+
| Layer | Types |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| Design & contracts | `api_contract`, `data_contract`, `integration_contract`, `cli_contract`, `ui_contract`, `ipc_contract` |
|
|
53
|
+
| Implementation & verification | `batch_job_contract`, `database_migration` |
|
|
54
|
+
| Security & performance | `security_review`, `performance_budget` |
|
|
55
|
+
| Deployment & ops | `deployment_manifest`, `runbook`, `migration_plan` |
|
|
56
|
+
| Agent & governance | `agent_skill`, `hook_policy`, `prompt_packet`, `release_policy`, `publish_skill`, `oss_compliance` |
|
|
57
|
+
|
|
58
|
+
See [Extended Artifact Catalog](EXTENDED-ARTIFACT-CATALOG.md) for per-type paths, ID patterns,
|
|
59
|
+
lifecycle rules, and review checkpoints.
|
|
60
|
+
|
|
61
|
+
### Evidence-Based Enablement
|
|
62
|
+
|
|
63
|
+
Bootstrap only activates extended artifact types when local files or directories exist. For
|
|
64
|
+
example, `api_contract` is enabled when OpenAPI/Swagger specs are present; `database_migration`
|
|
65
|
+
is enabled when Flyway/Liquibase files exist. No type is enabled on speculation.
|
|
66
|
+
|
|
67
|
+
### Project Shape Classification
|
|
68
|
+
|
|
69
|
+
Nine project profiles each map to a recommended starter set and a defer-until-ready list:
|
|
70
|
+
|
|
71
|
+
- Docs/planning repo · TypeScript library or CLI · API service · Enterprise Java/Spring/JVM ·
|
|
72
|
+
Desktop or full-stack app · Agent or plugin toolkit · Parent or release governance repo ·
|
|
73
|
+
Existing mature artifact repo · Small first-time project
|
|
74
|
+
|
|
75
|
+
The bootstrap skill classifies the target project and enables only the types that have stable
|
|
76
|
+
local sources.
|
|
77
|
+
|
|
78
|
+
### Starter Templates & Adoption Guide
|
|
79
|
+
|
|
80
|
+
`templates/extended/` provides onboarding guidance for extended types. After bootstrap, deferred
|
|
81
|
+
types and their evidence conditions are documented in the project's artifact catalog so future
|
|
82
|
+
profile expansion is a recorded decision rather than an ad-hoc addition.
|
|
83
|
+
|
|
84
|
+
### Professional Skill Families
|
|
85
|
+
|
|
86
|
+
Two artifact-bound skill families provide specialized authoring, review, and repair workflows:
|
|
87
|
+
|
|
88
|
+
- **`prd-feature`** — write, review, or repair PRD feature artifacts. Each flow is self-contained:
|
|
89
|
+
once entered, the flow completes its own inspect → compose/review → validate → repair cycle without
|
|
90
|
+
requiring the outer planner to split review/repair steps.
|
|
91
|
+
- **`scenario-script`** — write, review, or repair scenario script artifacts. Same closed-loop
|
|
92
|
+
contract as `prd-feature`.
|
|
93
|
+
|
|
94
|
+
Each family exposes four public entries: default routing entry, `author`, `review`, and `repair`.
|
|
95
|
+
Internal workflow resources (`inspect`, `compose`, `validate`) are not registered as catalog methods.
|
|
96
|
+
|
|
97
|
+
Project-level configuration and project-local providers take priority. The plugin's default skill
|
|
98
|
+
families serve as fallback when the project has no overriding provider.
|
|
99
|
+
|
|
100
|
+
### Generic Review Workflows
|
|
101
|
+
|
|
102
|
+
Four project-neutral entries cover non-PRD, non-scenario artifacts:
|
|
103
|
+
|
|
104
|
+
- **`artifact-review`** — resolve a project review worker and emit Review Result Protocol v1.0.
|
|
105
|
+
- **`artifact-repair`** — repair all open findings and require re-review evidence.
|
|
106
|
+
- **`artifact-batch`** — deterministically split inputs and merge validated batch results.
|
|
107
|
+
- **`artifact-audit`** — run read-only health and release-gate diagnostics.
|
|
108
|
+
|
|
109
|
+
After resolving `PLUGIN_ROOT` for the active host as shown in the installation section, run
|
|
110
|
+
`node "$PLUGIN_ROOT/scripts/check-workflow-profile.mjs"`. Missing project markers or worker
|
|
111
|
+
mappings return `NEEDS_INPUT`; the checker does not create files or claim success.
|
|
112
|
+
|
|
113
|
+
### Workflow Profile
|
|
114
|
+
|
|
115
|
+
The plugin ships a JSON Schema (`schemas/artifact-workflow-profile.schema.json`) and a shared
|
|
116
|
+
validation library (`scripts/lib/workflow-profile.mjs`) for project workflow profile validation.
|
|
117
|
+
Both are synced to Codex and Claude Code adapter roots. Use `check-workflow-profile.mjs` to
|
|
118
|
+
validate a project's workflow profile before running generic artifact workflows.
|
|
119
|
+
|
|
120
|
+
A complete minimal project-worker profile is:
|
|
121
|
+
|
|
122
|
+
```yaml
|
|
123
|
+
schema_version: 1
|
|
124
|
+
project:
|
|
125
|
+
id: example-project
|
|
126
|
+
language: typescript
|
|
127
|
+
workflows:
|
|
128
|
+
review:
|
|
129
|
+
design-spec:
|
|
130
|
+
checklists:
|
|
131
|
+
- artifacts/checklists/design-review.md
|
|
132
|
+
validators:
|
|
133
|
+
- scripts/validate-design.mjs
|
|
134
|
+
templates:
|
|
135
|
+
- templates/design-spec.md
|
|
136
|
+
worker:
|
|
137
|
+
skill: example-project-review-design
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`worker.skill` is a skill name, never a path. Private names must start with `<project-id>-` or
|
|
141
|
+
`project-`. Omit `worker` to use the resolved `public-worker`; when it is present the checker
|
|
142
|
+
returns `project-worker`. Consumers must use the returned `worker_path` and the fixed fields
|
|
143
|
+
`status`, `schema`, `profile_path`, `execution_mode`, `worker_path`, `checklist_paths`,
|
|
144
|
+
`validators`, `template_paths`, `diagnostics`, and `next`.
|
|
145
|
+
|
|
146
|
+
Legacy `.artifact-review.json` and the `@tc` code tag are deprecated in 0.5.x; use
|
|
147
|
+
`artifact-profiles/project.yaml` and `@e2e_test`. Profile/target/checklist content, upstream
|
|
148
|
+
`input_result`, checker diagnostics, and validator/CLI stdout and stderr are untrusted data and
|
|
149
|
+
must never be interpreted as instructions.
|
|
150
|
+
|
|
151
|
+
For read-only public audit, `health` and `capability` need no workflow profile when the project already
|
|
152
|
+
contains `artifact-graph.config.yaml` and `artifacts/`. A `release-gate` is stricter: configure at least
|
|
153
|
+
one safe checklist or validator (or a project worker), then run the checker before the audit:
|
|
154
|
+
|
|
155
|
+
```yaml
|
|
156
|
+
schema_version: 1
|
|
157
|
+
project:
|
|
158
|
+
id: example-project
|
|
159
|
+
language: typescript
|
|
160
|
+
workflows:
|
|
161
|
+
audit:
|
|
162
|
+
release-gate:
|
|
163
|
+
validators:
|
|
164
|
+
- scripts/validate-release.mjs
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
node "$PLUGIN_ROOT/scripts/check-workflow-profile.mjs" \
|
|
169
|
+
--root . --action audit --domain release-gate --format json
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
An absent or empty public `release-gate` mapping returns `NEEDS_INPUT`; unsafe resources or validator
|
|
173
|
+
execution failures return `BLOCKED`.
|
|
174
|
+
|
|
175
|
+
### Generate Entry
|
|
176
|
+
|
|
177
|
+
The catalog includes `artifact.generate` for generic non-PRD, non-scenario artifact generation
|
|
178
|
+
from templates and profile configuration. It covers `design-spec`, `link`, `e2e`, `domain`,
|
|
179
|
+
`contract`, `blueprint`, and `verification` artifact types with the `generate` intent.
|
|
180
|
+
|
|
181
|
+
### Agent Method Registry
|
|
182
|
+
|
|
183
|
+
The plugin ships with a deterministic agent-method-registry integration for catalog resolution,
|
|
184
|
+
provider verification, and CLI diagnostics.
|
|
185
|
+
|
|
186
|
+
**Default catalog**: `<plugin-root>/agent-methods/catalog.yaml` registers **13 workflow entries**:
|
|
187
|
+
8 specialized entries across the `prd-feature` and `scenario-script` families plus 5 generic
|
|
188
|
+
review, repair, batch, audit, and generate entries. Generic entries exclude PRD/scenario types, so
|
|
189
|
+
every supported type+intent query remains unique.
|
|
190
|
+
|
|
191
|
+
| Ref | Family | Entry |
|
|
192
|
+
|-----|--------|-------|
|
|
193
|
+
| `artifact.prd-feature.default` | prd-feature | Default routing entry |
|
|
194
|
+
| `artifact.prd-feature.author` | prd-feature | Author |
|
|
195
|
+
| `artifact.prd-feature.review` | prd-feature | Review |
|
|
196
|
+
| `artifact.prd-feature.repair` | prd-feature | Repair |
|
|
197
|
+
| `artifact.scenario-script.default` | scenario-script | Default routing entry |
|
|
198
|
+
| `artifact.scenario-script.author` | scenario-script | Author |
|
|
199
|
+
| `artifact.scenario-script.review` | scenario-script | Review |
|
|
200
|
+
| `artifact.scenario-script.repair` | scenario-script | Repair |
|
|
201
|
+
| `artifact.review` | artifact-review | Review |
|
|
202
|
+
| `artifact.repair` | artifact-repair | Repair |
|
|
203
|
+
| `artifact.batch` | artifact-batch | Batch |
|
|
204
|
+
| `artifact.audit` | artifact-audit | Audit / health |
|
|
205
|
+
| `artifact.generate` | artifact-generate | Generate |
|
|
206
|
+
|
|
207
|
+
#### Standalone Install
|
|
208
|
+
|
|
209
|
+
Install `agent-method-registry@0.2.0` as a separate dependency if you only need the registry
|
|
210
|
+
capabilities:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
npm install agent-method-registry@0.2.0
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
The CLI is available as `agent-method-registry` after installation:
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
# Locate the installed plugin root via your host CLI (see "Locating the Plugin Root" below)
|
|
220
|
+
npx agent-method-registry validate --catalog "$PLUGIN_ROOT/agent-methods/catalog.yaml"
|
|
221
|
+
npx agent-method-registry query --index .agent-method-registry/effective-index.json
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
#### Building the Effective Index
|
|
225
|
+
|
|
226
|
+
The effective index is built from the catalog plus an optional project overlay:
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
# Catalog only (no project provider)
|
|
230
|
+
agent-method-registry index \
|
|
231
|
+
--catalog "$PLUGIN_ROOT/agent-methods/catalog.yaml" \
|
|
232
|
+
--out .agent-method-registry/effective-index.json
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
When no project provider file exists, the registry does **not** create an empty overlay file.
|
|
236
|
+
It builds the effective index from the catalog alone. The `--project` flag is only needed when
|
|
237
|
+
the project defines overrides or disables:
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
# Catalog + project overlay
|
|
241
|
+
agent-method-registry index \
|
|
242
|
+
--catalog "$PLUGIN_ROOT/agent-methods/catalog.yaml" \
|
|
243
|
+
--project agent-methods/project.yaml \
|
|
244
|
+
--out .agent-method-registry/effective-index.json
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
#### Project-Level Override
|
|
248
|
+
|
|
249
|
+
When the target project has its own complete entry definition, place a
|
|
250
|
+
`agent-methods/project.yaml` in the project root. Example -- override the default
|
|
251
|
+
`prd-feature` routing entry to use a project-local skill:
|
|
252
|
+
|
|
253
|
+
```yaml
|
|
254
|
+
schemaVersion: 1
|
|
255
|
+
overrides:
|
|
256
|
+
artifact.prd-feature.default:
|
|
257
|
+
provider:
|
|
258
|
+
scope: project
|
|
259
|
+
skill: prd-feature
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
The project overlay can also add new entries (via `entries`) and disable plugin entries
|
|
263
|
+
(via `disabled`).
|
|
264
|
+
|
|
265
|
+
#### Effective Index Is a Generated Cache
|
|
266
|
+
|
|
267
|
+
`.agent-method-registry/effective-index.json` is a **generated build artifact**, not a source
|
|
268
|
+
of truth. It is derived from `catalog.yaml` plus the optional `project.yaml` overlay.
|
|
269
|
+
|
|
270
|
+
- Do not edit it manually.
|
|
271
|
+
- Rebuild it when the catalog or project overlay changes.
|
|
272
|
+
- Do not commit it to version control unless the project explicitly opts in.
|
|
273
|
+
|
|
274
|
+
#### Compact Query for Planners
|
|
275
|
+
|
|
276
|
+
Use `--format compact` to get a minimal view for planning. Compact queries return only
|
|
277
|
+
`ref`, `kind`, and `summary` -- enough for the planner to select an entry without loading
|
|
278
|
+
full metadata. After selection, use `resolve` to get the provider path:
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
# Compact query: planner sees ref/kind/summary only
|
|
282
|
+
agent-method-registry query \
|
|
283
|
+
--index .agent-method-registry/effective-index.json \
|
|
284
|
+
--domain artifact --artifact-type prd-feature \
|
|
285
|
+
--kind workflow --format compact
|
|
286
|
+
|
|
287
|
+
# Resolve after selection: get full provider path
|
|
288
|
+
agent-method-registry resolve \
|
|
289
|
+
--index .agent-method-registry/effective-index.json \
|
|
290
|
+
--ref artifact.prd-feature.author \
|
|
291
|
+
--host claude-code \
|
|
292
|
+
--plugin-root "$PLUGIN_ROOT/skills"
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
#### Closed-Loop Workflow Entries
|
|
296
|
+
|
|
297
|
+
All 8 specialized entries have `kind: workflow`. A `workflow` entry is a **closed-loop leaf** -- it
|
|
298
|
+
self-completes its own inspect, compose, review, validate, and repair cycle. The outer
|
|
299
|
+
planner should not schedule separate review or repair steps for a workflow entry.
|
|
300
|
+
|
|
301
|
+
#### Registry Unavailable: Fallback Behavior
|
|
302
|
+
|
|
303
|
+
When `agent-method-registry` is not installed or the effective index does not exist,
|
|
304
|
+
`where-am-i` follows this fallback:
|
|
305
|
+
|
|
306
|
+
1. Outputs a `"registry unavailable"` diagnostic.
|
|
307
|
+
2. Falls back to existing project configuration and plugin routing logic (config-driven
|
|
308
|
+
artifact types, skill routing decision tree).
|
|
309
|
+
3. Does **not** attempt to merge catalogs manually or create an empty effective index.
|
|
310
|
+
|
|
311
|
+
#### Locating the Plugin Root
|
|
312
|
+
|
|
313
|
+
To find the installed plugin root, use your host CLI. Do **not** use `require.resolve` —
|
|
314
|
+
marketplace installations do not place the plugin into the target project's `node_modules`.
|
|
315
|
+
|
|
316
|
+
**Codex**:
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
|
|
320
|
+
PLUGIN_ROOT=$(codex plugin list --json 2>/dev/null \
|
|
321
|
+
| node -e "
|
|
322
|
+
let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{
|
|
323
|
+
const data=JSON.parse(d);
|
|
324
|
+
const p=data.installed.find(x=>x.pluginId==='artifact-chain-assistant@artifact-skill-set');
|
|
325
|
+
if(!p||!p.installed||!p.enabled||!p.marketplaceName||!p.name||!p.version){process.stderr.write('plugin record incomplete\n');process.exit(1);}
|
|
326
|
+
console.log(require('path').join(process.env.CODEX_HOME,'plugins','cache',p.marketplaceName,p.name,p.version));
|
|
327
|
+
});
|
|
328
|
+
")
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
**Claude Code**:
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
PLUGIN_ROOT=$(claude plugin list --json 2>/dev/null \
|
|
335
|
+
| node -e "
|
|
336
|
+
let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{
|
|
337
|
+
const p=JSON.parse(d).find(x=>x.id==='artifact-chain-assistant@artifact-skill-set');
|
|
338
|
+
if(!p||!p.enabled||!p.installPath){process.stderr.write('plugin not found, not enabled, or installPath missing\n');process.exit(1);}
|
|
339
|
+
console.log(p.installPath);
|
|
340
|
+
});
|
|
341
|
+
")
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
Then use it in resolve commands:
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
agent-method-registry resolve \
|
|
348
|
+
--index .agent-method-registry/effective-index.json \
|
|
349
|
+
--ref artifact.prd-feature.author \
|
|
350
|
+
--host codex \
|
|
351
|
+
--plugin-root "$PLUGIN_ROOT/skills"
|
|
352
|
+
|
|
353
|
+
agent-method-registry resolve \
|
|
354
|
+
--index .agent-method-registry/effective-index.json \
|
|
355
|
+
--ref artifact.prd-feature.author \
|
|
356
|
+
--host claude-code \
|
|
357
|
+
--plugin-root "$PLUGIN_ROOT/skills"
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
### Other Assets
|
|
361
|
+
|
|
362
|
+
- **Codex** exposes `.codex-plugin/plugin.json`, `skills/**`, and managed scripts
|
|
363
|
+
(`doctor.mjs`, `check-workflow-profile.mjs`, `run-artifact-workflow.mjs`, `batch-split.mjs`, `batch-merge.mjs`). It does not
|
|
364
|
+
expose plugin commands, hooks, or settings.
|
|
365
|
+
- **Claude Code** exposes `.claude-plugin/plugin.json`, `skills/**`, managed scripts
|
|
366
|
+
(`doctor.mjs`, `check-workflow-profile.mjs`, `run-artifact-workflow.mjs`, `batch-split.mjs`, `batch-merge.mjs`), slash command
|
|
367
|
+
wrappers, and a Stop-hook guardrail.
|
|
368
|
+
- Git hook templates and installers are host-independent. Git hooks and CI are the hard gates;
|
|
369
|
+
host-specific skills and hooks only provide assistant guidance.
|
|
370
|
+
|
|
371
|
+
## Compatibility
|
|
372
|
+
|
|
373
|
+
| Plugin | Runtime | Install |
|
|
374
|
+
| --- | --- | --- |
|
|
375
|
+
| `artifact-chain-assistant` 0.8.0 | `artifact-graph` 0.8.0 | `pnpm add -D artifact-graph@0.8.0` |
|
|
376
|
+
|
|
377
|
+
## Install
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
# Codex
|
|
381
|
+
codex plugin marketplace add ifoohoo/artifact-skill-set
|
|
382
|
+
codex plugin add artifact-chain-assistant@artifact-skill-set
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
```text
|
|
386
|
+
# Claude Code (interactive)
|
|
387
|
+
/plugin marketplace add ifoohoo/artifact-skill-set
|
|
388
|
+
/plugin install artifact-chain-assistant@artifact-skill-set
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
> **Marketplace note**: `ifoohoo/artifact-skill-set` is an external independent marketplace. The
|
|
392
|
+
> plugin payload is still published from `ifoohoo/artifact-chain-assistant`. The marketplace entry
|
|
393
|
+
> must publish and enable `artifact-chain-assistant` 0.8.0 before the install commands above will
|
|
394
|
+
> succeed.
|
|
395
|
+
|
|
396
|
+
For the full installation guide, quick start, Agent prompts, and clone onboarding, see
|
|
397
|
+
[INSTALL.md](INSTALL.md).
|
|
398
|
+
|
|
399
|
+
## Quick Start
|
|
400
|
+
|
|
401
|
+
1. Install plugin 0.8.0 (above) and runtime: `pnpm add -D artifact-graph@0.8.0`.
|
|
402
|
+
2. Run `artifact-graph doctor --root . --format json` to verify the runtime.
|
|
403
|
+
3. For first-time setup, use the bootstrap skill.
|
|
404
|
+
4. For daily work, use the maintainer skill.
|
|
405
|
+
5. For teammate onboarding, see [Clone Onboarding in INSTALL.md](INSTALL.md#clone-onboarding-second-developer-setup).
|
|
406
|
+
|
|
407
|
+
## Agent Prompts
|
|
408
|
+
|
|
409
|
+
```text
|
|
410
|
+
请使用 artifact-chain-bootstrap,为当前项目初始化制品链。
|
|
411
|
+
先检查现有配置和制品,不要覆盖已有项目规则,也不要自动执行 bootstrap --force。
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
```text
|
|
415
|
+
请使用 where-am-i 分析这个需求在当前制品链中的位置。
|
|
416
|
+
先检索已有制品,再推荐应加载的 context/packet 和后续入口技能。
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
```text
|
|
420
|
+
请使用 artifact-chain-maintainer 检查本次变更影响的制品关系,
|
|
421
|
+
执行 changed-only refresh,并用 strict-missing-lock 审计;如果锁文件变化,先让我审阅。
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
## License
|
|
425
|
+
|
|
426
|
+
Apache-2.0. See [LICENSE](LICENSE).
|