@cleocode/skills 2026.9.21 → 2026.9.22

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.
Files changed (151) hide show
  1. package/README.md +46 -63
  2. package/frontmatter.d.mts +60 -0
  3. package/frontmatter.mjs +277 -0
  4. package/index.d.ts +3 -3
  5. package/index.js +34 -9
  6. package/package.json +4 -2
  7. package/profiles/core.json +10 -3
  8. package/profiles/full.json +10 -6
  9. package/profiles/recommended.json +29 -3
  10. package/skills/_shared/manifest-operations.md +19 -40
  11. package/skills/_shared/skill-chaining-patterns.md +5 -9
  12. package/skills/_shared/subagent-protocol-base.md +6 -6
  13. package/skills/_shared/task-system-integration.md +5 -5
  14. package/skills/ct-adr-recorder/SKILL.md +18 -17
  15. package/skills/ct-artifact-publisher/SKILL.md +10 -7
  16. package/skills/ct-cleo/SKILL.md +25 -8
  17. package/skills/ct-cleo/references/loom-lifecycle.md +1 -1
  18. package/skills/{ct-memory/SKILL.md → ct-cleo/references/memory.md} +10 -23
  19. package/skills/ct-cleo/references/orchestrator-constraints.md +5 -5
  20. package/skills/ct-cleo/references/session-protocol.md +11 -8
  21. package/skills/{ct-stickynote/SKILL.md → ct-cleo/references/sticky-notes.md} +7 -29
  22. package/skills/ct-codebase-mapper/SKILL.md +62 -38
  23. package/skills/ct-consensus-voter/SKILL.md +10 -7
  24. package/skills/ct-contribution/SKILL.md +7 -5
  25. package/skills/ct-dev-workflow/SKILL.md +7 -7
  26. package/skills/ct-documentor/SKILL.md +29 -29
  27. package/skills/{ct-docs-review/__tests__/skill-docs-review.test.ts → ct-documentor/__tests__/reviewing-reference.test.ts} +4 -3
  28. package/skills/{ct-docs-write/__tests__/skill-docs-write.test.ts → ct-documentor/__tests__/writing-reference.test.ts} +4 -3
  29. package/skills/ct-documentor/references/anti-patterns.md +8 -8
  30. package/skills/{ct-docs-write → ct-documentor}/references/audience-targeting.md +5 -5
  31. package/skills/ct-documentor/references/chain-orchestration.md +19 -19
  32. package/skills/{ct-docs-write → ct-documentor}/references/cleo-style-guide.md +1 -1
  33. package/skills/ct-documentor/references/doc-types-and-templates.md +1 -1
  34. package/skills/{ct-docs-review → ct-documentor}/references/pr-review-mode.md +1 -1
  35. package/skills/{ct-docs-review/SKILL.md → ct-documentor/references/reviewing.md} +6 -26
  36. package/skills/ct-documentor/references/style-coordination.md +5 -5
  37. package/skills/{ct-docs-review → ct-documentor}/references/style-violations.md +1 -1
  38. package/skills/{ct-docs-write/SKILL.md → ct-documentor/references/writing.md} +5 -25
  39. package/skills/ct-epic-architect/SKILL.md +12 -9
  40. package/skills/ct-epic-architect/references/commands.md +5 -5
  41. package/skills/ct-epic-architect/references/output-format.md +2 -2
  42. package/skills/ct-epic-architect/references/patterns.md +2 -2
  43. package/skills/ct-epic-architect/references/skill-aware-execution.md +3 -3
  44. package/skills/ct-grade/SKILL.md +3 -4
  45. package/skills/ct-grade/agents/scenario-runner.md +1 -1
  46. package/skills/ct-ivt-looper/SKILL.md +23 -22
  47. package/skills/ct-lead/SKILL.md +45 -13
  48. package/skills/ct-lead/references/aggregation-protocol.md +44 -21
  49. package/skills/ct-lead/references/spawn-pattern.md +12 -11
  50. package/skills/ct-orchestrator/README.md +2 -2
  51. package/skills/ct-orchestrator/SKILL.md +14 -10
  52. package/skills/ct-orchestrator/references/SUBAGENT-PROTOCOL-BLOCK.md +4 -4
  53. package/skills/ct-orchestrator/references/autonomous-operation.md +4 -4
  54. package/skills/ct-orchestrator/references/orchestrator-compliance.md +3 -3
  55. package/skills/ct-orchestrator/references/orchestrator-patterns.md +20 -19
  56. package/skills/ct-orchestrator/references/orchestrator-recovery.md +13 -23
  57. package/skills/ct-orchestrator/references/orchestrator-spawning.md +9 -10
  58. package/skills/ct-orchestrator/references/orchestrator-tokens.md +9 -9
  59. package/skills/ct-provenance-keeper/SKILL.md +10 -7
  60. package/skills/ct-release-orchestrator/SKILL.md +21 -13
  61. package/skills/ct-release-orchestrator/references/composition.md +1 -1
  62. package/skills/ct-release-orchestrator/references/release-types.md +33 -15
  63. package/skills/ct-research-agent/SKILL.md +14 -12
  64. package/skills/ct-research-agent/references/triggers-and-routing.md +4 -4
  65. package/skills/{ct-skill-creator → ct-skill-author}/SKILL.md +9 -6
  66. package/skills/{ct-skill-validator → ct-skill-author}/agents/ecosystem-checker.md +1 -1
  67. package/skills/{ct-skill-validator → ct-skill-author}/evals/quality_evals.json +10 -10
  68. package/skills/{ct-skill-validator → ct-skill-author}/evals/trigger_queries.json +1 -1
  69. package/skills/{ct-skill-validator → ct-skill-author}/references/cleo-ecosystem-rules.md +8 -4
  70. package/skills/{ct-skill-creator → ct-skill-author}/references/provider-deployment.md +10 -6
  71. package/skills/{ct-skill-validator/SKILL.md → ct-skill-author/references/validating.md} +14 -21
  72. package/skills/{ct-skill-validator → ct-skill-author}/references/validation-rules.md +2 -2
  73. package/skills/{ct-skill-validator → ct-skill-author}/scripts/_skill_finder.py +2 -2
  74. package/skills/{ct-skill-validator → ct-skill-author}/scripts/check_depth.py +2 -5
  75. package/skills/{ct-skill-validator → ct-skill-author}/scripts/generate_validation_report.py +1 -1
  76. package/skills/{ct-skill-validator → ct-skill-author}/scripts/run_quality_eval.py +2 -2
  77. package/skills/ct-spec-writer/SKILL.md +9 -7
  78. package/skills/ct-task-executor/SKILL.md +19 -16
  79. package/skills/ct-task-executor/references/common-failures.md +1 -1
  80. package/skills/ct-validator/SKILL.md +11 -9
  81. package/skills/ct-validator/references/compliance-reports.md +1 -1
  82. package/skills/ct-validator/references/validation-modes.md +3 -3
  83. package/skills/manifest.json +381 -365
  84. package/dispatch-config.json +0 -983
  85. package/provider-skills-map.json +0 -97
  86. package/skills/ct-docs-lookup/SKILL.md +0 -185
  87. package/skills/ct-docs-lookup/references/ctx7-workflow.md +0 -198
  88. package/skills/ct-docs-lookup/references/library-id-resolution.md +0 -217
  89. package/skills/ct-docs-lookup/references/version-specific-docs.md +0 -220
  90. package/skills/ct-master-tac/SKILL.md +0 -120
  91. package/skills/ct-master-tac/__tests__/install.test.ts +0 -304
  92. package/skills/ct-master-tac/bundled/README.md +0 -40
  93. package/skills/ct-master-tac/bundled/protocols/architecture-decision.cant +0 -90
  94. package/skills/ct-master-tac/bundled/protocols/artifact-publish.cant +0 -105
  95. package/skills/ct-master-tac/bundled/protocols/consensus.cant +0 -85
  96. package/skills/ct-master-tac/bundled/protocols/contribution.cant +0 -92
  97. package/skills/ct-master-tac/bundled/protocols/decomposition.cant +0 -102
  98. package/skills/ct-master-tac/bundled/protocols/implementation.cant +0 -77
  99. package/skills/ct-master-tac/bundled/protocols/provenance.cant +0 -100
  100. package/skills/ct-master-tac/bundled/protocols/release.cant +0 -107
  101. package/skills/ct-master-tac/bundled/protocols/research.cant +0 -77
  102. package/skills/ct-master-tac/bundled/protocols/specification.cant +0 -77
  103. package/skills/ct-master-tac/bundled/protocols/testing.cant +0 -99
  104. package/skills/ct-master-tac/bundled/protocols/validation.cant +0 -75
  105. package/skills/ct-master-tac/bundled/teams/platform.cant +0 -115
  106. package/skills/ct-master-tac/manifest.json +0 -55
  107. package/skills/ct-skill-creator/eval-viewer/__pycache__/generate_review.cpython-314.pyc +0 -0
  108. package/skills/ct-skill-creator/manifest-entry.json +0 -17
  109. package/skills/ct-skill-creator/scripts/__pycache__/__init__.cpython-314.pyc +0 -0
  110. package/skills/ct-skill-creator/scripts/__pycache__/aggregate_benchmark.cpython-314.pyc +0 -0
  111. package/skills/ct-skill-creator/scripts/__pycache__/generate_report.cpython-314.pyc +0 -0
  112. package/skills/ct-skill-creator/scripts/__pycache__/improve_description.cpython-314.pyc +0 -0
  113. package/skills/ct-skill-creator/scripts/__pycache__/init_skill.cpython-314.pyc +0 -0
  114. package/skills/ct-skill-creator/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
  115. package/skills/ct-skill-creator/scripts/__pycache__/run_eval.cpython-314.pyc +0 -0
  116. package/skills/ct-skill-creator/scripts/__pycache__/run_loop.cpython-314.pyc +0 -0
  117. package/skills/ct-skill-creator/scripts/__pycache__/utils.cpython-314.pyc +0 -0
  118. package/skills/ct-skill-validator/manifest-entry.json +0 -20
  119. package/skills/ct-stickynote/README.md +0 -14
  120. package/skills/signaldock-connect/SKILL.md +0 -137
  121. package/skills/signaldock-connect/assets/agent-card.json +0 -48
  122. package/skills/signaldock-connect/references/api-endpoints.md +0 -131
  123. package/skills.json +0 -495
  124. /package/skills/{ct-docs-review → ct-documentor}/references/inline-comment-patterns.md +0 -0
  125. /package/skills/{ct-docs-write → ct-documentor}/references/markdown-patterns.md +0 -0
  126. /package/skills/{ct-skill-creator → ct-skill-author}/agents/analyzer.md +0 -0
  127. /package/skills/{ct-skill-creator → ct-skill-author}/agents/comparator.md +0 -0
  128. /package/skills/{ct-skill-creator → ct-skill-author}/agents/grader.md +0 -0
  129. /package/skills/{ct-skill-creator → ct-skill-author}/assets/eval_review.html +0 -0
  130. /package/skills/{ct-skill-validator → ct-skill-author}/assets/valid-skill-example.md +0 -0
  131. /package/skills/{ct-skill-creator → ct-skill-author}/eval-viewer/generate_review.py +0 -0
  132. /package/skills/{ct-skill-creator → ct-skill-author}/eval-viewer/viewer.html +0 -0
  133. /package/skills/{ct-skill-creator → ct-skill-author}/references/dynamic-context.md +0 -0
  134. /package/skills/{ct-skill-creator → ct-skill-author}/references/frontmatter.md +0 -0
  135. /package/skills/{ct-skill-creator → ct-skill-author}/references/invocation-control.md +0 -0
  136. /package/skills/{ct-skill-creator → ct-skill-author}/references/output-patterns.md +0 -0
  137. /package/skills/{ct-skill-creator → ct-skill-author}/references/schemas.md +0 -0
  138. /package/skills/{ct-skill-creator → ct-skill-author}/references/workflows.md +0 -0
  139. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/__init__.py +0 -0
  140. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/aggregate_benchmark.py +0 -0
  141. /package/skills/{ct-skill-validator → ct-skill-author}/scripts/audit_body.py +0 -0
  142. /package/skills/{ct-skill-validator → ct-skill-author}/scripts/check_ecosystem.py +0 -0
  143. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/generate_report.py +0 -0
  144. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/improve_description.py +0 -0
  145. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/init_skill.py +0 -0
  146. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/package_skill.py +0 -0
  147. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/quick_validate.py +0 -0
  148. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/run_eval.py +0 -0
  149. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/run_loop.py +0 -0
  150. /package/skills/{ct-skill-creator → ct-skill-author}/scripts/utils.py +0 -0
  151. /package/skills/{ct-skill-validator → ct-skill-author}/scripts/validate.py +0 -0
@@ -1,90 +0,0 @@
1
- ---
2
- kind: protocol
3
- version: 1.0.0
4
- id: ADR
5
- title: "Architecture Decision Record Protocol"
6
- status: active
7
- type: conditional
8
- audience: "llm-agent, orchestrator"
9
- tags: "adr, architecture, decisions"
10
- skillRef: ct-adr-recorder
11
- lastUpdated: 2026-04-08
12
- enforcement: advisory
13
- stage: "architecture-decision"
14
- consult-when: "Recording a formal architecture decision after consensus reaches PROVEN verdict; superseding an existing ADR; any task carrying --protocol adr flag"
15
- input:
16
- consensus_manifest_id: "string — ID of the originating consensus manifest (required)"
17
- decision_title: "string — short title for the ADR"
18
- options_evaluated: "string[] — options that were considered"
19
- output:
20
- adr_id: "string — canonical ADR identifier (ADR-NNN)"
21
- status: "proposed | accepted | superseded"
22
- stored_at: "string — path to .cleo/adrs/<id>.md and decisions table row"
23
- ---
24
-
25
- # Architecture Decision Record (ADR) Protocol
26
- #
27
- # Provenance: @task T4798 (ADR-006 Implementation), @task T428 (gap patch)
28
- # Type: Conditional Protocol
29
- # Stage: RCADSD - A (ADR)
30
- # Max Active: 3 protocols (including base)
31
- #
32
- # Trigger Conditions
33
- #
34
- # This protocol activates when the task involves:
35
- # Decision Recording: "decision", "adr", "architecture decision"
36
- # Stage Transition: "after consensus", "begin adr"
37
- # Formalization: "lock in decision", "formalize choice", "decide"
38
- # Architectural Shift: "pivot", "new architecture", "supersede"
39
- # Record Creation: "create adr", "write adr", "record decision"
40
- #
41
- # Explicit Override: --protocol adr flag on task creation.
42
- #
43
- # Requirements (RFC 2119)
44
- #
45
- # MUST:
46
- # ADR-001: MUST be generated from an accepted Consensus report verdict
47
- # ADR-002: MUST include a consensus_manifest_id linking to its originating consensus
48
- # ADR-003: MUST require explicit HITL approval to transition from proposed to accepted
49
- # ADR-004: MUST include Context, Options Evaluated, Decision, Rationale, and Consequences sections
50
- # ADR-005: MUST trigger downstream invalidation if superseded
51
- # ADR-006: MUST be stored in the canonical decisions SQLite table via Drizzle ORM
52
- # ADR-007: MUST set agent_type: "decision" in manifest entry
53
- # ADR-008: MUST block the Specification stage until the ADR status is accepted
54
- #
55
- # SHOULD:
56
- # ADR-010: SHOULD document the exact data structures or schema changes required
57
- # ADR-011: SHOULD explicitly list which existing ADRs are superseded, with rationale
58
- # ADR-012: SHOULD flag known technical debt introduced by the decision
59
- # ADR-013: SHOULD document rejected alternatives with rationale for rejection
60
- #
61
- # MAY:
62
- # ADR-020: MAY include diagrams (Mermaid) illustrating the architectural shift
63
- # ADR-021: MAY link to external prior art or research documents
64
- # ADR-022: MAY reference related ADRs that are not superseded but contextually relevant
65
- #
66
- # Decision Status Lifecycle:
67
- # proposed -> accepted -> superseded
68
- # \-> deprecated
69
- #
70
- # HITL Gate:
71
- # 1. Agent drafts the ADR based on consensus verdict
72
- # 2. Status is set to proposed
73
- # 3. Pipeline pauses (HANDOFF_REQUIRED - exit code 65)
74
- # 4. Human reviews the proposed ADR
75
- # 5. If approved, status transitions to accepted
76
- # 6. Only an accepted ADR unlocks the Specification stage
77
- #
78
- # Exit Codes:
79
- # 65: HANDOFF_REQUIRED - ADR drafted as proposed, awaiting HITL acceptance
80
- # 84: PROVENANCE_REQUIRED - Attempted to create ADR without linked Consensus report
81
- # 18: CASCADE_FAILED - Downstream work blocked because governing ADR was superseded
82
- #
83
- # Anti-Patterns:
84
- # - Creating ADR without consensus (decisions lack evidence foundation)
85
- # - Auto-accepting without HITL review (bypasses human oversight gate)
86
- # - Omitting downstream impact section (future implementers unaware of cascade)
87
- # - Superseding without updating specs (creates orphaned specifications)
88
- # - Using ADR to define implementation requirements (that is Specification's role)
89
- # - Storing ADR only as markdown without SQLite record (loses relational queries)
90
- # - Skipping rejected alternatives (loses institutional knowledge)
@@ -1,105 +0,0 @@
1
- ---
2
- kind: protocol
3
- version: 1.0.0
4
- id: ART
5
- title: "Artifact Publish Protocol"
6
- status: active
7
- type: cross-cutting
8
- audience: "llm-agent, orchestrator"
9
- tags: "artifact, publish, distribution"
10
- skillRef: ct-artifact-publisher
11
- lastUpdated: 2026-04-08
12
- enforcement: advisory
13
- stage: "release"
14
- consult-when: "Publishing artifacts to any registry (npm, cargo, docker, PyPI, GitHub releases); any task with --protocol artifact-publish; release pipeline artifact phase"
15
- input:
16
- artifact_type: "npm-package | python-wheel | python-sdist | go-module | cargo-crate | ruby-gem | docker-image | github-release | generic-tarball"
17
- version: "string — version string consistent with release config"
18
- dry_run: "boolean — MUST be true on first invocation"
19
- output:
20
- published_artifacts: "object[] — array of {type, name, registry_url, sha256, slsa_level}"
21
- rollback_manifest: "string | null — path to rollback manifest if partial failure"
22
- ---
23
-
24
- # Artifact Publish Protocol
25
- #
26
- # Provenance: @task T428 (gap patch)
27
- # Type: Conditional Protocol
28
- # Max Active: 3 protocols (including base)
29
- #
30
- # Relationship to Release Protocol:
31
- # This protocol orchestrates artifact building and publishing.
32
- # Release orchestrates version bumping, tagging, and changelog.
33
- # They compose: release triggers artifact-publish for distribution phase.
34
- #
35
- # Trigger Conditions
36
- #
37
- # This protocol activates when the task involves:
38
- # Package Publish: "publish", "package", "distribute"
39
- # Artifact Build: "artifact", "build artifact", "bundle"
40
- # Container Push: "docker push", "container registry", "image publish"
41
- # Language Package: "crate", "gem", "wheel", "sdist"
42
- # Multi-Artifact: "publish all", "release artifacts", "multi-package"
43
- #
44
- # Explicit Override: --protocol artifact-publish flag on task creation.
45
- #
46
- # Requirements (RFC 2119)
47
- #
48
- # MUST:
49
- # ARTP-001: MUST validate artifact configuration before build
50
- # ARTP-002: MUST execute dry-run before any real publish
51
- # ARTP-003: MUST follow handler interface contract: validate -> build -> publish
52
- # ARTP-004: MUST generate SHA-256 checksums for all built artifacts
53
- # ARTP-005: MUST record provenance metadata via record_release()
54
- # ARTP-006: MUST use sequential execution for multi-artifact publish
55
- # ARTP-007: MUST set agent_type: "artifact-publish" in manifest
56
- # ARTP-008: MUST NOT store credentials in config, output, or manifest
57
- # ARTP-009: MUST halt pipeline and attempt rollback on first publish failure
58
- #
59
- # SHOULD:
60
- # ARTP-010: SHOULD verify registry reachability before publish
61
- # ARTP-011: SHOULD validate version consistency between config and artifact metadata
62
- # ARTP-012: SHOULD log all publish operations to audit trail
63
- # ARTP-013: SHOULD verify build output exists and is non-empty before publish
64
- #
65
- # MAY:
66
- # ARTP-020: MAY batch validation across all artifacts before starting builds
67
- # ARTP-021: MAY generate SBOM alongside artifacts (delegate to provenance)
68
- # ARTP-022: MAY sign artifacts using configured signing method (delegate to provenance)
69
- #
70
- # Artifact Lifecycle State Machine:
71
- # configured -> validated -> built -> published
72
- # | | |
73
- # failed failed failed -> rollback
74
- #
75
- # Registered Handlers (9 types):
76
- # npm-package, python-wheel, python-sdist, go-module,
77
- # cargo-crate, ruby-gem, docker-image, github-release, generic-tarball
78
- #
79
- # Multi-Artifact Pipeline Phases:
80
- # Phase 1: Pre-validate all artifacts
81
- # Phase 2: Build sequential per artifact
82
- # Phase 3: Publish with rollback on failure
83
- #
84
- # Credential Handling:
85
- # Agents MUST NOT store, log, or embed credentials
86
- # Resolution order: env var -> CI secret -> credential manager (future)
87
- #
88
- # Error Codes (85-89):
89
- # 85: E_ARTIFACT_TYPE_UNKNOWN
90
- # 86: E_ARTIFACT_VALIDATION_FAILED
91
- # 87: E_ARTIFACT_BUILD_FAILED
92
- # 88: E_ARTIFACT_PUBLISH_FAILED (rollback attempted)
93
- # 89: E_ARTIFACT_ROLLBACK_FAILED
94
- #
95
- # Anti-Patterns:
96
- # - Publishing without dry-run first (irreversible registry state)
97
- # - Storing credentials in config.json (committed to VCS)
98
- # - Parallel multi-artifact publish (race conditions)
99
- # - Skipping checksum generation (cannot verify integrity)
100
- # - Publishing without version check (duplicate version errors)
101
- # - Ignoring publish failures (inconsistent state)
102
- # - Logging credential values (exposure in audit trail)
103
- # - Building without validation (wastes time)
104
- # - Manual rollback without recording (lost provenance chain)
105
- # - Hardcoding registry URLs (breaks across environments)
@@ -1,85 +0,0 @@
1
- ---
2
- kind: protocol
3
- version: 1.0.0
4
- id: CONS
5
- title: "Consensus Protocol"
6
- status: active
7
- type: conditional
8
- audience: "llm-agent, orchestrator"
9
- tags: "consensus, voting, validation"
10
- skillRef: ct-consensus-voter
11
- lastUpdated: 2026-04-08
12
- enforcement: strict
13
- stage: "consensus"
14
- consult-when: "Reaching a decision that two or more agents must vote on; architecture choices, tool selection, policy decisions; any task carrying agent_type:analysis; phrases like 'reach consensus', 'vote on options', 'resolve the debate'"
15
- input:
16
- topic: "string — the question or decision to vote on"
17
- options: "string[] — candidate options agents vote on"
18
- agents: "string[] — agent IDs participating in the vote"
19
- output:
20
- verdict: "PROVEN | REFUTED | CONTESTED | INSUFFICIENT_EVIDENCE"
21
- confidence: "number — weighted confidence score 0.0–1.0"
22
- voting_matrix: "object — per-agent votes with rationale and confidence"
23
- hitl_required: "boolean — true when threshold not reached"
24
- ---
25
-
26
- # Consensus Protocol
27
- #
28
- # Provenance: @task T3155, @epic T3147
29
- # Type: Conditional Protocol
30
- # Max Active: 3 protocols (including base)
31
- #
32
- # Trigger Conditions
33
- #
34
- # This protocol activates when the task involves:
35
- # Decision Making: "vote", "decide", "choose", "select"
36
- # Agreement: "consensus", "agree", "alignment"
37
- # Conflict Resolution: "resolve", "dispute", "conflict"
38
- # Validation: "validate claim", "verify assertion"
39
- #
40
- # Explicit Override: --protocol consensus flag on task creation.
41
- #
42
- # Requirements (RFC 2119)
43
- #
44
- # MUST:
45
- # CONS-001: MUST use structured voting format
46
- # CONS-002: MUST document rationale for each position
47
- # CONS-003: MUST include confidence scores (0.0-1.0)
48
- # CONS-004: MUST cite evidence supporting positions
49
- # CONS-005: MUST flag conflicts with severity levels
50
- # CONS-006: MUST escalate to HITL when threshold not reached
51
- # CONS-007: MUST set agent_type: "analysis" in manifest
52
- #
53
- # SHOULD:
54
- # CONS-010: SHOULD present multiple perspectives
55
- # CONS-011: SHOULD identify hidden assumptions
56
- # CONS-012: SHOULD document rejected alternatives
57
- # CONS-013: SHOULD include uncertainty notes for low confidence
58
- #
59
- # MAY:
60
- # CONS-020: MAY propose compromise positions
61
- # CONS-021: MAY defer non-critical decisions
62
- # CONS-022: MAY request additional research
63
- #
64
- # Verdict Thresholds:
65
- # PROVEN: 3/5 agents OR 50%+ weighted confidence, reproducible evidence
66
- # REFUTED: Counter-evidence invalidates, counter-proof exists
67
- # CONTESTED: 3/5 split after 2 challenge rounds, document both sides
68
- # INSUFFICIENT_EVIDENCE: Cannot reach verdict, request investigation
69
- #
70
- # HITL Escalation:
71
- # - Contested verdict (3/5 split): Present conflict to user
72
- # - Critical severity conflict: Immediate escalation
73
- # - Insufficient evidence: Request user guidance
74
- # - Unanimous suspicious consensus: Verify with user
75
- #
76
- # Exit Codes:
77
- # EXIT_PROTOCOL_CONSENSUS (61) - Consensus protocol violation
78
- # EXIT_PROTOCOL_GENERIC (67) - Generic protocol error
79
- #
80
- # Anti-Patterns:
81
- # - Accepting unanimous consensus without scrutiny (may indicate groupthink)
82
- # - Skipping evidence citations (decisions lack foundation)
83
- # - Binary voting without confidence (loses nuance)
84
- # - Ignoring minority positions (may miss valid concerns)
85
- # - Premature escalation (wastes human attention)
@@ -1,92 +0,0 @@
1
- ---
2
- kind: protocol
3
- version: 1.0.0
4
- id: CONT
5
- title: "Contribution Protocol"
6
- status: active
7
- type: cross-cutting
8
- audience: "llm-agent, orchestrator"
9
- tags: "contribution, commit, pr"
10
- skillRef: ct-contribution
11
- lastUpdated: 2026-04-08
12
- enforcement: strict
13
- stage: "cross-cutting"
14
- consult-when: "Submitting work via git commit or PR; multi-agent consensus contribution; task carries 'contribution protocol', 'submit contribution', or 'consensus workflow'; any cross-cutting attribution recording"
15
- input:
16
- task_id: "string — task being contributed"
17
- commit_message: "string — conventional commit message"
18
- contributors: "string[] — agent or human contributor IDs"
19
- output:
20
- commit_sha: "string — resulting commit SHA"
21
- pr_url: "string | null — pull request URL if opened"
22
- attribution_recorded: "boolean — true when contribution row persisted"
23
- ---
24
-
25
- # Contribution Protocol
26
- #
27
- # Provenance: @task T3155, @epic T3147
28
- # Type: Cross-Cutting Protocol
29
- # Applies To: All RCASD-IVTR+C stages
30
- # Max Active: 3 protocols (including base)
31
- #
32
- # Cross-Cutting Nature: This protocol applies across ALL stages of RCASD-IVTR+C.
33
- # Unlike stage-specific protocols, contribution tracking is active whenever
34
- # multi-agent coordination or attribution is needed.
35
- #
36
- # Trigger Conditions
37
- #
38
- # This protocol activates when the task involves:
39
- # Shared File Modification: Modifying CLAUDE.md, AGENTS.md, shared configs
40
- # PR Creation: "pull request", "PR", "merge request"
41
- # Cross-Session Work: Multiple agents on same epic
42
- # Audit Trail: Provenance, attribution, tracking
43
- #
44
- # Explicit Override: --protocol contribution flag on task creation.
45
- #
46
- # Requirements (RFC 2119)
47
- #
48
- # MUST:
49
- # CONT-001: MUST follow commit message conventions
50
- # CONT-002: MUST include provenance tags in code comments
51
- # CONT-003: MUST pass all validation gates before merge
52
- # CONT-004: MUST document decisions with rationale
53
- # CONT-005: MUST flag conflicts with other sessions
54
- # CONT-006: MUST write contribution record to manifest
55
- # CONT-007: MUST set agent_type: "implementation" in manifest
56
- #
57
- # SHOULD:
58
- # CONT-010: SHOULD include test coverage for changes
59
- # CONT-011: SHOULD link to related tasks and research
60
- # CONT-012: SHOULD document rejected alternatives
61
- # CONT-013: SHOULD request review for significant changes
62
- #
63
- # MAY:
64
- # CONT-020: MAY batch related changes into single contribution
65
- # CONT-021: MAY defer documentation updates
66
- # CONT-022: MAY propose follow-up improvements
67
- #
68
- # Commit Message Format:
69
- # <type>(<scope>): <summary>
70
- # Types: feat, fix, docs, test, refactor, chore, perf
71
- #
72
- # Validation Gates:
73
- # Schema: JSON Schema validation (MUST pass)
74
- # Tests: All tests pass (MUST pass)
75
- # Lint: Code style compliance (SHOULD pass)
76
- # Security: No secrets committed (MUST pass)
77
- # Conflicts: No unresolved conflicts (MUST resolve)
78
- #
79
- # Provenance Thresholds:
80
- # New code: 100%
81
- # Existing code: 80%
82
- # Legacy code: 50%
83
- #
84
- # Exit Codes:
85
- # EXIT_PROTOCOL_CONTRIBUTION (65) - Contribution protocol violation
86
- #
87
- # Anti-Patterns:
88
- # - Committing without provenance (breaks audit trail)
89
- # - Skipping validation gates (quality regression)
90
- # - Ignoring conflicts (creates merge debt)
91
- # - Large unfocused commits (hard to review/revert)
92
- # - Missing decision documentation (lost context)
@@ -1,102 +0,0 @@
1
- ---
2
- kind: protocol
3
- version: 2.0.0
4
- id: DCMP
5
- title: "Decomposition Protocol"
6
- status: active
7
- type: conditional
8
- audience: "llm-agent, orchestrator"
9
- tags: "decomposition, hierarchy, atomicity, planning"
10
- skillRef: ct-epic-architect
11
- lastUpdated: 2026-04-08
12
- provenanceTask: T3155
13
- enforcement: strict
14
- stage: "decomposition"
15
- consult-when: "Breaking a large initiative into atomic tasks; creating epics; planning parallel wave execution; any task with 'decompose', 'break down', 'epic architect', or 'plan tasks'"
16
- input:
17
- epic_title: "string — high-level initiative title"
18
- scope: "string — description of the work to decompose"
19
- constraints: "string[] — known constraints or exclusions"
20
- output:
21
- tasks: "object[] — array of {id, title, size, dependencies, wave} atomic tasks"
22
- dependency_graph: "object — DAG of task dependencies"
23
- wave_plan: "object[] — array of {wave, tasks[]} parallel execution waves"
24
- ---
25
-
26
- # Decomposition Protocol
27
- #
28
- # Provenance: @task T3155, @epic T3147
29
- # Type: Conditional Protocol
30
- # Max Active: 3 protocols (including base)
31
- #
32
- # Trigger Conditions
33
- #
34
- # This protocol activates when the task involves:
35
- # Epic Planning: "epic", "project", "initiative"
36
- # Breakdown: "decompose", "break down", "split"
37
- # Planning: "plan", "roadmap", "phases"
38
- # Analysis: "scope", "estimate complexity"
39
- #
40
- # Explicit Override: --protocol decomposition flag on task creation.
41
- #
42
- # Hard Invariants (always enforced):
43
- # - Parent must exist: parent task ID must be present in the task store
44
- # - No circular references: moving a task under its own descendant is rejected
45
- # - Dependency DAG integrity: blockedBy/blocks must remain acyclic
46
- #
47
- # Configurable Limits (profile-driven):
48
- # maxSiblings: default 0 (unlimited for llm-agent-first); 7 for human-cognitive
49
- # maxActiveSiblings: default 32 (operational concurrency guard)
50
- # maxDepth: default 3 (epic -> task -> subtask)
51
- #
52
- # Enforcement Profiles:
53
- # llm-agent-first (default): maxSiblings=0, maxActiveSiblings=32, maxDepth=3
54
- # human-cognitive: maxSiblings=7, maxActiveSiblings=3, maxDepth=3
55
- #
56
- # Requirements (RFC 2119)
57
- #
58
- # MUST:
59
- # DCMP-001: MUST follow MECE principle (Mutually Exclusive, Collectively Exhaustive)
60
- # DCMP-002: MUST map dependencies between tasks
61
- # DCMP-003: MUST respect the configured hierarchy.maxDepth policy (default: 3)
62
- # DCMP-004: MUST verify atomicity for leaf tasks
63
- # DCMP-005: MUST NOT include time estimates (use size: small/medium/large)
64
- # DCMP-006: MUST include acceptance criteria for each task
65
- # DCMP-007: Siblings MUST respect the configured hierarchy.maxSiblings policy
66
- # DCMP-008: Depth MUST respect the configured hierarchy.maxDepth policy
67
- # DCMP-009: MUST set agent_type: "analysis" in manifest
68
- #
69
- # SHOULD:
70
- # DCMP-010: SHOULD identify parallel execution opportunities
71
- # DCMP-011: SHOULD flag unclear requirements for HITL
72
- # DCMP-012: SHOULD consider existing task overlap
73
- # DCMP-013: SHOULD assign phase to each task
74
- #
75
- # MAY:
76
- # DCMP-020: MAY propose multiple decomposition options
77
- # DCMP-021: MAY identify risks and mitigations
78
- # DCMP-022: MAY suggest task consolidation
79
- #
80
- # Atomicity Criteria (6-Point Test):
81
- # 1. Single File Scope: Affects <=3 tightly-coupled files
82
- # 2. Single Cognitive Concern: One bounded concern per task
83
- # 3. Clear Acceptance Criteria: Testable completion condition
84
- # 4. No Context Switching: Completable within a single agent session
85
- # 5. No Hidden Sub-Decisions: All choices made at decomposition
86
- # 6. Programmatic Validation: Result verifiable by code/test
87
- #
88
- # Size Definitions:
89
- # small: 1-2 files, single concern, MUST be atomic
90
- # medium: 3-7 files, related concerns, SHOULD be atomic
91
- # large: 8+ files, multiple concerns, MUST decompose further
92
- #
93
- # Exit Codes:
94
- # EXIT_PROTOCOL_DECOMPOSITION (63) - Decomposition protocol violation
95
- #
96
- # Anti-Patterns:
97
- # - Time estimates (cannot predict duration accurately)
98
- # - Non-atomic leaf tasks (create hidden work)
99
- # - Missing dependencies (incorrect execution order)
100
- # - Exceeding configured maxDepth (complexity explosion)
101
- # - Overlapping scopes (not MECE - duplicate work)
102
- # - Skipping atomicity check (quality regression)
@@ -1,77 +0,0 @@
1
- ---
2
- kind: protocol
3
- version: 1.0.0
4
- id: IMPL
5
- title: "Implementation Protocol"
6
- status: active
7
- type: base
8
- audience: "llm-agent"
9
- tags: "implementation, coding, development"
10
- skillRef: ct-task-executor
11
- lastUpdated: 2026-04-08
12
- enforcement: strict
13
- stage: "implementation"
14
- consult-when: "Implementing code, fixing bugs, building features, writing programs; any task with 'implement', 'build', 'create', 'fix', 'patch'; IVT loop implementation phase"
15
- input:
16
- task_id: "string — task being implemented"
17
- spec_ref: "string | null — path or ID of the governing specification"
18
- acceptance_criteria: "string[] — conditions that must be true on completion"
19
- output:
20
- files_changed: "string[] — list of modified/created files"
21
- tests_added: "string[] — new test files or test names"
22
- manifest_entry: "object — implementation summary for pipeline_manifest via cleo manifest append"
23
- ---
24
-
25
- # Implementation Protocol
26
- #
27
- # Provenance: @task T3155, @epic T3147
28
- # Type: Conditional Protocol
29
- # Max Active: 3 protocols (including base)
30
- #
31
- # Trigger Conditions
32
- #
33
- # This protocol activates when the task involves:
34
- # Building: "implement", "build", "create", "develop"
35
- # Coding: "code", "write", "program"
36
- # Fixing: "fix", "bug", "patch", "repair"
37
- # Enhancement: "improve", "enhance", "optimize"
38
- #
39
- # Explicit Override: --protocol implementation flag on task creation.
40
- #
41
- # Requirements (RFC 2119)
42
- #
43
- # MUST:
44
- # IMPL-001: MUST include tests for new functionality
45
- # IMPL-002: MUST follow project code style conventions
46
- # IMPL-003: MUST include JSDoc/docstring provenance tags
47
- # IMPL-004: MUST verify changes pass existing tests
48
- # IMPL-005: MUST document breaking changes
49
- # IMPL-006: MUST write implementation summary to manifest
50
- # IMPL-007: MUST set agent_type: "implementation" in manifest
51
- #
52
- # SHOULD:
53
- # IMPL-010: SHOULD add inline comments for complex logic
54
- # IMPL-011: SHOULD refactor duplicated code
55
- # IMPL-012: SHOULD update related documentation
56
- # IMPL-013: SHOULD consider error handling edge cases
57
- #
58
- # MAY:
59
- # IMPL-020: MAY propose architectural improvements
60
- # IMPL-021: MAY add performance benchmarks
61
- # IMPL-022: MAY suggest follow-up enhancements
62
- #
63
- # Provenance Thresholds:
64
- # New code: 100% coverage required
65
- # Existing code: 80% coverage required
66
- # Legacy code: 50% coverage required
67
- #
68
- # Exit Codes:
69
- # EXIT_PROTOCOL_IMPLEMENTATION (64) - Implementation protocol violation
70
- #
71
- # Anti-Patterns:
72
- # - Code without tests (regression risk)
73
- # - Missing provenance (lost attribution)
74
- # - Skipping validation (quality regression)
75
- # - Undocumented breaking changes (surprise failures)
76
- # - No error handling (silent failures)
77
- # - Hardcoded values (maintenance burden)
@@ -1,100 +0,0 @@
1
- ---
2
- kind: protocol
3
- version: 1.0.0
4
- id: PROV
5
- title: "Provenance Protocol"
6
- status: active
7
- type: cross-cutting
8
- audience: "llm-agent, orchestrator"
9
- tags: "provenance, traceability, lineage"
10
- skillRef: ct-provenance-keeper
11
- lastUpdated: 2026-04-08
12
- enforcement: advisory
13
- stage: "release"
14
- consult-when: "Generating in-toto attestations, SLSA provenance, or SBOMs; signing artifacts; any task with 'provenance', 'attest', 'sbom', 'cosign', 'checksum', or 'supply chain'; invoked by artifact-publish at signing step"
15
- input:
16
- artifact_paths: "string[] — paths to built artifacts requiring provenance"
17
- source_commit: "string — git SHA of the source commit"
18
- build_environment: "string — description of build environment"
19
- output:
20
- attestation_path: "string — path to in-toto attestation JSON"
21
- sbom_path: "string | null — path to CycloneDX or SPDX SBOM"
22
- slsa_level: "1 | 2 | 3 | 4 — achieved SLSA Build Level"
23
- digests: "object — map of artifact_path to sha256 digest"
24
- ---
25
-
26
- # Provenance Protocol
27
- #
28
- # Provenance: @task T428 (gap patch)
29
- # Type: Conditional Protocol
30
- # Max Active: 3 protocols (including base)
31
- #
32
- # Trigger Conditions
33
- #
34
- # This protocol activates when the task involves:
35
- # Supply Chain: "provenance", "supply chain", "chain of custody"
36
- # Attestation: "attest", "attestation", "in-toto", "SLSA"
37
- # SBOM: "sbom", "bill of materials", "cyclonedx", "spdx"
38
- # Signing: "sign", "cosign", "sigstore", "verify signature"
39
- # Checksums: "checksum", "digest", "sha256", "integrity"
40
- #
41
- # Explicit Override: --protocol provenance flag on task creation.
42
- #
43
- # Requirements (RFC 2119)
44
- #
45
- # MUST:
46
- # PROV-001: MUST record provenance chain from source commit to published artifact
47
- # PROV-002: MUST compute SHA-256 digest for every produced artifact
48
- # PROV-003: MUST generate attestation in in-toto Statement v1 format
49
- # PROV-004: MUST record SLSA Build Level achieved (L1 minimum)
50
- # PROV-005: MUST store provenance record in .cleo/releases.json via record_release()
51
- # PROV-006: MUST verify provenance chain integrity before publishing attestation
52
- # PROV-007: MUST set agent_type: "provenance" in manifest
53
- #
54
- # SHOULD:
55
- # PROV-010: SHOULD generate SBOM (CycloneDX or SPDX) for artifacts with dependencies
56
- # PROV-011: SHOULD sign attestations using keyless signing (sigstore/cosign)
57
- # PROV-012: SHOULD publish provenance attestation alongside artifact
58
- # PROV-013: SHOULD verify all input materials have provenance
59
- #
60
- # MAY:
61
- # PROV-020: MAY achieve SLSA Build Level 3 or 4
62
- # PROV-021: MAY use key-based signing (GPG) as alternative to keyless
63
- # PROV-022: MAY generate multiple SBOM formats (both CycloneDX and SPDX)
64
- #
65
- # Provenance Chain Model:
66
- # commit -> build -> artifact -> attestation -> registry
67
- #
68
- # Chain Integrity Rules:
69
- # Each link MUST reference previous link's output
70
- # No link MAY be modified after creation (append-only)
71
- # Missing links MUST be recorded as incomplete
72
- # Chain MUST be verifiable offline
73
- #
74
- # SLSA Compliance Levels:
75
- # L1: Provenance exists
76
- # L2: Provenance signed + build on hosted platform
77
- # L3: Non-falsifiable provenance
78
- # L4: All deps have provenance + hermetic reproducible build
79
- #
80
- # Signing Methods:
81
- # sigstore (default): cosign sign-blob --yes <artifact>
82
- # gpg: gpg --detach-sign --armor -u <key-id> <artifact>
83
- # none: Skip signing (SLSA L1 only)
84
- #
85
- # Error Codes (90-94):
86
- # 90: E_PROVENANCE_CONFIG_INVALID
87
- # 91: E_SIGNING_KEY_MISSING
88
- # 92: E_SIGNATURE_INVALID
89
- # 93: E_DIGEST_MISMATCH
90
- # 94: E_ATTESTATION_INVALID
91
- #
92
- # Anti-Patterns:
93
- # - Skipping digest computation (breaks chain integrity)
94
- # - Hardcoding signing keys in config (security risk)
95
- # - Generating attestation without matching digest
96
- # - Publishing artifact before signing
97
- # - Modifying provenance records after creation
98
- # - Skipping SBOM for artifacts with dependencies
99
- # - Using SHA-1 or MD5 for digests (cryptographically broken)
100
- # - Storing private keys in .cleo/ directory