minimal-vibe-coding-kit 0.3.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 (223) hide show
  1. package/.agents/skills/agentshield-security-review/SKILL.md +75 -0
  2. package/.agents/skills/agentshield-security-review/agents/openai.yaml +5 -0
  3. package/.agents/skills/agentshield-security-review/references/native-install.md +97 -0
  4. package/.agents/skills/agentshield-security-review/references/report-template.md +54 -0
  5. package/.agents/skills/agentshield-security-review/references/review-checklist.md +45 -0
  6. package/.agents/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
  7. package/.agents/skills/autoresearch-coding/README.md +15 -0
  8. package/.agents/skills/autoresearch-coding/SKILL.md +101 -0
  9. package/.agents/skills/autoresearch-coding/references/experiment-contract.md +13 -0
  10. package/.agents/skills/autoresearch-coding/references/metric-extraction.md +8 -0
  11. package/.agents/skills/autoresearch-coding/references/result-ledger.md +15 -0
  12. package/.agents/skills/autoresearch-coding/scripts/log_result.py +24 -0
  13. package/.agents/skills/autoresearch-coding/scripts/run_logged.py +30 -0
  14. package/.agents/skills/clearthought/SKILL.md +100 -0
  15. package/.agents/skills/clearthought/examples/decision-framework.md +441 -0
  16. package/.agents/skills/clearthought/examples/metagame-examples.md +536 -0
  17. package/.agents/skills/clearthought/examples/sequential-thinking.md +380 -0
  18. package/.agents/skills/clearthought/references/output-schemas.md +494 -0
  19. package/.agents/skills/clearthought/references/parameter-reference.md +482 -0
  20. package/.agents/skills/coding-level/SKILL.md +27 -0
  21. package/.agents/skills/coding-level/references/level-0.md +131 -0
  22. package/.agents/skills/coding-level/references/level-1.md +118 -0
  23. package/.agents/skills/coding-level/references/level-2.md +140 -0
  24. package/.agents/skills/coding-level/references/level-3.md +142 -0
  25. package/.agents/skills/coding-level/references/level-4.md +152 -0
  26. package/.agents/skills/coding-level/references/level-5.md +84 -0
  27. package/.agents/skills/daily-workflow-curator/SKILL.md +52 -0
  28. package/.agents/skills/memento/SKILL.md +36 -0
  29. package/.agents/skills/reviewing-4p-priorities/SKILL.md +72 -0
  30. package/.agents/skills/reviewing-4p-priorities/examples.md +298 -0
  31. package/.agents/skills/sequential-thinking/SKILL.md +106 -0
  32. package/.agents/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  33. package/.agents/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  34. package/.agents/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  35. package/.agents/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  36. package/.agents/skills/sequential-thinking/references/output-schema.md +483 -0
  37. package/.agents/skills/sequential-thinking/references/parameters.md +463 -0
  38. package/.agents/skills/sequential-thinking/references/patterns.md +666 -0
  39. package/.agents/skills/vibekit-init/SKILL.md +52 -0
  40. package/.agents/skills/visual-design-loop/SKILL.md +103 -0
  41. package/.agents/skills/visual-design-loop/agents/openai.yaml +4 -0
  42. package/.claude/agents/code-reviewer.md +11 -0
  43. package/.claude/agents/context-architect.md +11 -0
  44. package/.claude/agents/debug-fixer.md +11 -0
  45. package/.claude/agents/hypothesis-planner.md +11 -0
  46. package/.claude/agents/implementation-hacker.md +11 -0
  47. package/.claude/agents/research-coordinator.md +11 -0
  48. package/.claude/agents/results-analyst.md +11 -0
  49. package/.claude/agents/security-reviewer.md +11 -0
  50. package/.claude/agents/test-runner.md +11 -0
  51. package/.claude/agents/workflow-curator.md +11 -0
  52. package/.claude/commands/autoresearch-coding.md +15 -0
  53. package/.claude/commands/council.md +7 -0
  54. package/.claude/commands/daily-enhance.md +7 -0
  55. package/.claude/commands/init-vibe.md +7 -0
  56. package/.claude/commands/security-scan.md +7 -0
  57. package/.claude/commands/vibe-finalize.md +7 -0
  58. package/.claude/rules/autoresearch.md +3 -0
  59. package/.claude/rules/security.md +3 -0
  60. package/.claude/rules/tooling.md +6 -0
  61. package/.claude/rules/vibe-core.md +8 -0
  62. package/.claude/settings.json +22 -0
  63. package/.claude/skills/agentshield-security-review/SKILL.md +75 -0
  64. package/.claude/skills/agentshield-security-review/agents/openai.yaml +5 -0
  65. package/.claude/skills/agentshield-security-review/references/native-install.md +97 -0
  66. package/.claude/skills/agentshield-security-review/references/report-template.md +54 -0
  67. package/.claude/skills/agentshield-security-review/references/review-checklist.md +45 -0
  68. package/.claude/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
  69. package/.claude/skills/autoresearch-coding/README.md +15 -0
  70. package/.claude/skills/autoresearch-coding/SKILL.md +101 -0
  71. package/.claude/skills/autoresearch-coding/references/experiment-contract.md +13 -0
  72. package/.claude/skills/autoresearch-coding/references/metric-extraction.md +8 -0
  73. package/.claude/skills/autoresearch-coding/references/result-ledger.md +15 -0
  74. package/.claude/skills/autoresearch-coding/scripts/log_result.py +24 -0
  75. package/.claude/skills/autoresearch-coding/scripts/run_logged.py +30 -0
  76. package/.claude/skills/clearthought/SKILL.md +100 -0
  77. package/.claude/skills/clearthought/examples/decision-framework.md +441 -0
  78. package/.claude/skills/clearthought/examples/metagame-examples.md +536 -0
  79. package/.claude/skills/clearthought/examples/sequential-thinking.md +380 -0
  80. package/.claude/skills/clearthought/references/output-schemas.md +494 -0
  81. package/.claude/skills/clearthought/references/parameter-reference.md +482 -0
  82. package/.claude/skills/coding-level/SKILL.md +27 -0
  83. package/.claude/skills/coding-level/references/level-0.md +131 -0
  84. package/.claude/skills/coding-level/references/level-1.md +118 -0
  85. package/.claude/skills/coding-level/references/level-2.md +140 -0
  86. package/.claude/skills/coding-level/references/level-3.md +142 -0
  87. package/.claude/skills/coding-level/references/level-4.md +152 -0
  88. package/.claude/skills/coding-level/references/level-5.md +84 -0
  89. package/.claude/skills/daily-workflow-curator/SKILL.md +52 -0
  90. package/.claude/skills/memento/SKILL.md +36 -0
  91. package/.claude/skills/reviewing-4p-priorities/SKILL.md +72 -0
  92. package/.claude/skills/reviewing-4p-priorities/examples.md +298 -0
  93. package/.claude/skills/sequential-thinking/SKILL.md +106 -0
  94. package/.claude/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  95. package/.claude/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  96. package/.claude/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  97. package/.claude/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  98. package/.claude/skills/sequential-thinking/references/output-schema.md +483 -0
  99. package/.claude/skills/sequential-thinking/references/parameters.md +463 -0
  100. package/.claude/skills/sequential-thinking/references/patterns.md +666 -0
  101. package/.claude/skills/vibekit-init/SKILL.md +52 -0
  102. package/.claude/skills/visual-design-loop/SKILL.md +103 -0
  103. package/.claude/skills/visual-design-loop/agents/openai.yaml +4 -0
  104. package/.codex/README.md +11 -0
  105. package/.codex/config.example.toml +8 -0
  106. package/.codex-plugin/plugin.json +10 -0
  107. package/.cursor/commands/autoresearch-coding.md +11 -0
  108. package/.cursor/commands/council.md +3 -0
  109. package/.cursor/commands/daily-enhance.md +3 -0
  110. package/.cursor/commands/init-vibe.md +3 -0
  111. package/.cursor/commands/security-scan.md +3 -0
  112. package/.cursor/commands/vibe-finalize.md +3 -0
  113. package/.cursor/rules/001-vibe-core.mdc +6 -0
  114. package/.cursor/rules/010-init.mdc +7 -0
  115. package/.cursor/rules/020-security-agentshield.mdc +7 -0
  116. package/.cursor/rules/030-autoresearch-loop.mdc +7 -0
  117. package/.cursor/settings.json +22 -0
  118. package/.cursor/skills/clearthought/SKILL.md +100 -0
  119. package/.cursor/skills/clearthought/examples/decision-framework.md +441 -0
  120. package/.cursor/skills/clearthought/examples/metagame-examples.md +536 -0
  121. package/.cursor/skills/clearthought/examples/sequential-thinking.md +380 -0
  122. package/.cursor/skills/clearthought/references/output-schemas.md +494 -0
  123. package/.cursor/skills/clearthought/references/parameter-reference.md +482 -0
  124. package/.cursor/skills/coding-level/SKILL.md +27 -0
  125. package/.cursor/skills/coding-level/references/level-0.md +131 -0
  126. package/.cursor/skills/coding-level/references/level-1.md +118 -0
  127. package/.cursor/skills/coding-level/references/level-2.md +140 -0
  128. package/.cursor/skills/coding-level/references/level-3.md +142 -0
  129. package/.cursor/skills/coding-level/references/level-4.md +152 -0
  130. package/.cursor/skills/coding-level/references/level-5.md +84 -0
  131. package/.cursor/skills/memento/SKILL.md +36 -0
  132. package/.cursor/skills/reviewing-4p-priorities/SKILL.md +72 -0
  133. package/.cursor/skills/reviewing-4p-priorities/examples.md +298 -0
  134. package/.cursor/skills/sequential-thinking/SKILL.md +106 -0
  135. package/.cursor/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  136. package/.cursor/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  137. package/.cursor/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  138. package/.cursor/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  139. package/.cursor/skills/sequential-thinking/references/output-schema.md +483 -0
  140. package/.cursor/skills/sequential-thinking/references/parameters.md +463 -0
  141. package/.cursor/skills/sequential-thinking/references/patterns.md +666 -0
  142. package/.vbkit-commands/autoresearch-coding.md +11 -0
  143. package/.vbkit-commands/council.md +3 -0
  144. package/.vbkit-commands/daily-enhance.md +3 -0
  145. package/.vbkit-commands/init-vibe.md +3 -0
  146. package/.vbkit-commands/security-scan.md +3 -0
  147. package/.vbkit-commands/vibe-finalize.md +3 -0
  148. package/.vbkit-docs/AUTORESEARCH_LEDGER.md +11 -0
  149. package/.vbkit-docs/BACKBONE_REFERENCE.md +59 -0
  150. package/.vbkit-docs/INSTALL.md +120 -0
  151. package/.vbkit-docs/RESEARCH_NOTES.md +22 -0
  152. package/.vbkit-docs/SECURITY_MODEL.md +40 -0
  153. package/.vbkit-docs/TOOLING_GUIDE.md +22 -0
  154. package/.vbkit-docs/backbone.schema.json +110 -0
  155. package/.vbkit-docs/templates/CONTEXT_TEMPLATE.md +47 -0
  156. package/.vbkit-docs/templates/PRD_TEMPLATE.md +48 -0
  157. package/.vbkit-scripts/agentshield-probe.mjs +22 -0
  158. package/.vbkit-scripts/daily-enhance.mjs +62 -0
  159. package/.vbkit-scripts/doctor.mjs +323 -0
  160. package/.vbkit-scripts/init-backbone.mjs +628 -0
  161. package/.vbkit-scripts/mvck.mjs +444 -0
  162. package/.vbkit-scripts/pack-dry-run.mjs +16 -0
  163. package/.vbkit-scripts/test-install.mjs +118 -0
  164. package/.vbkit-scripts/validate-kit.mjs +419 -0
  165. package/.vbkit-scripts/vibekit-finalize.mjs +185 -0
  166. package/AGENTS.md +60 -0
  167. package/CHANGELOG.md +34 -0
  168. package/CLAUDE-template.md +52 -0
  169. package/CODE_OF_CONDUCT.md +18 -0
  170. package/CONTRIBUTING.md +28 -0
  171. package/FIRST_PROMPT.md +54 -0
  172. package/FIRST_TIME_INIT.md +165 -0
  173. package/LICENSE +21 -0
  174. package/README.md +493 -0
  175. package/README.vi.md +431 -0
  176. package/SECURITY.md +28 -0
  177. package/backbone.yml +103 -0
  178. package/bin/mvck.js +2 -0
  179. package/bin/vibe-kit.js +2 -0
  180. package/install.ps1 +14 -0
  181. package/install.sh +8 -0
  182. package/package.json +92 -0
  183. package/skills/agentshield-security-review/SKILL.md +75 -0
  184. package/skills/agentshield-security-review/agents/openai.yaml +5 -0
  185. package/skills/agentshield-security-review/references/native-install.md +97 -0
  186. package/skills/agentshield-security-review/references/report-template.md +54 -0
  187. package/skills/agentshield-security-review/references/review-checklist.md +45 -0
  188. package/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
  189. package/skills/autoresearch-coding/README.md +15 -0
  190. package/skills/autoresearch-coding/SKILL.md +101 -0
  191. package/skills/autoresearch-coding/references/experiment-contract.md +13 -0
  192. package/skills/autoresearch-coding/references/metric-extraction.md +8 -0
  193. package/skills/autoresearch-coding/references/result-ledger.md +15 -0
  194. package/skills/autoresearch-coding/scripts/log_result.py +24 -0
  195. package/skills/autoresearch-coding/scripts/run_logged.py +30 -0
  196. package/skills/clearthought/SKILL.md +100 -0
  197. package/skills/clearthought/examples/decision-framework.md +441 -0
  198. package/skills/clearthought/examples/metagame-examples.md +536 -0
  199. package/skills/clearthought/examples/sequential-thinking.md +380 -0
  200. package/skills/clearthought/references/output-schemas.md +494 -0
  201. package/skills/clearthought/references/parameter-reference.md +482 -0
  202. package/skills/coding-level/SKILL.md +27 -0
  203. package/skills/coding-level/references/level-0.md +131 -0
  204. package/skills/coding-level/references/level-1.md +118 -0
  205. package/skills/coding-level/references/level-2.md +140 -0
  206. package/skills/coding-level/references/level-3.md +142 -0
  207. package/skills/coding-level/references/level-4.md +152 -0
  208. package/skills/coding-level/references/level-5.md +84 -0
  209. package/skills/daily-workflow-curator/SKILL.md +52 -0
  210. package/skills/memento/SKILL.md +36 -0
  211. package/skills/reviewing-4p-priorities/SKILL.md +72 -0
  212. package/skills/reviewing-4p-priorities/examples.md +298 -0
  213. package/skills/sequential-thinking/SKILL.md +106 -0
  214. package/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  215. package/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  216. package/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  217. package/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  218. package/skills/sequential-thinking/references/output-schema.md +483 -0
  219. package/skills/sequential-thinking/references/parameters.md +463 -0
  220. package/skills/sequential-thinking/references/patterns.md +666 -0
  221. package/skills/vibekit-init/SKILL.md +52 -0
  222. package/skills/visual-design-loop/SKILL.md +103 -0
  223. package/skills/visual-design-loop/agents/openai.yaml +4 -0
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "minimal-vibe-coding-kit",
3
+ "version": "0.3.0",
4
+ "description": "Project-agnostic AI coding workflow kit for Claude Code, Cursor, and Codex with AgentShield security review.",
5
+ "type": "module",
6
+ "bin": {
7
+ "minimal-vibe-coding-kit": "./bin/mvck.js",
8
+ "mvck": "./bin/mvck.js",
9
+ "vibe-kit": "./bin/vibe-kit.js"
10
+ },
11
+ "scripts": {
12
+ "install:repo": "node .vbkit-scripts/mvck.mjs install",
13
+ "init:backbone": "node .vbkit-scripts/init-backbone.mjs . --propose",
14
+ "doctor": "node .vbkit-scripts/doctor.mjs .",
15
+ "daily": "node .vbkit-scripts/daily-enhance.mjs . --write-report",
16
+ "check:syntax": "node --check .vbkit-scripts/mvck.mjs && node --check .vbkit-scripts/init-backbone.mjs && node --check .vbkit-scripts/daily-enhance.mjs && node --check .vbkit-scripts/validate-kit.mjs && node --check .vbkit-scripts/doctor.mjs && node --check .vbkit-scripts/test-install.mjs && node --check .vbkit-scripts/agentshield-probe.mjs && node --check .vbkit-scripts/pack-dry-run.mjs && node --check .vbkit-scripts/vibekit-finalize.mjs && node --check bin/mvck.js && node --check bin/vibe-kit.js",
17
+ "test:install": "node .vbkit-scripts/test-install.mjs",
18
+ "test": "npm run check:syntax && npm run test:install && npm run validate",
19
+ "validate": "node .vbkit-scripts/validate-kit.mjs .",
20
+ "security:probe": "node .vbkit-scripts/agentshield-probe.mjs .",
21
+ "pack:dry-run": "node .vbkit-scripts/pack-dry-run.mjs",
22
+ "validate:all": "npm test && npm run security:probe && npm run pack:dry-run",
23
+ "pack:repo": "node .vbkit-scripts/validate-kit.mjs . && npm pack"
24
+ },
25
+ "keywords": [
26
+ "vibe-coding",
27
+ "claude-code",
28
+ "cursor",
29
+ "codex",
30
+ "agents",
31
+ "skills",
32
+ "agentshield"
33
+ ],
34
+ "license": "MIT",
35
+ "engines": {
36
+ "node": ">=18"
37
+ },
38
+ "files": [
39
+ "bin/",
40
+ ".vbkit-scripts/",
41
+ "skills/",
42
+ ".vbkit-commands/",
43
+ ".claude/agents/",
44
+ ".claude/commands/",
45
+ ".claude/rules/",
46
+ ".claude/settings.json",
47
+ ".claude/skills/autoresearch-coding/",
48
+ ".claude/skills/agentshield-security-review/",
49
+ ".claude/skills/daily-workflow-curator/",
50
+ ".claude/skills/vibekit-init/",
51
+ ".claude/skills/clearthought/",
52
+ ".claude/skills/sequential-thinking/",
53
+ ".claude/skills/reviewing-4p-priorities/",
54
+ ".claude/skills/visual-design-loop/",
55
+ ".claude/skills/memento/",
56
+ ".claude/skills/coding-level/",
57
+ ".cursor/rules/",
58
+ ".cursor/commands/",
59
+ ".cursor/settings.json",
60
+ ".cursor/skills/clearthought/",
61
+ ".cursor/skills/sequential-thinking/",
62
+ ".cursor/skills/reviewing-4p-priorities/",
63
+ ".cursor/skills/memento/",
64
+ ".cursor/skills/coding-level/",
65
+ ".agents/",
66
+ ".codex/",
67
+ ".codex-plugin/",
68
+ ".vbkit-docs/",
69
+ "AGENTS.md",
70
+ "CLAUDE-template.md",
71
+ "FIRST_TIME_INIT.md",
72
+ "FIRST_PROMPT.md",
73
+ "backbone.yml",
74
+ "install.sh",
75
+ "install.ps1",
76
+ "README.md",
77
+ "README.vi.md",
78
+ "SECURITY.md",
79
+ "CONTRIBUTING.md",
80
+ "CODE_OF_CONDUCT.md",
81
+ "LICENSE",
82
+ "CHANGELOG.md"
83
+ ],
84
+ "repository": {
85
+ "type": "git",
86
+ "url": "git+https://github.com/giang6283623/minimal-vibe-coding-kit.git"
87
+ },
88
+ "bugs": {
89
+ "url": "https://github.com/giang6283623/minimal-vibe-coding-kit/issues"
90
+ },
91
+ "homepage": "https://github.com/giang6283623/minimal-vibe-coding-kit#readme"
92
+ }
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: agentshield-security-review
3
+ description: repository-native security review workflow for Claude Code and Codex projects using the AgentShield concept. Use when auditing or hardening agent configuration, skills, prompts, hooks, MCP servers, permissions, slash commands, Codex plugin files, Claude plugin files, AGENTS.md, CLAUDE.md, or repository-level AI coding-agent surfaces. Prefer this skill before merging changes to .claude, .codex, .codex-plugin, .claude-plugin, .agents, skills, .vbkit-commands, .vbkit-scripts, hooks, mcp configs, or generated code that touches agent execution.
4
+ ---
5
+
6
+ # AgentShield Security Review
7
+
8
+ Use this skill to run an AgentShield-style review that is native to both Claude Code and Codex repositories. Treat the repo root as the source of truth, then inspect agent surfaces before normal code review.
9
+
10
+ ## Core rule
11
+
12
+ Do not invent findings. Prefer deterministic scanner output when available, then add reviewer judgment separately. Clearly label each finding as `scanner-backed`, `manual-confirmed`, or `manual-suspected`.
13
+
14
+ ## Standard workflow
15
+
16
+ 1. Identify the repo root and active harness surfaces.
17
+ 2. Run `node .vbkit-scripts/agentshield-probe.mjs .` to inventory Claude, Codex, shared skills, hooks, MCP, commands, and repo instruction files.
18
+ 3. If Node/npm is available, run AgentShield from the repo root:
19
+ ```bash
20
+ npx ecc-agentshield scan --path . --format text
21
+ ```
22
+ 4. If JSON is needed for CI or automation, run:
23
+ ```bash
24
+ npx ecc-agentshield scan --path . --format json
25
+ ```
26
+ 5. If safe auto-fixes are requested, first summarize the proposed edits, then run:
27
+ ```bash
28
+ npx ecc-agentshield scan --path . --fix
29
+ ```
30
+ 6. Re-run the scan after fixes and report before/after score, severity counts, and changed files.
31
+ 7. If AgentShield is unavailable, perform the fallback manual review in `references/review-checklist.md`.
32
+
33
+ ## Harness-native layout
34
+
35
+ Use a shared root skill where possible:
36
+
37
+ - `skills/agentshield-security-review/SKILL.md` is the canonical workflow.
38
+ - Claude Code may add a slash-command shim in `.vbkit-commands/security-scan.md` or `.claude/commands/security-scan.md`.
39
+ - Codex should consume the same root `skills/` directory through `.codex-plugin/plugin.json` or the repo's native skill/plugin mechanism.
40
+ - Do not duplicate divergent Claude and Codex skill bodies. Duplication causes drift.
41
+
42
+ See `references/native-install.md` for copy-ready Claude and Codex snippets.
43
+
44
+ ## What to inspect
45
+
46
+ Prioritize runtime-active files over examples and docs:
47
+
48
+ 1. `CLAUDE.md`, `AGENTS.md`, `.github/copilot-instructions.md`
49
+ 2. `.claude/settings.json`, `.claude/settings.local.json`, `.claude/agents/*.md`, `.claude/commands/*.md`
50
+ 3. `.codex/config.toml`, `.codex/`, `.codex-plugin/plugin.json`
51
+ 4. `.agents/`, `agents/`, `skills/`, `.vbkit-commands/`, `.vbkit-scripts/`, `hooks/`
52
+ 5. `.mcp.json`, `mcp.json`, `mcp-configs/*.json`
53
+ 6. installer scripts, CI workflows, package scripts, and generated plugin manifests
54
+
55
+ ## Output contract
56
+
57
+ Return a concise report with:
58
+
59
+ - Security grade/score if AgentShield provides one.
60
+ - Commands run and whether the scan was `npx`, local, CI, or fallback-manual.
61
+ - Active harness surfaces found.
62
+ - Critical/high findings with exact paths, severity, confidence, exploit impact, and fix.
63
+ - Medium/low findings grouped separately.
64
+ - Safe auto-fix candidates versus manual-only changes.
65
+ - Claude-native and Codex-native installation notes when the repo lacks one of them.
66
+ - Final remediation order.
67
+
68
+ Use `references/report-template.md` for the preferred report format.
69
+
70
+ ## Safety constraints
71
+
72
+ - Never print full secrets. Show only the file path and key name or a redacted prefix/suffix.
73
+ - Do not run untrusted hook scripts, MCP server commands, package scripts, or installer scripts just to inspect them.
74
+ - Do not apply `--fix` without first stating the planned edit types.
75
+ - Treat wildcard shell permissions, unpinned `npx`, shell-running MCP servers, prompt-injection instructions, and silent hook failures as high-risk until proven otherwise.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: AgentShield Security Review
3
+ short_description: Audit Claude, Codex, skills, hooks, MCP, and agent config surfaces.
4
+ icon: shield
5
+ brand_color: "#334155"
@@ -0,0 +1,97 @@
1
+ # Native Claude Code and Codex Install Pattern
2
+
3
+ Keep one canonical skill and add thin harness adapters.
4
+
5
+ ## Shared skill location
6
+
7
+ Recommended repo layout:
8
+
9
+ ```text
10
+ skills/agentshield-security-review/SKILL.md
11
+ skills/agentshield-security-review/references/review-checklist.md
12
+ skills/agentshield-security-review/references/report-template.md
13
+ skills/agentshield-security-review/scripts/agentshield_repo_probe.py
14
+ .vbkit-commands/security-scan.md
15
+ .codex-plugin/plugin.json
16
+ .claude-plugin/plugin.json
17
+ ```
18
+
19
+ ## Claude Code command shim
20
+
21
+ Create `.vbkit-commands/security-scan.md` or `.claude/commands/security-scan.md`:
22
+
23
+ ```markdown
24
+ ---
25
+ description: Run an AgentShield-style security scan against agent, hook, MCP, permission, skill, command, Claude, and Codex surfaces.
26
+ agent: security-reviewer
27
+ subtask: true
28
+ ---
29
+
30
+ # Security Scan
31
+
32
+ Run the shared `agentshield-security-review` skill against the current repo or the target path.
33
+
34
+ ## Usage
35
+
36
+ `/security-scan [path] [--format text|json|markdown|html] [--min-severity low|medium|high|critical] [--fix]`
37
+
38
+ Prefer the deterministic scanner:
39
+
40
+ ```bash
41
+ npx ecc-agentshield scan --path "${TARGET_PATH:-.}" --format text
42
+ ```
43
+
44
+ If `--fix` is requested, summarize planned safe fixes first, apply only scanner-marked safe fixes, then re-run the scan.
45
+
46
+ Return grade, score, severity counts, active paths, critical/high findings, and remediation order.
47
+ ```
48
+
49
+ ## Codex plugin pointer
50
+
51
+ Use the repo-level Codex plugin manifest to point Codex at the same `skills/` directory. Exact schema may vary by Codex plugin version, so preserve the existing repo schema and ensure it references root skills rather than a copied skill body.
52
+
53
+ Example intent:
54
+
55
+ ```json
56
+ {
57
+ "name": "your-repo",
58
+ "version": "0.1.0",
59
+ "skills": "./skills",
60
+ "mcp": "./.mcp.json"
61
+ }
62
+ ```
63
+
64
+ ## CI gate
65
+
66
+ Add a GitHub Actions job when you want agent config changes to fail builds:
67
+
68
+ ```yaml
69
+ name: agent-security
70
+ on:
71
+ pull_request:
72
+ paths:
73
+ - "CLAUDE.md"
74
+ - "AGENTS.md"
75
+ - ".claude/**"
76
+ - ".codex/**"
77
+ - ".codex-plugin/**"
78
+ - ".claude-plugin/**"
79
+ - ".agents/**"
80
+ - "agents/**"
81
+ - "skills/**"
82
+ - ".vbkit-commands/**"
83
+ - "hooks/**"
84
+ - ".mcp.json"
85
+ - "mcp-configs/**"
86
+
87
+ jobs:
88
+ agentshield:
89
+ runs-on: ubuntu-latest
90
+ steps:
91
+ - uses: actions/checkout@v4
92
+ - uses: actions/setup-node@v4
93
+ with:
94
+ node-version: "20"
95
+ - name: Run AgentShield
96
+ run: npx ecc-agentshield scan --path . --format text --min-severity medium
97
+ ```
@@ -0,0 +1,54 @@
1
+ # Security Review Report Template
2
+
3
+ Use this structure for final reports.
4
+
5
+ ## Summary
6
+
7
+ - Scan mode:
8
+ - Grade/score:
9
+ - Repo root:
10
+ - Harnesses found:
11
+ - Overall risk:
12
+
13
+ ## Commands run
14
+
15
+ ```bash
16
+ # commands here
17
+ ```
18
+
19
+ ## Active surfaces found
20
+
21
+ | Surface | Paths | Runtime confidence |
22
+ |---|---|---|
23
+ | Claude | | |
24
+ | Codex | | |
25
+ | Shared skills | | |
26
+ | Hooks | | |
27
+ | MCP | | |
28
+ | CI/plugin | | |
29
+
30
+ ## Critical/high findings
31
+
32
+ | Severity | Confidence | Path | Issue | Why it matters | Fix | Auto-fix safe? |
33
+ |---|---|---|---|---|---|---|
34
+
35
+ ## Medium/low findings
36
+
37
+ Group by theme: permissions, hooks, MCP, prompts, skills, .vbkit-docs/examples.
38
+
39
+ ## Remediation order
40
+
41
+ 1. Remove or rotate exposed secrets.
42
+ 2. Restrict shell/tool permissions.
43
+ 3. Pin or sandbox MCP/package execution.
44
+ 4. Harden hooks and quote/sanitize variables.
45
+ 5. Add CI gate.
46
+ 6. Remove duplicate divergent Claude/Codex skill copies.
47
+ 7. Re-run scan and confirm grade improvement.
48
+
49
+ ## Native integration status
50
+
51
+ - Claude Code:
52
+ - Codex:
53
+ - Shared skill source:
54
+ - Drift risks:
@@ -0,0 +1,45 @@
1
+ # AgentShield Manual Review Checklist
2
+
3
+ Use this checklist when `ecc-agentshield` is unavailable or when reviewing scanner output.
4
+
5
+ ## Critical findings
6
+
7
+ Flag as critical when a runtime-active agent surface contains any of these:
8
+
9
+ - Hardcoded API keys, tokens, private keys, passwords, or webhook secrets.
10
+ - Unrestricted shell permissions such as `Bash` wildcard permissions, `bash -c` passthroughs, or unrestricted command execution in hooks.
11
+ - Hook command injection risk from unsanitized variables such as file paths, branch names, issue titles, PR text, or model-provided arguments.
12
+ - MCP server definitions that execute shell commands, pull remote code dynamically, or expose broad filesystem/network access without pinning or sandboxing.
13
+ - Instructions that tell the agent to ignore system/developer safety boundaries or auto-run commands from untrusted content.
14
+
15
+ ## High findings
16
+
17
+ Flag as high when active config contains:
18
+
19
+ - Missing deny lists for destructive commands.
20
+ - Broad tool permissions for agents that only need read/review access.
21
+ - `npx` auto-yes flags, curl-piped-to-shell, or remote install during runtime without pinning/checksum.
22
+ - Agents that ingest untrusted web/issues/PRs without prompt-injection boundaries.
23
+ - Hooks that send repository content to remote endpoints without explicit disclosure.
24
+
25
+ ## Medium findings
26
+
27
+ Flag as medium when active config contains:
28
+
29
+ - Silent failure suppression such as always-success shell fallbacks, stderr suppression, or broad `try/catch` around security checks.
30
+ - Missing descriptions for MCP servers or agent purposes.
31
+ - Duplicate Claude/Codex skill copies likely to drift.
32
+ - Lack of CI security scan for agent config changes.
33
+
34
+ ## Low/info findings
35
+
36
+ Flag as low/info for documentation gaps, inactive examples, or optional templates that do not affect runtime.
37
+
38
+ ## Review confidence
39
+
40
+ Use these labels:
41
+
42
+ - `active-runtime`: loaded by current harness or plugin manifest.
43
+ - `repo-template`: checked-in template that users may copy.
44
+ - `documentation-example`: not active unless copied.
45
+ - `unknown`: unable to determine loading path.
@@ -0,0 +1,110 @@
1
+ #!/usr/bin/env python3
2
+ """Inventory AgentShield-relevant AI coding-agent surfaces in a repository.
3
+
4
+ This script is intentionally read-only. It does not execute hooks, package scripts,
5
+ MCP servers, or installer commands.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ import argparse
10
+ import json
11
+ from pathlib import Path
12
+ from typing import Iterable
13
+
14
+ PATTERNS = {
15
+ "repo_instructions": ["CLAUDE.md", "AGENTS.md", ".github/copilot-instructions.md"],
16
+ "claude": [".claude", ".claude-plugin", "agents"],
17
+ "codex": [".codex", ".codex-plugin"],
18
+ "shared_skills": ["skills", ".agents/skills"],
19
+ "shared_commands": [".vbkit-commands"],
20
+ "kit_scripts": [".vbkit-scripts"],
21
+ "hooks": ["hooks", ".claude/hooks", ".agents/hooks"],
22
+ "mcp": [".mcp.json", "mcp.json", "mcp-configs"],
23
+ "ci": [".github/workflows"],
24
+ }
25
+
26
+ SUSPICIOUS_TEXT = [
27
+ "Bash" + "(*)",
28
+ "npx" + " -y",
29
+ "curl" + " | sh",
30
+ "wget" + " | sh",
31
+ "||" + " true",
32
+ "2>" + "/dev/null",
33
+ "ignore previous" + " instructions",
34
+ "ignore all previous" + " instructions",
35
+ "ANTHROPIC" + "_API_KEY=",
36
+ "OPENAI" + "_API_KEY=",
37
+ "GITHUB" + "_TOKEN=",
38
+ ]
39
+
40
+
41
+ def iter_files(path: Path) -> Iterable[Path]:
42
+ if path.is_file():
43
+ yield path
44
+ elif path.is_dir():
45
+ for child in path.rglob("*"):
46
+ if child.is_file() and ".git" not in child.parts:
47
+ yield child
48
+
49
+
50
+ def safe_read(path: Path, limit: int = 200_000) -> str:
51
+ try:
52
+ data = path.read_bytes()[:limit]
53
+ return data.decode("utf-8", errors="ignore")
54
+ except OSError:
55
+ return ""
56
+
57
+
58
+ def main() -> int:
59
+ parser = argparse.ArgumentParser(description="Inventory Claude/Codex AgentShield surfaces")
60
+ parser.add_argument("path", nargs="?", default=".", help="Repository root")
61
+ parser.add_argument("--json", action="store_true", help="Emit JSON")
62
+ args = parser.parse_args()
63
+
64
+ root = Path(args.path).resolve()
65
+ result: dict[str, object] = {"repo_root": str(root), "surfaces": {}, "suspicious_markers": []}
66
+
67
+ surfaces: dict[str, list[str]] = {}
68
+ suspicious: list[dict[str, str]] = []
69
+
70
+ for category, patterns in PATTERNS.items():
71
+ found: list[str] = []
72
+ for pattern in patterns:
73
+ candidate = root / pattern
74
+ if candidate.exists():
75
+ found.append(str(candidate.relative_to(root)))
76
+ for file_path in iter_files(candidate):
77
+ if file_path.suffix.lower() not in {".md", ".json", ".toml", ".yaml", ".yml", ".sh", ".js", ".ts"}:
78
+ continue
79
+ text = safe_read(file_path)
80
+ for marker in SUSPICIOUS_TEXT:
81
+ if marker in text:
82
+ suspicious.append({
83
+ "path": str(file_path.relative_to(root)),
84
+ "marker": marker,
85
+ "category": category,
86
+ })
87
+ surfaces[category] = found
88
+
89
+ result["surfaces"] = surfaces
90
+ result["suspicious_markers"] = suspicious
91
+
92
+ if args.json:
93
+ print(json.dumps(result, indent=2, sort_keys=True))
94
+ else:
95
+ print(f"Repo root: {root}")
96
+ print("\nActive-looking surfaces:")
97
+ for category, paths in surfaces.items():
98
+ if paths:
99
+ print(f"- {category}: {', '.join(paths)}")
100
+ if suspicious:
101
+ print("\nSuspicious markers needing review:")
102
+ for item in suspicious:
103
+ print(f"- {item['path']} [{item['category']}]: {item['marker']}")
104
+ else:
105
+ print("\nNo built-in suspicious markers found by probe. Run AgentShield for full analysis.")
106
+ return 0
107
+
108
+
109
+ if __name__ == "__main__":
110
+ raise SystemExit(main())
@@ -0,0 +1,15 @@
1
+ # Autoresearch Coding
2
+
3
+ Metric-driven improvement loop for AI coding agents.
4
+
5
+ Example:
6
+
7
+ ```text
8
+ /autoresearch-coding goal: improve API latency; metric command: npm run bench; direction: lower; editable paths: src/api src/lib; protected paths: .env* migrations; budget: 5
9
+ ```
10
+
11
+ For this kit:
12
+
13
+ ```text
14
+ /autoresearch-coding goal: improve the kit; metric command: node .vbkit-scripts/validate-kit.mjs .; direction: higher; editable paths: .vbkit-docs .vbkit-scripts skills .vbkit-commands .claude .cursor .agents .codex-plugin; budget: 3
15
+ ```
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: autoresearch-coding
3
+ description: Run a metric-driven coding experiment loop. Use when improving a repo through repeated hypotheses, benchmark-guided changes, validation, keep/discard decisions, or safe workflow enhancement. Requires a goal, metric command, direction, editable paths, protected paths, and budget.
4
+ disable-model-invocation: true
5
+ argument-hint: goal; metric command; direction; editable paths; protected paths; budget; timeout
6
+ ---
7
+
8
+ # Autoresearch Coding Loop
9
+
10
+ Run a controlled experiment loop. Do not perform open-ended destructive work.
11
+
12
+ ## Contract
13
+
14
+ Extract or infer:
15
+
16
+ - Goal.
17
+ - Metric command.
18
+ - Direction: `lower` or `higher` is better.
19
+ - Editable paths.
20
+ - Protected paths.
21
+ - Budget, default 3.
22
+ - Timeout, default 10 minutes.
23
+
24
+ If the metric command or editable scope is missing, infer conservative defaults and show the contract before editing. If no safe metric exists, ask for one.
25
+ Always print the resolved contract before the baseline run, and label inferred fields.
26
+
27
+ For this kit itself, use:
28
+
29
+ ```text
30
+ goal: improve Minimal Vibe Coding Kit quality
31
+ metric command: node .vbkit-scripts/validate-kit.mjs .
32
+ direction: higher
33
+ editable paths: .vbkit-docs .vbkit-scripts skills .vbkit-commands .claude .cursor .agents .codex-plugin .github README.md AGENTS.md CLAUDE-template.md FIRST_TIME_INIT.md FIRST_PROMPT.md backbone.yml package.json install.sh install.ps1
34
+ protected paths: .git .env* node_modules vendor secrets lockfiles
35
+ budget: 3
36
+ ```
37
+
38
+ ## Setup
39
+
40
+ 1. Read `backbone.yml`. If `meta.template_status` is `uninitialized`, follow `FIRST_TIME_INIT.md` and wait for explicit approval before experiment edits.
41
+ 2. Inspect `git status --short`.
42
+ 3. If user changes exist, stop unless the user permits dirty-state experimentation.
43
+ 4. Create or switch to an experiment branch named `autoresearch/<date>-<slug>` when a git repo is available. If branch creation is blocked by permissions, ask for approval once and record any approved fallback.
44
+ 5. Create local-only paths if missing:
45
+ - `.autoresearch/logs/`
46
+ - `.autoresearch/notes/`
47
+ - `results.tsv`
48
+ 6. Initialize `results.tsv` with:
49
+
50
+ ```text
51
+ commit metric_value direction status seconds log_path description
52
+ ```
53
+
54
+ Do not commit `.autoresearch/` or `results.tsv` unless the user asks.
55
+
56
+ ## Baseline
57
+
58
+ Before edits:
59
+
60
+ 1. Run the metric command once.
61
+ 2. Save output to `.autoresearch/logs/baseline.log`.
62
+ 3. Extract a metric value using `references/metric-extraction.md`. If ambiguous, use pass/fail plus warning count and explain.
63
+ 4. Append a baseline row with status `keep`.
64
+
65
+ ## Experiment loop
66
+
67
+ For each experiment:
68
+
69
+ 1. Read the best kept result from `results.tsv`.
70
+ 2. Form one small hypothesis.
71
+ 3. Modify only editable paths.
72
+ 4. Run the metric command with timeout and log output.
73
+ 5. Decide:
74
+ - `keep`: metric improves, or equal metric with simpler safer code.
75
+ - `discard`: worse or equal without simplification.
76
+ - `crash`: command fails, times out, or no usable metric.
77
+ 6. Append a row to `results.tsv`.
78
+ 7. Keep good changes; revert discarded or crashed changes.
79
+ 8. If a crash is from a trivial patch mistake, fix once and rerun.
80
+
81
+ If a kept change touches agent surfaces such as `AGENTS.md`, `CLAUDE.md`, `.claude/**`, `.cursor/**`, `.agents/**`, `.codex-plugin/**`, `skills/**`, `.vbkit-commands/**`, `.vbkit-scripts/**`, hooks, or MCP config, run the AgentShield probe before final reporting.
82
+
83
+ ## Delegation
84
+
85
+ Use subagents when available:
86
+
87
+ - `hypothesis-planner`: next experiment idea.
88
+ - `implementation-hacker`: apply scoped patch.
89
+ - `test-runner`: run noisy commands and return metrics.
90
+ - `debug-fixer`: fix trivial crash bugs.
91
+ - `code-reviewer`: review kept changes.
92
+ - `results-analyst`: summarize ledger.
93
+ - `security-reviewer`: review agent-surface changes.
94
+
95
+ ## Stop
96
+
97
+ Stop when budget is reached, metric is missing, protected paths are needed, three unrelated crashes happen, or the user changes the goal.
98
+
99
+ ## Final report
100
+
101
+ Report baseline, best metric, kept/discarded/crashed counts, changed files, validation output, security probe result when relevant, risks, and log locations.
@@ -0,0 +1,13 @@
1
+ # Experiment contract
2
+
3
+ Required fields:
4
+
5
+ - Goal
6
+ - Metric command
7
+ - Direction: lower or higher
8
+ - Editable paths
9
+ - Protected paths
10
+ - Budget
11
+ - Timeout
12
+
13
+ The agent must print the contract before editing. If any field is inferred, label it `inferred`.
@@ -0,0 +1,8 @@
1
+ # Metric extraction
2
+
3
+ Prefer a numeric metric from the command output. If the command only returns pass/fail, score it as:
4
+
5
+ - pass: 1
6
+ - fail: 0
7
+
8
+ When warnings matter, report pass/fail plus warning count. Do not hide failures behind a single score.
@@ -0,0 +1,15 @@
1
+ # Result ledger
2
+
3
+ Use `results.tsv` with this header:
4
+
5
+ ```text
6
+ commit metric_value direction status seconds log_path description
7
+ ```
8
+
9
+ Status values:
10
+
11
+ - `keep`
12
+ - `discard`
13
+ - `crash`
14
+
15
+ Keep verbose command output in `.autoresearch/logs/`.
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env python3
2
+ import argparse
3
+ from pathlib import Path
4
+
5
+ HEADER = "commit\tmetric_value\tdirection\tstatus\tseconds\tlog_path\tdescription\n"
6
+
7
+ parser = argparse.ArgumentParser(description="Append an autoresearch result row")
8
+ parser.add_argument("--file", default="results.tsv")
9
+ parser.add_argument("--commit", required=True)
10
+ parser.add_argument("--metric", required=True)
11
+ parser.add_argument("--direction", required=True, choices=["lower", "higher"])
12
+ parser.add_argument("--status", required=True, choices=["keep", "discard", "crash"])
13
+ parser.add_argument("--seconds", required=True)
14
+ parser.add_argument("--log", required=True)
15
+ parser.add_argument("--description", required=True)
16
+ args = parser.parse_args()
17
+
18
+ path = Path(args.file)
19
+ if not path.exists():
20
+ path.write_text(HEADER, encoding="utf-8")
21
+ row = "\t".join([args.commit, args.metric, args.direction, args.status, args.seconds, args.log, args.description.replace("\t", " ")]) + "\n"
22
+ with path.open("a", encoding="utf-8") as f:
23
+ f.write(row)
24
+ print(f"logged {args.status} -> {path}")