cc-codeconductor 0.5.0 → 1.1.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/README.md +387 -150
- package/dist/cli/errors.d.ts +65 -0
- package/dist/core/compilation/compile-checker.d.ts +53 -0
- package/dist/core/config/codeconductor-config.d.ts +42 -0
- package/dist/core/config/config-loader.d.ts +11 -0
- package/dist/core/filesystem/credential-guard.d.ts +18 -0
- package/dist/core/goal/goal-planner.d.ts +8 -0
- package/dist/core/goal/goal-state.d.ts +15 -0
- package/dist/core/loop/git-stats.d.ts +13 -0
- package/dist/core/loop/loop-engine.d.ts +82 -0
- package/dist/core/memory/episodic-store.d.ts +6 -0
- package/dist/core/memory/operational-state.d.ts +6 -0
- package/dist/core/orchestrator/runtime-orchestrator.d.ts +25 -0
- package/dist/core/planner/product-planner.d.ts +18 -0
- package/dist/core/presets/package-paths.d.ts +4 -0
- package/dist/core/product-graph/graph-store.d.ts +11 -0
- package/dist/core/product-graph/paths.d.ts +18 -0
- package/dist/core/verification/verification-runner.d.ts +57 -0
- package/dist/domain/loop/loop-state.d.ts +74 -0
- package/dist/domain/product/entities.d.ts +11 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +24165 -15800
- package/dist/library.js +2744 -0
- package/dist/utils/result.d.ts +36 -0
- package/dist/validation/schemas.d.ts +4006 -0
- package/package.json +18 -2
- package/policy.yml +12 -11
- package/presets/agy/AGENTS.md +14 -5
- package/presets/agy/gates/pre-commit/GATE.md +137 -0
- package/presets/agy/skills/backlog/SKILL.md +91 -0
- package/presets/agy/skills/cc-fix/SKILL.md +2 -2
- package/presets/agy/skills/cc-tdd-cycle/SKILL.md +11 -0
- package/presets/agy/skills/openspec/SKILL.md +5 -1
- package/presets/agy/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/agy/skills/security-blue-team/SKILL.md +43 -0
- package/presets/agy/skills/security-cloud/SKILL.md +43 -0
- package/presets/agy/skills/security-crypto/SKILL.md +43 -0
- package/presets/agy/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/agy/skills/security-grc/SKILL.md +43 -0
- package/presets/agy/skills/security-incident-response/SKILL.md +45 -0
- package/presets/agy/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/agy/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/agy/skills/security-mobile/SKILL.md +43 -0
- package/presets/agy/skills/security-network/SKILL.md +43 -0
- package/presets/agy/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/agy/skills/security-recon/SKILL.md +45 -0
- package/presets/agy/skills/security-red-team/SKILL.md +44 -0
- package/presets/agy/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/agy/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/agy/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/agy/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/agy/skills/security-web/SKILL.md +44 -0
- package/presets/agy/workflows/cc-api-contract.md +12 -0
- package/presets/agy/workflows/cc-ask.md +56 -0
- package/presets/agy/workflows/cc-backlog.md +69 -0
- package/presets/agy/workflows/cc-clarify.md +33 -0
- package/presets/agy/workflows/cc-council.md +31 -7
- package/presets/agy/workflows/cc-db-migration.md +22 -9
- package/presets/agy/workflows/cc-explore.md +37 -0
- package/presets/agy/workflows/cc-feature.md +41 -19
- package/presets/agy/workflows/cc-fix.md +50 -23
- package/presets/agy/workflows/cc-handoff.md +42 -0
- package/presets/agy/workflows/cc-iterative.md +128 -0
- package/presets/agy/workflows/cc-openspec.md +16 -1
- package/presets/agy/workflows/cc-pagespeed.md +12 -0
- package/presets/agy/workflows/cc-prototype.md +39 -0
- package/presets/agy/workflows/cc-refactor.md +12 -0
- package/presets/agy/workflows/cc-review.md +12 -0
- package/presets/agy/workflows/cc-scorecard.md +12 -0
- package/presets/agy/workflows/cc-security.md +180 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +24 -0
- package/presets/agy/workflows/cc-test-plan.md +12 -0
- package/presets/agy/workflows/cc-triage.md +35 -0
- package/presets/claude/CLAUDE.md +68 -0
- package/presets/claude/commands/cc/api-contract.md +12 -0
- package/presets/claude/commands/cc/ask.md +56 -0
- package/presets/claude/commands/cc/backlog.md +104 -0
- package/presets/claude/commands/cc/clarify.md +32 -0
- package/presets/claude/commands/cc/council.md +87 -0
- package/presets/claude/commands/cc/db-migration.md +22 -9
- package/presets/claude/commands/cc/explore.md +36 -0
- package/presets/claude/commands/cc/feature.md +49 -22
- package/presets/claude/commands/cc/fix.md +74 -20
- package/presets/claude/commands/cc/handoff.md +44 -0
- package/presets/claude/commands/cc/iterative.md +132 -0
- package/presets/claude/commands/cc/openspec.md +41 -1
- package/presets/claude/commands/cc/pagespeed.md +12 -0
- package/presets/claude/commands/cc/prototype.md +38 -0
- package/presets/claude/commands/cc/refactor.md +152 -1
- package/presets/claude/commands/cc/review.md +78 -16
- package/presets/claude/commands/cc/scorecard.md +12 -0
- package/presets/claude/commands/cc/security.md +179 -0
- package/presets/claude/commands/cc/tdd-cycle.md +53 -3
- package/presets/claude/commands/cc/test-plan.md +12 -0
- package/presets/claude/commands/cc/triage.md +34 -0
- package/presets/claude/gates/pre-commit/GATE.md +137 -0
- package/presets/claude/settings.json +8 -46
- package/presets/claude/skills/backlog/SKILL.md +91 -0
- package/presets/claude/skills/openspec/SKILL.md +5 -1
- package/presets/claude/skills/security/SKILL.md +382 -0
- package/presets/claude/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/claude/skills/security-blue-team/SKILL.md +43 -0
- package/presets/claude/skills/security-cloud/SKILL.md +43 -0
- package/presets/claude/skills/security-crypto/SKILL.md +43 -0
- package/presets/claude/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/claude/skills/security-grc/SKILL.md +43 -0
- package/presets/claude/skills/security-incident-response/SKILL.md +45 -0
- package/presets/claude/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/claude/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/claude/skills/security-mobile/SKILL.md +43 -0
- package/presets/claude/skills/security-network/SKILL.md +43 -0
- package/presets/claude/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/claude/skills/security-recon/SKILL.md +45 -0
- package/presets/claude/skills/security-red-team/SKILL.md +44 -0
- package/presets/claude/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/claude/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/claude/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/claude/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/claude/skills/security-web/SKILL.md +44 -0
- package/presets/codex/AGENTS.md +6 -6
- package/presets/codex/commands/cc-ask.md +56 -0
- package/presets/codex/gates/pre-commit/GATE.md +137 -0
- package/presets/cursor/AGENTS.md +8 -8
- package/presets/cursor/agents/business-agent.md +44 -0
- package/presets/cursor/agents/continuous-architect.md +37 -0
- package/presets/cursor/agents/docs.md +1 -0
- package/presets/cursor/agents/goal-planner.md +1 -1
- package/presets/cursor/agents/impact-analyst.md +43 -0
- package/presets/cursor/agents/orchestrator.md +6 -6
- package/presets/cursor/commands/cc/api-contract.md +12 -0
- package/presets/cursor/commands/cc/ask.md +56 -0
- package/presets/cursor/commands/cc/backlog.md +105 -0
- package/presets/cursor/commands/cc/clarify.md +32 -0
- package/presets/cursor/commands/cc/council.md +87 -0
- package/presets/cursor/commands/cc/db-migration.md +22 -9
- package/presets/cursor/commands/cc/explore.md +36 -0
- package/presets/cursor/commands/cc/feature.md +41 -19
- package/presets/cursor/commands/cc/fix.md +47 -20
- package/presets/cursor/commands/cc/handoff.md +41 -0
- package/presets/cursor/commands/cc/iterative.md +133 -0
- package/presets/cursor/commands/cc/openspec.md +38 -8
- package/presets/cursor/commands/cc/pagespeed.md +12 -0
- package/presets/cursor/commands/cc/prototype.md +38 -0
- package/presets/cursor/commands/cc/refactor.md +12 -0
- package/presets/cursor/commands/cc/review.md +12 -0
- package/presets/cursor/commands/cc/scorecard.md +12 -0
- package/presets/cursor/commands/cc/security.md +179 -0
- package/presets/cursor/commands/cc/tdd-cycle.md +24 -0
- package/presets/cursor/commands/cc/test-plan.md +12 -0
- package/presets/cursor/commands/cc/triage.md +34 -0
- package/presets/cursor/gates/pre-commit/GATE.md +137 -0
- package/presets/cursor/rules/orchestration.mdc +1 -1
- package/presets/cursor/skills/backlog/SKILL.md +91 -0
- package/presets/cursor/skills/openspec/SKILL.md +5 -1
- package/presets/cursor/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/cursor/skills/security-blue-team/SKILL.md +43 -0
- package/presets/cursor/skills/security-cloud/SKILL.md +43 -0
- package/presets/cursor/skills/security-crypto/SKILL.md +43 -0
- package/presets/cursor/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/cursor/skills/security-grc/SKILL.md +43 -0
- package/presets/cursor/skills/security-incident-response/SKILL.md +45 -0
- package/presets/cursor/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/cursor/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/cursor/skills/security-mobile/SKILL.md +43 -0
- package/presets/cursor/skills/security-network/SKILL.md +43 -0
- package/presets/cursor/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/cursor/skills/security-recon/SKILL.md +45 -0
- package/presets/cursor/skills/security-red-team/SKILL.md +44 -0
- package/presets/cursor/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/cursor/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/cursor/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/cursor/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/cursor/skills/security-web/SKILL.md +44 -0
- package/presets/opencode/agents/architect.md +22 -1
- package/presets/opencode/agents/complexity-auditor.md +16 -1
- package/presets/opencode/agents/contract-builder.md +17 -1
- package/presets/opencode/agents/devil.md +158 -0
- package/presets/opencode/agents/docs.md +19 -1
- package/presets/opencode/agents/goal-planner.md +32 -2
- package/presets/opencode/agents/implementer.md +32 -2
- package/presets/opencode/agents/orchestrator.md +79 -12
- package/presets/opencode/agents/planner.md +61 -0
- package/presets/opencode/agents/repo-explorer.md +16 -0
- package/presets/opencode/agents/reviewer.md +33 -3
- package/presets/opencode/agents/security-reviewer.md +31 -1
- package/presets/opencode/agents/task-coach.md +69 -1
- package/presets/opencode/agents/tester.md +18 -1
- package/presets/opencode/commands/cc-api-contract.md +12 -0
- package/presets/opencode/commands/cc-ask.md +56 -0
- package/presets/opencode/commands/cc-backlog.md +68 -0
- package/presets/opencode/commands/cc-clarify.md +31 -0
- package/presets/opencode/commands/cc-council.md +87 -0
- package/presets/opencode/commands/cc-db-migration.md +22 -9
- package/presets/opencode/commands/cc-explore.md +35 -0
- package/presets/opencode/commands/cc-feature.md +41 -19
- package/presets/opencode/commands/cc-fix.md +50 -23
- package/presets/opencode/commands/cc-handoff.md +40 -0
- package/presets/opencode/commands/cc-iterative.md +127 -0
- package/presets/opencode/commands/cc-openspec.md +16 -1
- package/presets/opencode/commands/cc-pagespeed.md +12 -0
- package/presets/opencode/commands/cc-prototype.md +37 -0
- package/presets/opencode/commands/cc-refactor.md +12 -0
- package/presets/opencode/commands/cc-review.md +12 -0
- package/presets/opencode/commands/cc-scorecard.md +12 -0
- package/presets/opencode/commands/cc-security.md +179 -0
- package/presets/opencode/commands/cc-tdd-cycle.md +24 -0
- package/presets/opencode/commands/cc-test-plan.md +12 -0
- package/presets/opencode/commands/cc-triage.md +33 -0
- package/presets/opencode/gates/pre-commit/GATE.md +137 -0
- package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.5.0/goal-planner.md +1 -1
- package/presets/opencode/prompts/v0.5.0/orchestrator.md +6 -6
- package/presets/opencode/prompts/v0.6.0/implementer.md +35 -0
- package/presets/opencode/prompts/v0.6.0/planner.md +36 -0
- package/presets/opencode/prompts/v0.6.0/reviewer.md +40 -0
- package/presets/opencode/prompts/v1.0.0/README.md +47 -0
- package/presets/opencode/prompts/v1.0.0/architect.md +259 -0
- package/presets/opencode/prompts/v1.0.0/complexity-auditor.md +116 -0
- package/presets/opencode/prompts/v1.0.0/contract-builder.md +120 -0
- package/presets/opencode/prompts/v1.0.0/devil.md +169 -0
- package/presets/opencode/prompts/v1.0.0/docs.md +229 -0
- package/presets/opencode/prompts/v1.0.0/goal-planner.md +123 -0
- package/presets/opencode/prompts/v1.0.0/implementer.md +228 -0
- package/presets/opencode/prompts/v1.0.0/orchestrator.md +474 -0
- package/presets/opencode/prompts/v1.0.0/planner.md +72 -0
- package/presets/opencode/prompts/v1.0.0/repo-explorer.md +147 -0
- package/presets/opencode/prompts/v1.0.0/reviewer.md +295 -0
- package/presets/opencode/prompts/v1.0.0/security-reviewer.md +170 -0
- package/presets/opencode/prompts/v1.0.0/task-coach.md +235 -0
- package/presets/opencode/prompts/v1.0.0/tester.md +298 -0
- package/presets/opencode/skills/backlog/SKILL.md +91 -0
- package/presets/opencode/skills/openspec/SKILL.md +5 -1
- package/presets/opencode/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/opencode/skills/security-blue-team/SKILL.md +43 -0
- package/presets/opencode/skills/security-cloud/SKILL.md +43 -0
- package/presets/opencode/skills/security-crypto/SKILL.md +43 -0
- package/presets/opencode/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/opencode/skills/security-grc/SKILL.md +43 -0
- package/presets/opencode/skills/security-incident-response/SKILL.md +45 -0
- package/presets/opencode/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/opencode/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/opencode/skills/security-mobile/SKILL.md +43 -0
- package/presets/opencode/skills/security-network/SKILL.md +43 -0
- package/presets/opencode/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/opencode/skills/security-recon/SKILL.md +45 -0
- package/presets/opencode/skills/security-red-team/SKILL.md +44 -0
- package/presets/opencode/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/opencode/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/opencode/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/opencode/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/opencode/skills/security-web/SKILL.md +44 -0
- package/presets/seo-hotel/settings.json +0 -17
- package/src/presets/council/council.yml +12 -0
- package/src/presets/manifests/agy.yml +2 -2
- package/src/presets/manifests/claude.yml +2 -2
- package/src/presets/manifests/codex.yml +2 -2
- package/src/presets/manifests/cursor.yml +2 -2
- package/src/presets/manifests/gemini.yml +2 -2
- package/src/presets/manifests/opencode.yml +2 -2
- package/src/presets/models/agy.yml +93 -66
- package/src/presets/models/claude.yml +79 -53
- package/src/presets/models/codex.yml +79 -54
- package/src/presets/models/cursor.yml +72 -58
- package/src/presets/models/gemini.yml +79 -53
- package/src/presets/models/opencode.yml +72 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-codeconductor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A multi-agent orchestration framework for AI-assisted software engineering workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist/index.js",
|
|
19
|
+
"dist/library.js",
|
|
20
|
+
"dist/**/*.d.ts",
|
|
19
21
|
"policy.yml",
|
|
20
22
|
"presets/",
|
|
21
23
|
"src/presets/"
|
|
@@ -28,15 +30,29 @@
|
|
|
28
30
|
"node": ">=20.11"
|
|
29
31
|
},
|
|
30
32
|
"type": "module",
|
|
33
|
+
"main": "./dist/library.js",
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"import": "./dist/library.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
31
41
|
"bin": {
|
|
32
42
|
"cc-codeconductor": "./dist/index.js",
|
|
33
43
|
"codeconductor": "./dist/index.js"
|
|
34
44
|
},
|
|
35
45
|
"scripts": {
|
|
36
46
|
"dev": "bun run src/cli/main.ts",
|
|
37
|
-
"build": "bun
|
|
47
|
+
"build": "bun run scripts/build.ts",
|
|
48
|
+
"build:cli": "bun build src/cli/main.ts --target=node --outfile=dist/index.js",
|
|
49
|
+
"build:lib": "bun build src/index.ts --target=node --outfile=dist/library.js --packages=external",
|
|
50
|
+
"build:types": "tsc -p tsconfig.lib.json --emitDeclarationOnly",
|
|
38
51
|
"test": "bun test",
|
|
52
|
+
"test:fast": "bun run scripts/test-fast.ts",
|
|
39
53
|
"typecheck": "tsc --noEmit",
|
|
54
|
+
"lint": "bun run scripts/lint.ts",
|
|
55
|
+
"check:coverage": "bun run scripts/check-coverage.ts",
|
|
40
56
|
"check:prompt-changelog": "bun run scripts/check-prompt-changelog.ts",
|
|
41
57
|
"release:patch": "bash release.sh patch",
|
|
42
58
|
"release:minor": "bash release.sh minor",
|
package/policy.yml
CHANGED
|
@@ -42,23 +42,24 @@ denyWrite:
|
|
|
42
42
|
- ".git/**"
|
|
43
43
|
- ".claude/**"
|
|
44
44
|
- ".opencode/**"
|
|
45
|
+
# Session handoffs belong in .codeconductor/sessions/ (gitignored). The
|
|
46
|
+
# compiler does not exist yet; gitignore + workflow redaction are the
|
|
47
|
+
# compensating controls for /cc:handoff.
|
|
45
48
|
- ".codeconductor/**"
|
|
46
49
|
- ".code-conductor/policy.yml"
|
|
47
50
|
- "/etc/**"
|
|
48
51
|
- "/var/**"
|
|
49
52
|
- "~/**"
|
|
50
53
|
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- auth[_-]?token
|
|
61
|
-
- private[_-]?key
|
|
54
|
+
# Optional keyword patterns for secret detection, merged with
|
|
55
|
+
# CodeConductorConfig.safety.secretPatterns at runtime.
|
|
56
|
+
#
|
|
57
|
+
# Built-in detection does NOT rely on this list: high-confidence signatures
|
|
58
|
+
# (AWS access key ids, AWS_SECRET_ACCESS_KEY values, GitHub PATs, PEM/OpenSSH
|
|
59
|
+
# private key headers) are enforced in code and always active. Entries here add
|
|
60
|
+
# legacy keyword matching (`<keyword> = <value of 8+ chars>`), which is prone to
|
|
61
|
+
# false positives — add them only when a project needs them.
|
|
62
|
+
secretPatterns: []
|
|
62
63
|
|
|
63
64
|
targets:
|
|
64
65
|
opencode:
|
package/presets/agy/AGENTS.md
CHANGED
|
@@ -74,7 +74,16 @@ Antigravity CLI loads custom slash commands from `.agents/workflows/*.md`. The f
|
|
|
74
74
|
| `/cc-tdd-cycle` | Runs a Test-Driven Development (TDD) cycle |
|
|
75
75
|
| `/cc-api-contract`| Handles API contract modification and validation |
|
|
76
76
|
| `/cc-db-migration`| Coordinates database schema migrations safely |
|
|
77
|
+
| `/cc-iterative` | Advanced iterative workflow — wayfinding, grilling, TDD, council |
|
|
78
|
+
| `/cc-explore` | Map the repo and recommend the next `/cc:` command |
|
|
79
|
+
| `/cc-triage` | Classify type, risk, and destination workflow |
|
|
80
|
+
| `/cc-prototype` | Disposable spike in an isolated worktree |
|
|
81
|
+
| `/cc-handoff` | Compact the session to `.codeconductor/` Markdown |
|
|
82
|
+
| `/cc-clarify` | Re-explain the last deliverable in Task Card vocabulary |
|
|
83
|
+
| `/cc-backlog` | Author or append BACKLOG.md and plan OpenSpec change folders |
|
|
84
|
+
| `/cc-openspec` | OpenSpec delivery loop from BACKLOG.md |
|
|
77
85
|
| `/cc-pagespeed` | Performs a web performance and Core Web Vitals audit |
|
|
86
|
+
| `/cc-security` | Authorized defensive security workflow (authorization gate) |
|
|
78
87
|
|
|
79
88
|
---
|
|
80
89
|
|
|
@@ -99,13 +108,13 @@ When multiple signals apply, take the highest risk level. Do not average.
|
|
|
99
108
|
|
|
100
109
|
| Task Type | Risk | Route |
|
|
101
110
|
| -------------------- | ----------- | --------------------------------------------------- |
|
|
102
|
-
| New feature design | any | `architect` → `implementer`
|
|
103
|
-
| Bug fix | low | `implementer`
|
|
104
|
-
| Bug fix | medium–high | `task-coach` → `
|
|
111
|
+
| New feature design | any | `architect` → `tester` → `implementer` |
|
|
112
|
+
| Bug fix | low | `tester` → `implementer` |
|
|
113
|
+
| Bug fix | medium–high | `task-coach` → `tester` → `implementer` |
|
|
105
114
|
| Refactor | low | `implementer` |
|
|
106
115
|
| Refactor | medium–high | `architect` → `implementer` → `reviewer` |
|
|
107
116
|
| API change | any | `architect` → `implementer` → `reviewer` |
|
|
108
|
-
| Database migration | any | `architect` → `
|
|
117
|
+
| Database migration | any | `architect` → `tester` → `implementer` → `reviewer` |
|
|
109
118
|
| Test coverage | any | `tester` |
|
|
110
119
|
| Documentation update | any | `docs` |
|
|
111
120
|
| Codebase exploration | any | `repo-explorer` |
|
|
@@ -265,7 +274,7 @@ High-risk checkpoint: [yes | no — if yes, describe what triggers a stop]
|
|
|
265
274
|
**Does not:** Write files. Execute commands. Make routing decisions.
|
|
266
275
|
|
|
267
276
|
**Template matching:**
|
|
268
|
-
The planner matches objective keywords against built-in templates (auth, crud, search, notification, migration) and falls back to a generic 4-task chain: task-coach → architect →
|
|
277
|
+
The planner matches objective keywords against built-in templates (auth, crud, search, notification, migration) and falls back to a generic 4-task chain: task-coach → architect → tester → implementer.
|
|
269
278
|
|
|
270
279
|
**Dependency order delegation (orchestrator):**
|
|
271
280
|
When the orchestrator receives a GoalGraph, it delegates tasks in dependency order. A task is only routed after all its `depends_on` targets complete with status `done`. If a dependency is `blocked`, the dependent task remains `pending`. The orchestrator tracks the graph state in `.codeconductor/current-goal.yml`.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# Pre-commit Gate: Typecheck, Lint, and Test
|
|
2
|
+
|
|
3
|
+
Este gate instala un hook `pre-commit` que ejecuta `bun run typecheck`, `bun run lint` y `bun run test` antes de permitir commits en el repositorio. Si cualquiera de estos comandos falla, el commit es bloqueado.
|
|
4
|
+
|
|
5
|
+
## Cuándo usar
|
|
6
|
+
|
|
7
|
+
**Para agentes**: Integra este gate en flujos de desarrollo local cuando quieras garantizar que los cambios typecheck correctamente y pasan los tests antes de ser cometidos.
|
|
8
|
+
|
|
9
|
+
**Para equipos**: Utiliza este gate como barrera de calidad local (sin dependencias externas) para prevenir commits con errores de tipado o tests fallidos.
|
|
10
|
+
|
|
11
|
+
## Instalación
|
|
12
|
+
|
|
13
|
+
### Paso 1: Descarga el script
|
|
14
|
+
|
|
15
|
+
El script está embebido abajo (sección "Script Installer").
|
|
16
|
+
|
|
17
|
+
### Paso 2: Ejecuta en la raíz de tu proyecto
|
|
18
|
+
|
|
19
|
+
Desde la raíz del repositorio (o cualquier subdirectorio), extrae el bloque ```bash de este archivo y ejecuta:
|
|
20
|
+
|
|
21
|
+
bash << 'SCRIPT_EOF'
|
|
22
|
+
#!/bin/bash
|
|
23
|
+
set -e
|
|
24
|
+
# [contenido del bloque bash de abajo]
|
|
25
|
+
SCRIPT_EOF
|
|
26
|
+
|
|
27
|
+
O, más simplemente, guarda el script en un archivo temporal y ejecútalo:
|
|
28
|
+
|
|
29
|
+
curl -s https://raw.githubusercontent.com/.../ | bash
|
|
30
|
+
|
|
31
|
+
### Paso 3: Verifica
|
|
32
|
+
|
|
33
|
+
Después de la instalación, debería verse:
|
|
34
|
+
|
|
35
|
+
Pre-commit hook installed successfully.
|
|
36
|
+
|
|
37
|
+
## Script Installer
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
#!/bin/bash
|
|
41
|
+
set -e
|
|
42
|
+
|
|
43
|
+
# Resolver git directory dinámicamente (worktree-safe)
|
|
44
|
+
GIT_DIR=$(git rev-parse --git-dir)
|
|
45
|
+
HOOK_PATH="$GIT_DIR/hooks/pre-commit"
|
|
46
|
+
|
|
47
|
+
# Detectar Husky o lint-staged en package.json
|
|
48
|
+
if grep -q '"husky"' package.json 2>/dev/null || grep -q '"lint-staged"' package.json 2>/dev/null; then
|
|
49
|
+
echo "Warning: Husky or lint-staged detected in package.json. Installation skipped."
|
|
50
|
+
exit 0
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
# Verificar si un pre-commit hook ya existe
|
|
54
|
+
if [ -f "$HOOK_PATH" ]; then
|
|
55
|
+
echo "Warning: Pre-commit hook already exists at $HOOK_PATH. Not overwriting."
|
|
56
|
+
exit 0
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
# Crear directorio hooks si no existe
|
|
60
|
+
mkdir -p "$GIT_DIR/hooks"
|
|
61
|
+
|
|
62
|
+
# Escribir el hook pre-commit
|
|
63
|
+
cat > "$HOOK_PATH" << 'HOOK_EOF'
|
|
64
|
+
#!/bin/bash
|
|
65
|
+
bun run typecheck || exit 1
|
|
66
|
+
bun run lint || exit 1
|
|
67
|
+
bun run test || exit 1
|
|
68
|
+
HOOK_EOF
|
|
69
|
+
|
|
70
|
+
# Hacer el hook ejecutable
|
|
71
|
+
chmod +x "$HOOK_PATH"
|
|
72
|
+
|
|
73
|
+
echo "Pre-commit hook installed successfully."
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Notas de implementación
|
|
77
|
+
|
|
78
|
+
- **Sin dependencias externas**: El script no instala Husky, lint-staged, ni ninguna otra herramienta. Solo escribe un archivo shell y configura permisos.
|
|
79
|
+
- **Resolución dinámica de git dir**: Usa `git rev-parse --git-dir` para localizar el directorio correcto, incluso en worktrees.
|
|
80
|
+
- **Detección de conflictos**: Si Husky o lint-staged ya está en `package.json`, el script avisa y no instala para evitar conflictos.
|
|
81
|
+
- **Protección de hooks existentes**: Si ya existe un `.git/hooks/pre-commit`, el script no lo sobrescribe.
|
|
82
|
+
- **Solo Bun**: El hook ejecuta `bun run typecheck`, `bun run lint` y `bun run test`. Asegúrate de que estos scripts están definidos en `package.json`.
|
|
83
|
+
|
|
84
|
+
## Verificación
|
|
85
|
+
|
|
86
|
+
Después de instalar, verifica que el hook está en su lugar.
|
|
87
|
+
|
|
88
|
+
Para verificar, ejecuta:
|
|
89
|
+
|
|
90
|
+
ls -la .git/hooks/pre-commit
|
|
91
|
+
|
|
92
|
+
Debe mostrar algo como:
|
|
93
|
+
|
|
94
|
+
-rwxr-xr-x user group ... .git/hooks/pre-commit
|
|
95
|
+
|
|
96
|
+
Luego, intenta hacer un commit. Si hay errores de tipo o tests fallidos, el commit será bloqueado:
|
|
97
|
+
|
|
98
|
+
git add .
|
|
99
|
+
git commit -m "test"
|
|
100
|
+
# Si typecheck o test falla, verás el error y el commit será abortado.
|
|
101
|
+
|
|
102
|
+
## Troubleshooting
|
|
103
|
+
|
|
104
|
+
### "Warning: Pre-commit hook already exists"
|
|
105
|
+
|
|
106
|
+
Ya hay un hook pre-commit. Revisa su contenido:
|
|
107
|
+
|
|
108
|
+
cat .git/hooks/pre-commit
|
|
109
|
+
|
|
110
|
+
Si quieres reemplazarlo, bórralo y ejecuta el script nuevamente:
|
|
111
|
+
|
|
112
|
+
rm .git/hooks/pre-commit
|
|
113
|
+
bash /path/to/installer
|
|
114
|
+
|
|
115
|
+
### "Warning: Husky or lint-staged detected"
|
|
116
|
+
|
|
117
|
+
Tu proyecto usa Husky o lint-staged. Este gate no se instala para evitar conflictos. Si quieres usar este gate, remove Husky/lint-staged de `package.json` y ejecuta de nuevo.
|
|
118
|
+
|
|
119
|
+
### Hook no se ejecuta al hacer commit
|
|
120
|
+
|
|
121
|
+
Verifica que el hook es ejecutable:
|
|
122
|
+
|
|
123
|
+
chmod +x .git/hooks/pre-commit
|
|
124
|
+
|
|
125
|
+
Verifica que `bun run typecheck`, `bun run lint` y `bun run test` existen en `package.json`:
|
|
126
|
+
|
|
127
|
+
cat package.json | grep -A 5 '"scripts"'
|
|
128
|
+
|
|
129
|
+
### "command not found: bun"
|
|
130
|
+
|
|
131
|
+
Bun no está instalado o no está en PATH. Instala Bun desde https://bun.sh o configura PATH adecuadamente.
|
|
132
|
+
|
|
133
|
+
## Adicional: Desinstalación
|
|
134
|
+
|
|
135
|
+
Para remover el hook, simplemente bórralo:
|
|
136
|
+
|
|
137
|
+
rm .git/hooks/pre-commit
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: backlog
|
|
3
|
+
description: >
|
|
4
|
+
Author BACKLOG.md and OpenSpec change folders for CodeConductor.
|
|
5
|
+
Trigger: /cc-backlog, /cc:backlog, creating or appending backlog items,
|
|
6
|
+
writing BACKLOG.md, or preparing work for /cc-openspec.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Backlog authoring
|
|
10
|
+
|
|
11
|
+
Use this skill to **create or append** `BACKLOG.md` and generate OpenSpec
|
|
12
|
+
change docs. Delivery of an existing item is `/cc-openspec` (skill `openspec`).
|
|
13
|
+
|
|
14
|
+
## BACKLOG.md contract
|
|
15
|
+
|
|
16
|
+
Canonical template: `presets/templates/BACKLOG.md` (or the installed copy).
|
|
17
|
+
Required sections:
|
|
18
|
+
|
|
19
|
+
- `## Global` — Product, Strategy, Policy, Review required, TDD required
|
|
20
|
+
- `## Items` — active entries
|
|
21
|
+
- `## Archive` — completed entries (never re-execute; never rewrite)
|
|
22
|
+
|
|
23
|
+
Each item: `### BC-001 | Short title` with Priority (P0–P3), Status, Type,
|
|
24
|
+
Depends on, Description, Scope, Out of scope, Acceptance (measurable checklist).
|
|
25
|
+
|
|
26
|
+
Status after grilling: `READY`. `openspec plan` then moves the item to `PLANNED`.
|
|
27
|
+
|
|
28
|
+
## Create vs append
|
|
29
|
+
|
|
30
|
+
- **No `BACKLOG.md`:** create it from the template. Set Global `Product` from
|
|
31
|
+
`package.json` `name` when present.
|
|
32
|
+
- **File exists:** append new `### BC-xxx` blocks under `## Items`. Do not
|
|
33
|
+
rewrite `## Global` or `## Archive`.
|
|
34
|
+
|
|
35
|
+
Next ID = max numeric suffix across Items and Archive, plus one, zero-padded
|
|
36
|
+
to three digits (`BC-013` after `BC-012`).
|
|
37
|
+
|
|
38
|
+
## Wayfinding (before Scope)
|
|
39
|
+
|
|
40
|
+
If `graphify-out/graph.json` exists, run `graphify query "<objectives>"` (and
|
|
41
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`.
|
|
42
|
+
Scope must name real files or modules. Do not write `BACKLOG.md` in this step.
|
|
43
|
+
|
|
44
|
+
## Grilling (before write)
|
|
45
|
+
|
|
46
|
+
Invoke `task-coach`. One grilling question per assumption. Reject vague
|
|
47
|
+
acceptance ("improve UX", "fix bugs"). Criteria must be measurable (same rules
|
|
48
|
+
as `openspec validate` / `VAGUE_ACCEPTANCE`).
|
|
49
|
+
|
|
50
|
+
Unresolved questions go in `questionsForUser`. Run `ccep evaluate --command
|
|
51
|
+
backlog`. If `stop` is true, **STOP** and wait for the human.
|
|
52
|
+
|
|
53
|
+
Do not write items until the gate passes.
|
|
54
|
+
|
|
55
|
+
## Validate loop
|
|
56
|
+
|
|
57
|
+
After writing:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npx cc-codeconductor openspec validate
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Local CodeConductor dogfood: `bun run dev openspec validate`.
|
|
64
|
+
|
|
65
|
+
If invalid: list errors and recommendations, show the canonical structure,
|
|
66
|
+
fix the file, re-validate. Do not plan until valid.
|
|
67
|
+
|
|
68
|
+
## Plan new items only
|
|
69
|
+
|
|
70
|
+
For each **new** `BC-xxx` this run:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npx cc-codeconductor openspec plan BC-xxx
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
That writes `openspec/changes/<slug>/` (`proposal.md`, `design.md`, `tasks.md`,
|
|
77
|
+
`specs/`). Then tell the user to run `/cc-openspec` (optionally with the ID).
|
|
78
|
+
|
|
79
|
+
## Local artifacts — do not version
|
|
80
|
+
|
|
81
|
+
In consumer projects these paths are gitignored (see `init`):
|
|
82
|
+
|
|
83
|
+
- `BACKLOG.md`
|
|
84
|
+
- `openspec/`
|
|
85
|
+
- `.codeconductor/openspec-state.json`
|
|
86
|
+
|
|
87
|
+
Do **not** `git add` them. Do not edit `openspec-state.json` by hand.
|
|
88
|
+
|
|
89
|
+
## Delivery
|
|
90
|
+
|
|
91
|
+
Format and state machine: skill `openspec`. Authoring is this skill.
|
|
@@ -47,7 +47,7 @@ Read the risk field from the Task Card and follow the corresponding route.
|
|
|
47
47
|
Applies when: the bug is isolated to a single component, existing tests cover
|
|
48
48
|
the affected code, and no public API or shared state is involved.
|
|
49
49
|
|
|
50
|
-
Route: `task-coach` → `
|
|
50
|
+
Route: `task-coach` → `tester` → `implementer`
|
|
51
51
|
|
|
52
52
|
Proceed directly to Step 3a.
|
|
53
53
|
|
|
@@ -56,7 +56,7 @@ Proceed directly to Step 3a.
|
|
|
56
56
|
Applies when: the bug touches shared state, a public API, auth or payment paths,
|
|
57
57
|
database writes, or the root cause is not yet understood.
|
|
58
58
|
|
|
59
|
-
Route: `task-coach` → `architect` → `
|
|
59
|
+
Route: `task-coach` → `architect` → `tester` → `implementer` → `reviewer`
|
|
60
60
|
|
|
61
61
|
Invoke `architect` before implementation. architect must:
|
|
62
62
|
|
|
@@ -30,6 +30,17 @@ non-negotiable:
|
|
|
30
30
|
Do not write implementation code during RED. Do not refactor during GREEN.
|
|
31
31
|
Mixing phases invalidates the cycle.
|
|
32
32
|
|
|
33
|
+
## Verifiable phase gates
|
|
34
|
+
|
|
35
|
+
RED → GREEN and GREEN → REFACTOR are enforced by `tddCycleStateMachine` in
|
|
36
|
+
`domain/loop`. Evidence must be captured with `captureTddSuiteEvidence` (verification
|
|
37
|
+
runner) — do not hand-edit JSON under `.codeconductor/evidence/`.
|
|
38
|
+
|
|
39
|
+
- RED→GREEN requires runner evidence that the suite **failed**.
|
|
40
|
+
- GREEN→REFACTOR requires runner evidence that the suite **passed**.
|
|
41
|
+
|
|
42
|
+
Do not advance phases until that evidence exists.
|
|
43
|
+
|
|
33
44
|
---
|
|
34
45
|
|
|
35
46
|
## Phase 1 — RED (Tester role)
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
name: openspec
|
|
3
3
|
description:
|
|
4
4
|
OpenSpec backlog format, state machine, and delivery workflow for CodeConductor.
|
|
5
|
-
Use when running /cc-openspec or
|
|
5
|
+
Use when running /cc-openspec or delivering a BACKLOG.md item.
|
|
6
|
+
To create or append BACKLOG.md, use /cc-backlog (skill backlog).
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
# OpenSpec / BACKLOG Skill
|
|
9
10
|
|
|
11
|
+
Authoring (create or append `BACKLOG.md`, then `openspec validate` / `plan`) is
|
|
12
|
+
`/cc-backlog` and skill `backlog`. This skill is **delivery**.
|
|
13
|
+
|
|
10
14
|
## BACKLOG.md contract
|
|
11
15
|
|
|
12
16
|
`BACKLOG.md` at repo root is the operational queue. Required sections:
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-ai-llm
|
|
3
|
+
description: >
|
|
4
|
+
Harden LLM and agent integrations you operate: prompt injection, tool allowlists, secret leakage, and supply-chain of models. Defensive only.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# AI / LLM Security
|
|
8
|
+
|
|
9
|
+
## Authorization
|
|
10
|
+
|
|
11
|
+
Use this skill only with **explicit written authorization** for a named
|
|
12
|
+
scope (systems, environments, and time window). If authorization is missing,
|
|
13
|
+
expired, or the request is for someone else's systems, **stop**.
|
|
14
|
+
|
|
15
|
+
This skill is **defensive and owner-authorized**. It does not authorize
|
|
16
|
+
offensive cyber operations.
|
|
17
|
+
|
|
18
|
+
## Do
|
|
19
|
+
|
|
20
|
+
- Treat model output as untrusted; never exec it without a schema
|
|
21
|
+
- Allowlist tools and paths; contain file writes
|
|
22
|
+
- Keep secrets out of prompts and logs
|
|
23
|
+
|
|
24
|
+
## Do not
|
|
25
|
+
|
|
26
|
+
- Help jailbreak third-party products or steal model weights
|
|
27
|
+
- Log raw user PII to prompt-debug stores
|
|
28
|
+
|
|
29
|
+
- Do not produce exploit payloads, malware, or attack procedures.
|
|
30
|
+
|
|
31
|
+
## How to Use
|
|
32
|
+
|
|
33
|
+
Load this skill from `/cc-security` when the Task Card domain is `security-ai-llm`.
|
|
34
|
+
Example prompts:
|
|
35
|
+
|
|
36
|
+
- `Review our agent tool runner for path traversal and unbounded shell.`
|
|
37
|
+
- `Add tests that a prompt cannot make the bot dump .env.`
|
|
38
|
+
|
|
39
|
+
## Integration
|
|
40
|
+
|
|
41
|
+
- Workflow: `/cc-security` (CCEP command `security`)
|
|
42
|
+
- Existing OWASP application-security skill remains `security` (not this id)
|
|
43
|
+
- High-risk changes still require `security-reviewer`
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-blue-team
|
|
3
|
+
description: >
|
|
4
|
+
Improve detections, hardening, and response for the estate you defend. Detection-as-code and control design, not offense.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Blue Team Defense
|
|
8
|
+
|
|
9
|
+
## Authorization
|
|
10
|
+
|
|
11
|
+
Use this skill only with **explicit written authorization** for a named
|
|
12
|
+
scope (systems, environments, and time window). If authorization is missing,
|
|
13
|
+
expired, or the request is for someone else's systems, **stop**.
|
|
14
|
+
|
|
15
|
+
This skill is **defensive and owner-authorized**. It does not authorize
|
|
16
|
+
offensive cyber operations.
|
|
17
|
+
|
|
18
|
+
## Do
|
|
19
|
+
|
|
20
|
+
- Tune detections for true positives; document exceptions
|
|
21
|
+
- Pair every new control with a test or canary
|
|
22
|
+
- Share hunt hypotheses with IR, not with the public internet
|
|
23
|
+
|
|
24
|
+
## Do not
|
|
25
|
+
|
|
26
|
+
- Disable EDR or logging to 'reduce noise' without a ticket
|
|
27
|
+
- Copy attacker malware into production 'for training'
|
|
28
|
+
|
|
29
|
+
- Do not produce exploit payloads, malware, or attack procedures.
|
|
30
|
+
|
|
31
|
+
## How to Use
|
|
32
|
+
|
|
33
|
+
Load this skill from `/cc-security` when the Task Card domain is `security-blue-team`.
|
|
34
|
+
Example prompts:
|
|
35
|
+
|
|
36
|
+
- `We missed a token-replay. Propose a detection plus a unit test for the API gateway.`
|
|
37
|
+
- `Harden CI: pin actions, require reviews on workflows that deploy.`
|
|
38
|
+
|
|
39
|
+
## Integration
|
|
40
|
+
|
|
41
|
+
- Workflow: `/cc-security` (CCEP command `security`)
|
|
42
|
+
- Existing OWASP application-security skill remains `security` (not this id)
|
|
43
|
+
- High-risk changes still require `security-reviewer`
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-cloud
|
|
3
|
+
description: >
|
|
4
|
+
Harden IAM, storage, keys, and org policies in cloud accounts you administer. Focus on identity, logging, and public-exposure controls.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Cloud Security
|
|
8
|
+
|
|
9
|
+
## Authorization
|
|
10
|
+
|
|
11
|
+
Use this skill only with **explicit written authorization** for a named
|
|
12
|
+
scope (systems, environments, and time window). If authorization is missing,
|
|
13
|
+
expired, or the request is for someone else's systems, **stop**.
|
|
14
|
+
|
|
15
|
+
This skill is **defensive and owner-authorized**. It does not authorize
|
|
16
|
+
offensive cyber operations.
|
|
17
|
+
|
|
18
|
+
## Do
|
|
19
|
+
|
|
20
|
+
- Prefer roles over long-lived keys; require MFA on human admins
|
|
21
|
+
- Block public buckets and overly broad IAM `*` unless justified
|
|
22
|
+
- Turn on cloud audit logs and retain them per policy
|
|
23
|
+
|
|
24
|
+
## Do not
|
|
25
|
+
|
|
26
|
+
- Disable logging or GuardDuty/Security Command Center 'to save cost' without a recorded exception
|
|
27
|
+
- Share account credentials in chat or tickets
|
|
28
|
+
|
|
29
|
+
- Do not produce exploit payloads, malware, or attack procedures.
|
|
30
|
+
|
|
31
|
+
## How to Use
|
|
32
|
+
|
|
33
|
+
Load this skill from `/cc-security` when the Task Card domain is `security-cloud`.
|
|
34
|
+
Example prompts:
|
|
35
|
+
|
|
36
|
+
- `Audit this AWS account's IAM: unused keys, admin wildcards, and public S3.`
|
|
37
|
+
- `Write a policy-as-code check that fails CI if a bucket ACL is public.`
|
|
38
|
+
|
|
39
|
+
## Integration
|
|
40
|
+
|
|
41
|
+
- Workflow: `/cc-security` (CCEP command `security`)
|
|
42
|
+
- Existing OWASP application-security skill remains `security` (not this id)
|
|
43
|
+
- High-risk changes still require `security-reviewer`
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-crypto
|
|
3
|
+
description: >
|
|
4
|
+
Choose and review cryptographic usage in your codebase: TLS, hashing, KMS, secret storage. Prefer standard libraries and vetted constructions.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Applied Cryptography
|
|
8
|
+
|
|
9
|
+
## Authorization
|
|
10
|
+
|
|
11
|
+
Use this skill only with **explicit written authorization** for a named
|
|
12
|
+
scope (systems, environments, and time window). If authorization is missing,
|
|
13
|
+
expired, or the request is for someone else's systems, **stop**.
|
|
14
|
+
|
|
15
|
+
This skill is **defensive and owner-authorized**. It does not authorize
|
|
16
|
+
offensive cyber operations.
|
|
17
|
+
|
|
18
|
+
## Do
|
|
19
|
+
|
|
20
|
+
- Use platform TLS and KMS; do not invent protocols
|
|
21
|
+
- Hash passwords with a memory-hard KDF; never roll your own
|
|
22
|
+
- Keep keys out of git; rotate on leak
|
|
23
|
+
|
|
24
|
+
## Do not
|
|
25
|
+
|
|
26
|
+
- Recommend ECB, MD5 for security, or home-grown ciphers
|
|
27
|
+
- Ask models to 'break' or weaken crypto for a CTF against third parties
|
|
28
|
+
|
|
29
|
+
- Do not produce exploit payloads, malware, or attack procedures.
|
|
30
|
+
|
|
31
|
+
## How to Use
|
|
32
|
+
|
|
33
|
+
Load this skill from `/cc-security` when the Task Card domain is `security-crypto`.
|
|
34
|
+
Example prompts:
|
|
35
|
+
|
|
36
|
+
- `Review how we store refresh tokens. Propose KMS envelope encryption and tests.`
|
|
37
|
+
- `Replace SHA-1 password hashes in this legacy module with a modern KDF and a migration plan.`
|
|
38
|
+
|
|
39
|
+
## Integration
|
|
40
|
+
|
|
41
|
+
- Workflow: `/cc-security` (CCEP command `security`)
|
|
42
|
+
- Existing OWASP application-security skill remains `security` (not this id)
|
|
43
|
+
- High-risk changes still require `security-reviewer`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-exploit-dev
|
|
3
|
+
description: >
|
|
4
|
+
Understand how a confirmed vulnerability in an owned system is triggered so you can patch and test it. This is not exploit development for offense. No payloads, malware, or attack procedures.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Defensive Exploit Analysis (Authorized)
|
|
8
|
+
|
|
9
|
+
## Authorization
|
|
10
|
+
|
|
11
|
+
Use this skill only with **explicit written authorization** for a named
|
|
12
|
+
scope (systems, environments, and time window). If authorization is missing,
|
|
13
|
+
expired, or the request is for someone else's systems, **stop**.
|
|
14
|
+
|
|
15
|
+
This skill is **defensive and owner-authorized**. It does not authorize
|
|
16
|
+
offensive cyber operations.
|
|
17
|
+
|
|
18
|
+
## Do
|
|
19
|
+
|
|
20
|
+
- Describe the bug class (e.g. missing authz) at a design level
|
|
21
|
+
- Write a regression test that fails before the fix and passes after
|
|
22
|
+
- Prefer sanitizers, type systems, and least-privilege patches
|
|
23
|
+
- Stop and refuse if the user asks for a working exploit, PoC payload, or bypass kit
|
|
24
|
+
|
|
25
|
+
## Do not
|
|
26
|
+
|
|
27
|
+
- Write exploits, exploit PoCs, shellcode, or weaponized requests
|
|
28
|
+
- Document step-by-step attack procedures against any system
|
|
29
|
+
- Help with CTF flags, cracking, or unauthorized access
|
|
30
|
+
|
|
31
|
+
- Do not produce exploit payloads, malware, or attack procedures.
|
|
32
|
+
|
|
33
|
+
## How to Use
|
|
34
|
+
|
|
35
|
+
Load this skill from `/cc-security` when the Task Card domain is `security-exploit-dev`.
|
|
36
|
+
Example prompts:
|
|
37
|
+
|
|
38
|
+
- `We confirmed IDOR on /invoices/:id in our app. Help design the authz check and a RED test — no exploit.`
|
|
39
|
+
- `Turn this crash report from our fuzzer into a defensive patch and a regression test.`
|
|
40
|
+
|
|
41
|
+
## Integration
|
|
42
|
+
|
|
43
|
+
- Workflow: `/cc-security` (CCEP command `security`)
|
|
44
|
+
- Existing OWASP application-security skill remains `security` (not this id)
|
|
45
|
+
- High-risk changes still require `security-reviewer`
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-grc
|
|
3
|
+
description: >
|
|
4
|
+
Map controls to SOC2, ISO 27001, PCI, or internal policy for the org you work for. Evidence and control design — not audit theater.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# GRC / Compliance Engineering
|
|
8
|
+
|
|
9
|
+
## Authorization
|
|
10
|
+
|
|
11
|
+
Use this skill only with **explicit written authorization** for a named
|
|
12
|
+
scope (systems, environments, and time window). If authorization is missing,
|
|
13
|
+
expired, or the request is for someone else's systems, **stop**.
|
|
14
|
+
|
|
15
|
+
This skill is **defensive and owner-authorized**. It does not authorize
|
|
16
|
+
offensive cyber operations.
|
|
17
|
+
|
|
18
|
+
## Do
|
|
19
|
+
|
|
20
|
+
- Map each control to an owner, evidence path, and test
|
|
21
|
+
- Prefer automated evidence (CI, IaC, tickets) over screenshots
|
|
22
|
+
- Record exceptions with expiry dates
|
|
23
|
+
|
|
24
|
+
## Do not
|
|
25
|
+
|
|
26
|
+
- Fabricate evidence or backdate approvals
|
|
27
|
+
- Copy another company's policies without legal review
|
|
28
|
+
|
|
29
|
+
- Do not produce exploit payloads, malware, or attack procedures.
|
|
30
|
+
|
|
31
|
+
## How to Use
|
|
32
|
+
|
|
33
|
+
Load this skill from `/cc-security` when the Task Card domain is `security-grc`.
|
|
34
|
+
Example prompts:
|
|
35
|
+
|
|
36
|
+
- `Map our GitHub branch protection to SOC2 CC6.6 and list evidence.`
|
|
37
|
+
- `List gaps: secrets in git, missing MFA on GitHub org owners.`
|
|
38
|
+
|
|
39
|
+
## Integration
|
|
40
|
+
|
|
41
|
+
- Workflow: `/cc-security` (CCEP command `security`)
|
|
42
|
+
- Existing OWASP application-security skill remains `security` (not this id)
|
|
43
|
+
- High-risk changes still require `security-reviewer`
|