cc-codeconductor 1.0.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.
Files changed (122) hide show
  1. package/README.md +324 -87
  2. package/dist/core/compilation/compile-checker.d.ts +2 -0
  3. package/dist/core/loop/loop-engine.d.ts +3 -0
  4. package/dist/index.js +2701 -577
  5. package/dist/library.js +167 -18
  6. package/dist/validation/schemas.d.ts +390 -44
  7. package/package.json +4 -1
  8. package/presets/agy/AGENTS.md +3 -0
  9. package/presets/agy/gates/pre-commit/GATE.md +5 -4
  10. package/presets/agy/skills/backlog/SKILL.md +91 -0
  11. package/presets/agy/skills/openspec/SKILL.md +5 -1
  12. package/presets/agy/skills/security-ai-llm/SKILL.md +43 -0
  13. package/presets/agy/skills/security-blue-team/SKILL.md +43 -0
  14. package/presets/agy/skills/security-cloud/SKILL.md +43 -0
  15. package/presets/agy/skills/security-crypto/SKILL.md +43 -0
  16. package/presets/agy/skills/security-exploit-dev/SKILL.md +45 -0
  17. package/presets/agy/skills/security-grc/SKILL.md +43 -0
  18. package/presets/agy/skills/security-incident-response/SKILL.md +45 -0
  19. package/presets/agy/skills/security-log-analysis/SKILL.md +43 -0
  20. package/presets/agy/skills/security-malware-analysis/SKILL.md +44 -0
  21. package/presets/agy/skills/security-mobile/SKILL.md +43 -0
  22. package/presets/agy/skills/security-network/SKILL.md +43 -0
  23. package/presets/agy/skills/security-ot-ics/SKILL.md +43 -0
  24. package/presets/agy/skills/security-recon/SKILL.md +45 -0
  25. package/presets/agy/skills/security-red-team/SKILL.md +44 -0
  26. package/presets/agy/skills/security-reverse-engineering/SKILL.md +44 -0
  27. package/presets/agy/skills/security-soc-automation/SKILL.md +43 -0
  28. package/presets/agy/skills/security-threat-hunting/SKILL.md +43 -0
  29. package/presets/agy/skills/security-vuln-assessment/SKILL.md +45 -0
  30. package/presets/agy/skills/security-web/SKILL.md +44 -0
  31. package/presets/agy/workflows/cc-ask.md +2 -1
  32. package/presets/agy/workflows/cc-backlog.md +69 -0
  33. package/presets/agy/workflows/cc-explore.md +1 -1
  34. package/presets/agy/workflows/cc-openspec.md +3 -1
  35. package/presets/agy/workflows/cc-security.md +180 -0
  36. package/presets/claude/CLAUDE.md +4 -0
  37. package/presets/claude/commands/cc/ask.md +2 -1
  38. package/presets/claude/commands/cc/backlog.md +104 -0
  39. package/presets/claude/commands/cc/explore.md +1 -1
  40. package/presets/claude/commands/cc/openspec.md +16 -1
  41. package/presets/claude/commands/cc/security.md +179 -0
  42. package/presets/claude/gates/pre-commit/GATE.md +5 -4
  43. package/presets/claude/skills/backlog/SKILL.md +91 -0
  44. package/presets/claude/skills/openspec/SKILL.md +5 -1
  45. package/presets/claude/skills/security/SKILL.md +382 -0
  46. package/presets/claude/skills/security-ai-llm/SKILL.md +43 -0
  47. package/presets/claude/skills/security-blue-team/SKILL.md +43 -0
  48. package/presets/claude/skills/security-cloud/SKILL.md +43 -0
  49. package/presets/claude/skills/security-crypto/SKILL.md +43 -0
  50. package/presets/claude/skills/security-exploit-dev/SKILL.md +45 -0
  51. package/presets/claude/skills/security-grc/SKILL.md +43 -0
  52. package/presets/claude/skills/security-incident-response/SKILL.md +45 -0
  53. package/presets/claude/skills/security-log-analysis/SKILL.md +43 -0
  54. package/presets/claude/skills/security-malware-analysis/SKILL.md +44 -0
  55. package/presets/claude/skills/security-mobile/SKILL.md +43 -0
  56. package/presets/claude/skills/security-network/SKILL.md +43 -0
  57. package/presets/claude/skills/security-ot-ics/SKILL.md +43 -0
  58. package/presets/claude/skills/security-recon/SKILL.md +45 -0
  59. package/presets/claude/skills/security-red-team/SKILL.md +44 -0
  60. package/presets/claude/skills/security-reverse-engineering/SKILL.md +44 -0
  61. package/presets/claude/skills/security-soc-automation/SKILL.md +43 -0
  62. package/presets/claude/skills/security-threat-hunting/SKILL.md +43 -0
  63. package/presets/claude/skills/security-vuln-assessment/SKILL.md +45 -0
  64. package/presets/claude/skills/security-web/SKILL.md +44 -0
  65. package/presets/codex/commands/cc-ask.md +2 -1
  66. package/presets/codex/gates/pre-commit/GATE.md +5 -4
  67. package/presets/cursor/AGENTS.md +2 -2
  68. package/presets/cursor/commands/cc/ask.md +2 -1
  69. package/presets/cursor/commands/cc/backlog.md +105 -0
  70. package/presets/cursor/commands/cc/explore.md +1 -1
  71. package/presets/cursor/commands/cc/openspec.md +16 -1
  72. package/presets/cursor/commands/cc/security.md +179 -0
  73. package/presets/cursor/gates/pre-commit/GATE.md +5 -4
  74. package/presets/cursor/skills/backlog/SKILL.md +91 -0
  75. package/presets/cursor/skills/openspec/SKILL.md +5 -1
  76. package/presets/cursor/skills/security-ai-llm/SKILL.md +43 -0
  77. package/presets/cursor/skills/security-blue-team/SKILL.md +43 -0
  78. package/presets/cursor/skills/security-cloud/SKILL.md +43 -0
  79. package/presets/cursor/skills/security-crypto/SKILL.md +43 -0
  80. package/presets/cursor/skills/security-exploit-dev/SKILL.md +45 -0
  81. package/presets/cursor/skills/security-grc/SKILL.md +43 -0
  82. package/presets/cursor/skills/security-incident-response/SKILL.md +45 -0
  83. package/presets/cursor/skills/security-log-analysis/SKILL.md +43 -0
  84. package/presets/cursor/skills/security-malware-analysis/SKILL.md +44 -0
  85. package/presets/cursor/skills/security-mobile/SKILL.md +43 -0
  86. package/presets/cursor/skills/security-network/SKILL.md +43 -0
  87. package/presets/cursor/skills/security-ot-ics/SKILL.md +43 -0
  88. package/presets/cursor/skills/security-recon/SKILL.md +45 -0
  89. package/presets/cursor/skills/security-red-team/SKILL.md +44 -0
  90. package/presets/cursor/skills/security-reverse-engineering/SKILL.md +44 -0
  91. package/presets/cursor/skills/security-soc-automation/SKILL.md +43 -0
  92. package/presets/cursor/skills/security-threat-hunting/SKILL.md +43 -0
  93. package/presets/cursor/skills/security-vuln-assessment/SKILL.md +45 -0
  94. package/presets/cursor/skills/security-web/SKILL.md +44 -0
  95. package/presets/opencode/commands/cc-ask.md +2 -1
  96. package/presets/opencode/commands/cc-backlog.md +68 -0
  97. package/presets/opencode/commands/cc-explore.md +1 -1
  98. package/presets/opencode/commands/cc-openspec.md +3 -1
  99. package/presets/opencode/commands/cc-security.md +179 -0
  100. package/presets/opencode/gates/pre-commit/GATE.md +5 -4
  101. package/presets/opencode/skills/backlog/SKILL.md +91 -0
  102. package/presets/opencode/skills/openspec/SKILL.md +5 -1
  103. package/presets/opencode/skills/security-ai-llm/SKILL.md +43 -0
  104. package/presets/opencode/skills/security-blue-team/SKILL.md +43 -0
  105. package/presets/opencode/skills/security-cloud/SKILL.md +43 -0
  106. package/presets/opencode/skills/security-crypto/SKILL.md +43 -0
  107. package/presets/opencode/skills/security-exploit-dev/SKILL.md +45 -0
  108. package/presets/opencode/skills/security-grc/SKILL.md +43 -0
  109. package/presets/opencode/skills/security-incident-response/SKILL.md +45 -0
  110. package/presets/opencode/skills/security-log-analysis/SKILL.md +43 -0
  111. package/presets/opencode/skills/security-malware-analysis/SKILL.md +44 -0
  112. package/presets/opencode/skills/security-mobile/SKILL.md +43 -0
  113. package/presets/opencode/skills/security-network/SKILL.md +43 -0
  114. package/presets/opencode/skills/security-ot-ics/SKILL.md +43 -0
  115. package/presets/opencode/skills/security-recon/SKILL.md +45 -0
  116. package/presets/opencode/skills/security-red-team/SKILL.md +44 -0
  117. package/presets/opencode/skills/security-reverse-engineering/SKILL.md +44 -0
  118. package/presets/opencode/skills/security-soc-automation/SKILL.md +43 -0
  119. package/presets/opencode/skills/security-threat-hunting/SKILL.md +43 -0
  120. package/presets/opencode/skills/security-vuln-assessment/SKILL.md +45 -0
  121. package/presets/opencode/skills/security-web/SKILL.md +44 -0
  122. package/src/presets/council/council.yml +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-codeconductor",
3
- "version": "1.0.0",
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",
@@ -49,7 +49,10 @@
49
49
  "build:lib": "bun build src/index.ts --target=node --outfile=dist/library.js --packages=external",
50
50
  "build:types": "tsc -p tsconfig.lib.json --emitDeclarationOnly",
51
51
  "test": "bun test",
52
+ "test:fast": "bun run scripts/test-fast.ts",
52
53
  "typecheck": "tsc --noEmit",
54
+ "lint": "bun run scripts/lint.ts",
55
+ "check:coverage": "bun run scripts/check-coverage.ts",
53
56
  "check:prompt-changelog": "bun run scripts/check-prompt-changelog.ts",
54
57
  "release:patch": "bash release.sh patch",
55
58
  "release:minor": "bash release.sh minor",
@@ -80,7 +80,10 @@ Antigravity CLI loads custom slash commands from `.agents/workflows/*.md`. The f
80
80
  | `/cc-prototype` | Disposable spike in an isolated worktree |
81
81
  | `/cc-handoff` | Compact the session to `.codeconductor/` Markdown |
82
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 |
83
85
  | `/cc-pagespeed` | Performs a web performance and Core Web Vitals audit |
86
+ | `/cc-security` | Authorized defensive security workflow (authorization gate) |
84
87
 
85
88
  ---
86
89
 
@@ -1,6 +1,6 @@
1
- # Pre-commit Gate: Typecheck and Test
1
+ # Pre-commit Gate: Typecheck, Lint, and Test
2
2
 
3
- Este gate instala un hook `pre-commit` que ejecuta `bun run typecheck` y `bun run test` antes de permitir commits en el repositorio. Si cualquiera de estos comandos falla, el commit es bloqueado.
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
4
 
5
5
  ## Cuándo usar
6
6
 
@@ -63,6 +63,7 @@ mkdir -p "$GIT_DIR/hooks"
63
63
  cat > "$HOOK_PATH" << 'HOOK_EOF'
64
64
  #!/bin/bash
65
65
  bun run typecheck || exit 1
66
+ bun run lint || exit 1
66
67
  bun run test || exit 1
67
68
  HOOK_EOF
68
69
 
@@ -78,7 +79,7 @@ echo "Pre-commit hook installed successfully."
78
79
  - **Resolución dinámica de git dir**: Usa `git rev-parse --git-dir` para localizar el directorio correcto, incluso en worktrees.
79
80
  - **Detección de conflictos**: Si Husky o lint-staged ya está en `package.json`, el script avisa y no instala para evitar conflictos.
80
81
  - **Protección de hooks existentes**: Si ya existe un `.git/hooks/pre-commit`, el script no lo sobrescribe.
81
- - **Solo Bun**: El hook ejecuta `bun run typecheck` y `bun run test`. Asegúrate de que estos scripts están definidos en `package.json`.
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`.
82
83
 
83
84
  ## Verificación
84
85
 
@@ -121,7 +122,7 @@ Verifica que el hook es ejecutable:
121
122
 
122
123
  chmod +x .git/hooks/pre-commit
123
124
 
124
- Verifica que `bun run typecheck` y `bun run test` existen en `package.json`:
125
+ Verifica que `bun run typecheck`, `bun run lint` y `bun run test` existen en `package.json`:
125
126
 
126
127
  cat package.json | grep -A 5 '"scripts"'
127
128
 
@@ -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.
@@ -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 editing BACKLOG.md.
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`
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: security-incident-response
3
+ description: >
4
+ Coordinate containment, eradication, and recovery for an authorized incident. Preserve evidence, communicate facts, and avoid destructive actions without approval.
5
+ ---
6
+
7
+ # Incident Response
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
+ - Follow the org IR plan: detect, contain, eradicate, recover, lessons
21
+ - Preserve logs and disk images before reboot or wipe
22
+ - Redact secrets from tickets and chat
23
+ - Track timeline, systems, and decision-makers
24
+
25
+ ## Do not
26
+
27
+ - Wipe systems before evidence capture unless imminent ransomware spread is approved
28
+ - Blame individuals in the working notes; stick to systems and facts
29
+ - Reuse attacker tooling from the incident as a 'test'
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-incident-response`.
36
+ Example prompts:
37
+
38
+ - `P1: suspected token theft on api-prod. Draft containment and evidence steps for the IR commander.`
39
+ - `After containment, write the lessons-learned outline and the regression tests we should add.`
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-log-analysis
3
+ description: >
4
+ Query and interpret security logs you are authorized to read. Build detections and investigations without leaking PII.
5
+ ---
6
+
7
+ # Security Log Analysis
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
+ - Minimize PII in saved queries and screenshots
21
+ - Time-box queries; record the query and the index in the ticket
22
+ - Correlate identity, source IP, and resource — not just a single field
23
+
24
+ ## Do not
25
+
26
+ - Export full production logs to a laptop or public gist
27
+ - Query other customers' tenants in a multi-tenant SaaS
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-log-analysis`.
34
+ Example prompts:
35
+
36
+ - `Find failed logins then a success from a new country for our IdP (last 24h).`
37
+ - `Explain this CloudTrail burst: is it deploy automation or a key leak?`
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,44 @@
1
+ ---
2
+ name: security-malware-analysis
3
+ description: >
4
+ Analyze suspicious artifacts in an isolated lab to contain and recover. For incident responders on owned estates. Never write, improve, or distribute malware.
5
+ ---
6
+
7
+ # Defensive Malware Analysis
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
+ - Work only in an isolated lab with no production credentials
21
+ - Capture IOCs, family labels, and containment steps for the IR ticket
22
+ - Prefer vendor/sandbox reports plus hash look-ups over sample execution when possible
23
+
24
+ ## Do not
25
+
26
+ - Write, compile, or 'improve' malware, ransomware, or wipers
27
+ - Share live samples outside the IR chain of custody
28
+ - Give attackers persistence or packing recipes
29
+
30
+ - Do not produce exploit payloads, malware, or attack procedures.
31
+
32
+ ## How to Use
33
+
34
+ Load this skill from `/cc-security` when the Task Card domain is `security-malware-analysis`.
35
+ Example prompts:
36
+
37
+ - `A phishing attachment landed in our sandbox hash X. Summarize likely objectives and containment for IR — do not recreate the sample.`
38
+ - `Translate this EDR alert into a containment checklist for our Windows fleet.`
39
+
40
+ ## Integration
41
+
42
+ - Workflow: `/cc-security` (CCEP command `security`)
43
+ - Existing OWASP application-security skill remains `security` (not this id)
44
+ - High-risk changes still require `security-reviewer`
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: security-mobile
3
+ description: >
4
+ Harden iOS/Android apps you ship: storage, TLS pinning policy, IPC, and backend trust. You still enforce authz on the server.
5
+ ---
6
+
7
+ # Mobile App 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
+ - Assume the client is hostile; enforce authz on APIs
21
+ - Review local storage, backup flags, and WebView URLs
22
+ - Pin or constrain TLS per org policy; never ship debug trust-all
23
+
24
+ ## Do not
25
+
26
+ - Provide IPA/APK cracking or cert-unpinning recipes for others' apps
27
+ - Store long-lived tokens in world-readable prefs
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-mobile`.
34
+ Example prompts:
35
+
36
+ - `Review Android SharedPreferences usage for tokens in this module.`
37
+ - `Check that certificate pinning failures fail closed in release builds.`
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-network
3
+ description: >
4
+ Harden network architecture, segmentation, TLS, and allowlists for systems you operate. Defensive design and review only.
5
+ ---
6
+
7
+ # Network 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 deny-by-default, least privilege, and explicit allowlists
21
+ - Review security groups, NACLs, and mesh policies against the threat model
22
+ - Require TLS with modern ciphers; flag plaintext admin paths
23
+
24
+ ## Do not
25
+
26
+ - Provide packet-crafting or MITM instructions against third-party networks
27
+ - Open 0.0.0.0/0 'just for debugging' in production
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-network`.
34
+ Example prompts:
35
+
36
+ - `Review terraform for the prod VPC: public subnets, SG ingress, and admin jump box.`
37
+ - `Propose segmentation between PCI and non-PCI subnets with testable terraform assertions.`
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`