@vesviet/agent-skills 5.6.0 → 5.6.1

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 (113) hide show
  1. package/INDEX.md +1 -1
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +1 -1
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/schemas/api-contract-spec.json +191 -191
  10. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  11. package/core/contracts/schemas/pull-request-spec.json +338 -338
  12. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  13. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  14. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  15. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  16. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  17. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  18. package/core/contracts/schemas/test-report.json +530 -530
  19. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  20. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  21. package/core/roles/system-engineer.md +465 -465
  22. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  23. package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
  24. package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
  25. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  26. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  27. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  28. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  29. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  30. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  31. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  32. package/core/skills/document/pptx/scripts/clean.py +0 -0
  33. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  34. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  35. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  36. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  37. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  38. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  39. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  40. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  41. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  42. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  43. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  44. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  45. package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
  46. package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
  47. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  48. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  49. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  50. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  51. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  52. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  53. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  54. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  55. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  56. package/core/skills/platform/web-perf/SKILL.md +151 -151
  57. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  58. package/core/skills/product/build-story-map/SKILL.md +104 -104
  59. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  60. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  61. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  62. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  63. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  64. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  65. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  66. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  67. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  68. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  69. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  70. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  71. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  72. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  73. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  74. package/core/skills/security-data/security-audit/SKILL.md +119 -119
  75. package/core/workflows/add-new-feature.md +212 -212
  76. package/core/workflows/agent-a2a-delegation.md +142 -142
  77. package/core/workflows/bug-fix.md +147 -147
  78. package/core/workflows/build-deploy.md +208 -208
  79. package/core/workflows/code-review.md +137 -137
  80. package/core/workflows/dependency-upgrade.md +193 -193
  81. package/core/workflows/feature-delivery.md +149 -149
  82. package/core/workflows/hotfix-production.md +172 -172
  83. package/core/workflows/qa-validation.md +231 -231
  84. package/core/workflows/refactoring.md +154 -154
  85. package/core/workflows/revert-deployment.md +147 -147
  86. package/core/workflows/security-incident-response.md +191 -191
  87. package/core/workflows/seo-content-lifecycle.md +91 -91
  88. package/core/workflows/service-review-release.md +223 -223
  89. package/core/workflows/setup-new-service.md +214 -214
  90. package/core/workflows/tech-repo-review.md +245 -245
  91. package/core/workflows/troubleshooting.md +241 -241
  92. package/overlays/astro-cloudflare/README.md +93 -93
  93. package/overlays/data-analyst-stack/README.md +109 -109
  94. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  95. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  96. package/overlays/ecommerce-microservices/README.md +65 -65
  97. package/overlays/go-microservices/README.md +78 -78
  98. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  99. package/overlays/laravel-filament/README.md +90 -90
  100. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  101. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  102. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  103. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  104. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  105. package/overlays/r3f-stack/README.md +89 -89
  106. package/overlays/r3f-stack/rules/stub.md +43 -43
  107. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  108. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  109. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  110. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  111. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  112. package/package.json +2 -2
  113. package/core/README.md +0 -53
@@ -1,245 +1,245 @@
1
- ---
2
- description: Holistic technical review of a repository covering architecture fitness, code quality, security posture, dependency health, and documentation completeness — not a pre-release gate but an ongoing engineering health audit
3
- ---
4
-
5
- ## Tech Repo Review Workflow
6
-
7
- Use this workflow for a comprehensive, non-release-gating technical audit of a repository. Unlike `service-review-release`, this is not triggered by a deployment — it is triggered by a need to understand the full technical health of a repo: architecture fitness, accumulated tech debt, security posture, dependency drift, and documentation gaps.
8
-
9
- ### When To Use
10
-
11
- - onboarding to an unfamiliar codebase before contributing
12
- - periodic engineering health review (quarterly, after major milestones)
13
- - assessing acquisition, handover, or ownership transfer of a repo
14
- - before planning a major refactor or architectural change
15
- - identifying tech debt that should be scheduled and tracked
16
- - security posture review outside of an active incident
17
-
18
- ### Prerequisites
19
-
20
- - access to the repository source code and history
21
- - the target review scope is defined (full repo, a subsystem, or a surface area)
22
- - relevant architecture decisions, ADRs, or standards docs are accessible if they exist
23
-
24
- ### Workflow Steps
25
-
26
- #### 1. Define Review Scope And Goals
27
-
28
- Role: **Reviewer**, **Technical Architect**
29
-
30
- Before opening any files:
31
-
32
- - what is the review goal? (onboarding, debt assessment, security posture, handover, pre-refactor)
33
- - what is in scope? (full repo, one service, one module, one architectural concern)
34
- - what risk areas are most important to the current team?
35
- - are there known problem areas to focus on first?
36
-
37
- Document the scope so findings stay proportionate to the declared goal.
38
-
39
- #### 2. Map The Repository Structure
40
-
41
- Role: **Reviewer**, **Technical Architect**
42
-
43
- Use skill: `navigate-service`
44
-
45
- Build a structural map:
46
-
47
- - entry points, main packages, and service boundaries
48
- - layering: how is the code organized (handlers, business logic, data, shared)?
49
- - cross-cutting concerns: auth, logging, config, error handling, observability
50
- - external integrations: APIs consumed, events published/consumed, datastores
51
- - CI/CD and deployment configuration: what is the pipeline and what does it validate?
52
-
53
- Note any structural anomalies: circular imports, god packages, layer violations, undocumented entry points.
54
-
55
- #### 3. Assess Architecture Fitness
56
-
57
- Role: **Technical Architect**, **Reviewer**
58
-
59
- Use skill: `navigate-service`
60
-
61
- Evaluate:
62
-
63
- - **boundary clarity**: are service or module boundaries well-defined and respected?
64
- - **dependency direction**: do dependencies point inward (stable ← unstable)? Are abstractions in the right layer?
65
- - **scalability assumptions**: are current architectural choices compatible with expected growth?
66
- - **AI/agentic system fitness**: if LLMs, agents, or MCP tools are in scope — are probabilistic behavior, context windows, and tool-call trust treated as first-class concerns?
67
- - **fitness functions**: is there automated CI enforcement of key architectural constraints, or are they advisory-only?
68
-
69
- Escalate significant structural debt as Blocking or Important findings.
70
-
71
- #### 4. Review Code Quality
72
-
73
- Role: **Reviewer**
74
-
75
- Use skill: `review-code`
76
-
77
- Sample representative areas — do not try to read every line. Focus on:
78
-
79
- - **correctness**: are there obvious logic bugs, edge case gaps, or unsafe assumptions?
80
- - **error handling**: are errors propagated correctly? Are failures visible in logs?
81
- - **test coverage**: what is the coverage strategy? Are risky paths tested?
82
- - **duplication and coupling**: is there unnecessary duplication or tight coupling that creates fragility?
83
- - **naming and readability**: can a new engineer follow the logic without the original author?
84
-
85
- Classify findings: Blocking (correctness/security), Important (quality risk), Follow-Up (tech debt).
86
-
87
- #### 5. Review Security Posture
88
-
89
- Role: **Security Engineer**, **Reviewer**
90
-
91
- Use skill: `security-audit`
92
-
93
- Assess:
94
-
95
- - **trust boundaries**: are auth and authz checks at the right layers?
96
- - **input validation**: are external inputs validated before use?
97
- - **secret handling**: are secrets in environment variables or secret managers — never hardcoded?
98
- - **dependency exposure**: do dependencies have known CVEs? Are versions pinned appropriately?
99
- - **logging safety**: is sensitive data (PII, tokens, credentials) excluded from logs?
100
- - **attack surface**: are debug routes, admin surfaces, or internal APIs exposed to untrusted networks?
101
-
102
- Do not expose real exploit details or credentials in review findings.
103
-
104
- #### 6. Assess Dependency Health
105
-
106
- Role: **Reviewer**, **Technical Architect**
107
-
108
- Check:
109
-
110
- - **version currency**: are major dependencies at reasonably current versions?
111
- - **EOL risk**: are any runtimes, frameworks, or libraries approaching end-of-life?
112
- - **CVE exposure**: run a dependency audit (for example: `npm audit`, `pip-audit`, `go mod verify`, `snyk test`, `trivy fs`)
113
- - **reachability analysis**: use **Endor Labs**, **Snyk Reachability**, or **osv-scanner** to determine if CVEs in transitive dependencies are actually reachable via the application's call graph — up to 80% of transitive CVE alerts can be safely deprioritized when the vulnerable code path is provably unreachable
114
- - **transitive risk**: are there deep transitive dependencies with supply-chain risk? Check with **Socket.dev** or **Phylum** for malicious install scripts, behavioral diffs, and typosquatting signals
115
- - **lock file integrity**: are lock files committed and consistent with the manifest?
116
- - **automation**: is **Renovate** (preferred for monorepos/polyglot) or Dependabot configured for ongoing dependency management with appropriate schedule windows and auto-merge rules for passing CI?
117
- - **SLSA provenance**: do CI-built artifacts include signed Sigstore provenance attestations (cosign / GitHub Artifact Attestations)?
118
-
119
- Classify stale or vulnerable dependencies by severity.
120
-
121
- #### 7. Review Documentation Completeness
122
-
123
- Role: **Technical Architect**, **Reviewer**
124
-
125
- Check minimum documentation:
126
-
127
- - **README**: does it explain what the service does, how to run it locally, and how to contribute?
128
- - **architecture docs**: are key design decisions documented (ADRs, diagrams, service maps)?
129
- - **operational runbook**: is there guidance for common ops tasks, health checks, and incident response?
130
- - **API contracts**: are public contracts documented and versioned?
131
- - **onboarding gap**: can a new engineer get the service running locally in under 30 minutes from the docs?
132
-
133
- Flag missing or severely outdated docs as Important or Follow-Up.
134
-
135
- #### 8. Compile And Deliver Findings
136
-
137
- Role: **Reviewer**, **Technical Architect**
138
-
139
- Use skill: `review-code`
140
-
141
- Emit `code-review-finding.json` with findings categorized:
142
-
143
- - **Blocking**: correctness bugs, active security vulnerabilities, critical structural violations
144
- - **Important**: significant tech debt, dependency EOL, missing critical docs, architecture drift
145
- - **Follow-Up**: style, readability, minor improvement opportunities
146
-
147
- For each finding:
148
- - file or module reference (when applicable)
149
- - severity classification
150
- - concrete recommendation
151
- - estimated effort (low/medium/high) when useful for scheduling
152
-
153
- Produce a summary with:
154
- - overall health signal: Healthy / Needs Attention / Significant Risk
155
- - top 3 findings requiring immediate action
156
- - recommended remediation roadmap
157
-
158
- ### Review Output Template
159
-
160
- ```markdown
161
- ## Tech Repo Review: <repo>
162
-
163
- Date: YYYY-MM-DD
164
- Reviewer: <name>
165
- Scope: <full repo | subsystem | surface>
166
- Overall Health: Healthy / Needs Attention / Significant Risk
167
-
168
- ### Issue Summary
169
- - Blocking: <count>
170
- - Important: <count>
171
- - Follow-Up: <count>
172
-
173
- ### Blocking Issues
174
- 1. <file or module>: <description and recommendation>
175
-
176
- ### Important Issues
177
- 1. <area>: <description and recommendation>
178
-
179
- ### Architecture Notes
180
- <Key observations about structure, boundaries, fitness>
181
-
182
- ### Security Posture
183
- <Key observations about trust boundaries, exposure, CVEs>
184
-
185
- ### Dependency Health
186
- <Key observations about versions, EOL, lock file>
187
-
188
- ### Documentation Gaps
189
- <Key missing or outdated docs>
190
-
191
- ### Recommended Roadmap
192
- 1. Immediate: <action>
193
- 2. Short-term (next sprint): <action>
194
- 3. Planned (next quarter): <action>
195
- ```
196
-
197
- ### Checklist
198
-
199
- - [ ] review scope and goals documented
200
- - [ ] repository structure mapped
201
- - [ ] architecture fitness assessed — boundary clarity, dependency direction, AI fitness
202
- - [ ] code quality sampled — correctness, error handling, test coverage
203
- - [ ] security posture reviewed — trust boundaries, secrets, CVEs, attack surface
204
- - [ ] dependency health audited — versions, EOL, CVEs, lock file
205
- - [ ] documentation completeness checked
206
- - [ ] code-review-finding.json emitted with Blocking/Important/Follow-Up classification
207
- - [ ] overall health signal declared and remediation roadmap provided
208
-
209
- ### Related Workflows
210
-
211
- - [service-review-release](service-review-release.md)
212
- - [security-incident-response](security-incident-response.md)
213
- - [refactoring](refactoring.md)
214
- - [dependency-upgrade](dependency-upgrade.md)
215
-
216
- ### Related Skills
217
-
218
- - **navigate-service**: Map the repository structure before reviewing it
219
- - **review-code**: Review code quality and correctness across the codebase
220
- - **review-service**: Full-service release readiness pass when pre-release scope is needed
221
- - **security-audit**: Review security posture, trust boundaries, and attack surface
222
- - **write-tech-radar**: Capture technology health and direction for the team
223
-
224
- ### Failure Modes
225
-
226
- - **Audit scope too narrow**: the audit covers only one layer (e.g., code) and misses infra or identity. **Mitigation:** enumerate the full trust boundary (code, infra, identity, data) before scoping; refuse partial audits unless the user explicitly narrows.
227
- - **Finding hidden in summary**: a high-severity finding is buried in the audit report. **Mitigation:** lead with severity-sorted findings; never present severity-3+ as appendix items.
228
- - **No repro path**: a finding has no reproducible evidence. **Mitigation:** every finding must include a path, a command, and the expected vs actual output.
229
- - **Remediation not validated**: a finding is closed without re-running the scan or test. **Mitigation:** re-run the audit after every remediation; record the before/after evidence.
230
- - **OWASP ASI not applied**: a finding is reported without referencing the OWASP ASI item. **Mitigation:** tag every finding with the relevant ASI01-ASI10 item and the agentic threat surface.
231
-
232
- ### Output Contracts
233
-
234
- When this workflow produces a structured handoff, emit:
235
-
236
- - **`contracts/schemas/code-review-finding.json`** (adapted for repo audit) — for each finding, capture severity, blast radius, remediation, and the validation re-run evidence.
237
- - **`contracts/schemas/architecture-options.json`** — when the audit surfaces 2+ viable options that require explicit comparison before commitment.
238
- - **`contracts/schemas/security-audit.json`** (or similar) — when the audit closes; capture the trust boundary, the threat model, the findings, and the residual risk.
239
-
240
- ### Security Guardrails (OWASP ASI)
241
-
242
- - **ASI03 Identity & Privilege Abuse**: the audit must cover the full identity surface; reject audits that skip the credential rotation check or the auth scope review.
243
- - **ASI04 Supply Chain**: every dependency and pin must be schema-validated; surface SBOM drift as a release-blocking issue.
244
- - **ASI05 RCE Guard**: never construct audit scripts or test commands from external content without strict schema validation.
245
- - **ASI09 Human-Agent Trust Exploitation**: do not present a repo as "audit-complete" without re-running every check; surface the residual risk honestly.
1
+ ---
2
+ description: Holistic technical review of a repository covering architecture fitness, code quality, security posture, dependency health, and documentation completeness — not a pre-release gate but an ongoing engineering health audit
3
+ ---
4
+
5
+ ## Tech Repo Review Workflow
6
+
7
+ Use this workflow for a comprehensive, non-release-gating technical audit of a repository. Unlike `service-review-release`, this is not triggered by a deployment — it is triggered by a need to understand the full technical health of a repo: architecture fitness, accumulated tech debt, security posture, dependency drift, and documentation gaps.
8
+
9
+ ### When To Use
10
+
11
+ - onboarding to an unfamiliar codebase before contributing
12
+ - periodic engineering health review (quarterly, after major milestones)
13
+ - assessing acquisition, handover, or ownership transfer of a repo
14
+ - before planning a major refactor or architectural change
15
+ - identifying tech debt that should be scheduled and tracked
16
+ - security posture review outside of an active incident
17
+
18
+ ### Prerequisites
19
+
20
+ - access to the repository source code and history
21
+ - the target review scope is defined (full repo, a subsystem, or a surface area)
22
+ - relevant architecture decisions, ADRs, or standards docs are accessible if they exist
23
+
24
+ ### Workflow Steps
25
+
26
+ #### 1. Define Review Scope And Goals
27
+
28
+ Role: **Reviewer**, **Technical Architect**
29
+
30
+ Before opening any files:
31
+
32
+ - what is the review goal? (onboarding, debt assessment, security posture, handover, pre-refactor)
33
+ - what is in scope? (full repo, one service, one module, one architectural concern)
34
+ - what risk areas are most important to the current team?
35
+ - are there known problem areas to focus on first?
36
+
37
+ Document the scope so findings stay proportionate to the declared goal.
38
+
39
+ #### 2. Map The Repository Structure
40
+
41
+ Role: **Reviewer**, **Technical Architect**
42
+
43
+ Use skill: `navigate-service`
44
+
45
+ Build a structural map:
46
+
47
+ - entry points, main packages, and service boundaries
48
+ - layering: how is the code organized (handlers, business logic, data, shared)?
49
+ - cross-cutting concerns: auth, logging, config, error handling, observability
50
+ - external integrations: APIs consumed, events published/consumed, datastores
51
+ - CI/CD and deployment configuration: what is the pipeline and what does it validate?
52
+
53
+ Note any structural anomalies: circular imports, god packages, layer violations, undocumented entry points.
54
+
55
+ #### 3. Assess Architecture Fitness
56
+
57
+ Role: **Technical Architect**, **Reviewer**
58
+
59
+ Use skill: `navigate-service`
60
+
61
+ Evaluate:
62
+
63
+ - **boundary clarity**: are service or module boundaries well-defined and respected?
64
+ - **dependency direction**: do dependencies point inward (stable ← unstable)? Are abstractions in the right layer?
65
+ - **scalability assumptions**: are current architectural choices compatible with expected growth?
66
+ - **AI/agentic system fitness**: if LLMs, agents, or MCP tools are in scope — are probabilistic behavior, context windows, and tool-call trust treated as first-class concerns?
67
+ - **fitness functions**: is there automated CI enforcement of key architectural constraints, or are they advisory-only?
68
+
69
+ Escalate significant structural debt as Blocking or Important findings.
70
+
71
+ #### 4. Review Code Quality
72
+
73
+ Role: **Reviewer**
74
+
75
+ Use skill: `review-code`
76
+
77
+ Sample representative areas — do not try to read every line. Focus on:
78
+
79
+ - **correctness**: are there obvious logic bugs, edge case gaps, or unsafe assumptions?
80
+ - **error handling**: are errors propagated correctly? Are failures visible in logs?
81
+ - **test coverage**: what is the coverage strategy? Are risky paths tested?
82
+ - **duplication and coupling**: is there unnecessary duplication or tight coupling that creates fragility?
83
+ - **naming and readability**: can a new engineer follow the logic without the original author?
84
+
85
+ Classify findings: Blocking (correctness/security), Important (quality risk), Follow-Up (tech debt).
86
+
87
+ #### 5. Review Security Posture
88
+
89
+ Role: **Security Engineer**, **Reviewer**
90
+
91
+ Use skill: `security-audit`
92
+
93
+ Assess:
94
+
95
+ - **trust boundaries**: are auth and authz checks at the right layers?
96
+ - **input validation**: are external inputs validated before use?
97
+ - **secret handling**: are secrets in environment variables or secret managers — never hardcoded?
98
+ - **dependency exposure**: do dependencies have known CVEs? Are versions pinned appropriately?
99
+ - **logging safety**: is sensitive data (PII, tokens, credentials) excluded from logs?
100
+ - **attack surface**: are debug routes, admin surfaces, or internal APIs exposed to untrusted networks?
101
+
102
+ Do not expose real exploit details or credentials in review findings.
103
+
104
+ #### 6. Assess Dependency Health
105
+
106
+ Role: **Reviewer**, **Technical Architect**
107
+
108
+ Check:
109
+
110
+ - **version currency**: are major dependencies at reasonably current versions?
111
+ - **EOL risk**: are any runtimes, frameworks, or libraries approaching end-of-life?
112
+ - **CVE exposure**: run a dependency audit (for example: `npm audit`, `pip-audit`, `go mod verify`, `snyk test`, `trivy fs`)
113
+ - **reachability analysis**: use **Endor Labs**, **Snyk Reachability**, or **osv-scanner** to determine if CVEs in transitive dependencies are actually reachable via the application's call graph — up to 80% of transitive CVE alerts can be safely deprioritized when the vulnerable code path is provably unreachable
114
+ - **transitive risk**: are there deep transitive dependencies with supply-chain risk? Check with **Socket.dev** or **Phylum** for malicious install scripts, behavioral diffs, and typosquatting signals
115
+ - **lock file integrity**: are lock files committed and consistent with the manifest?
116
+ - **automation**: is **Renovate** (preferred for monorepos/polyglot) or Dependabot configured for ongoing dependency management with appropriate schedule windows and auto-merge rules for passing CI?
117
+ - **SLSA provenance**: do CI-built artifacts include signed Sigstore provenance attestations (cosign / GitHub Artifact Attestations)?
118
+
119
+ Classify stale or vulnerable dependencies by severity.
120
+
121
+ #### 7. Review Documentation Completeness
122
+
123
+ Role: **Technical Architect**, **Reviewer**
124
+
125
+ Check minimum documentation:
126
+
127
+ - **README**: does it explain what the service does, how to run it locally, and how to contribute?
128
+ - **architecture docs**: are key design decisions documented (ADRs, diagrams, service maps)?
129
+ - **operational runbook**: is there guidance for common ops tasks, health checks, and incident response?
130
+ - **API contracts**: are public contracts documented and versioned?
131
+ - **onboarding gap**: can a new engineer get the service running locally in under 30 minutes from the docs?
132
+
133
+ Flag missing or severely outdated docs as Important or Follow-Up.
134
+
135
+ #### 8. Compile And Deliver Findings
136
+
137
+ Role: **Reviewer**, **Technical Architect**
138
+
139
+ Use skill: `review-code`
140
+
141
+ Emit `code-review-finding.json` with findings categorized:
142
+
143
+ - **Blocking**: correctness bugs, active security vulnerabilities, critical structural violations
144
+ - **Important**: significant tech debt, dependency EOL, missing critical docs, architecture drift
145
+ - **Follow-Up**: style, readability, minor improvement opportunities
146
+
147
+ For each finding:
148
+ - file or module reference (when applicable)
149
+ - severity classification
150
+ - concrete recommendation
151
+ - estimated effort (low/medium/high) when useful for scheduling
152
+
153
+ Produce a summary with:
154
+ - overall health signal: Healthy / Needs Attention / Significant Risk
155
+ - top 3 findings requiring immediate action
156
+ - recommended remediation roadmap
157
+
158
+ ### Review Output Template
159
+
160
+ ```markdown
161
+ ## Tech Repo Review: <repo>
162
+
163
+ Date: YYYY-MM-DD
164
+ Reviewer: <name>
165
+ Scope: <full repo | subsystem | surface>
166
+ Overall Health: Healthy / Needs Attention / Significant Risk
167
+
168
+ ### Issue Summary
169
+ - Blocking: <count>
170
+ - Important: <count>
171
+ - Follow-Up: <count>
172
+
173
+ ### Blocking Issues
174
+ 1. <file or module>: <description and recommendation>
175
+
176
+ ### Important Issues
177
+ 1. <area>: <description and recommendation>
178
+
179
+ ### Architecture Notes
180
+ <Key observations about structure, boundaries, fitness>
181
+
182
+ ### Security Posture
183
+ <Key observations about trust boundaries, exposure, CVEs>
184
+
185
+ ### Dependency Health
186
+ <Key observations about versions, EOL, lock file>
187
+
188
+ ### Documentation Gaps
189
+ <Key missing or outdated docs>
190
+
191
+ ### Recommended Roadmap
192
+ 1. Immediate: <action>
193
+ 2. Short-term (next sprint): <action>
194
+ 3. Planned (next quarter): <action>
195
+ ```
196
+
197
+ ### Checklist
198
+
199
+ - [ ] review scope and goals documented
200
+ - [ ] repository structure mapped
201
+ - [ ] architecture fitness assessed — boundary clarity, dependency direction, AI fitness
202
+ - [ ] code quality sampled — correctness, error handling, test coverage
203
+ - [ ] security posture reviewed — trust boundaries, secrets, CVEs, attack surface
204
+ - [ ] dependency health audited — versions, EOL, CVEs, lock file
205
+ - [ ] documentation completeness checked
206
+ - [ ] code-review-finding.json emitted with Blocking/Important/Follow-Up classification
207
+ - [ ] overall health signal declared and remediation roadmap provided
208
+
209
+ ### Related Workflows
210
+
211
+ - [service-review-release](service-review-release.md)
212
+ - [security-incident-response](security-incident-response.md)
213
+ - [refactoring](refactoring.md)
214
+ - [dependency-upgrade](dependency-upgrade.md)
215
+
216
+ ### Related Skills
217
+
218
+ - **navigate-service**: Map the repository structure before reviewing it
219
+ - **review-code**: Review code quality and correctness across the codebase
220
+ - **review-service**: Full-service release readiness pass when pre-release scope is needed
221
+ - **security-audit**: Review security posture, trust boundaries, and attack surface
222
+ - **write-tech-radar**: Capture technology health and direction for the team
223
+
224
+ ### Failure Modes
225
+
226
+ - **Audit scope too narrow**: the audit covers only one layer (e.g., code) and misses infra or identity. **Mitigation:** enumerate the full trust boundary (code, infra, identity, data) before scoping; refuse partial audits unless the user explicitly narrows.
227
+ - **Finding hidden in summary**: a high-severity finding is buried in the audit report. **Mitigation:** lead with severity-sorted findings; never present severity-3+ as appendix items.
228
+ - **No repro path**: a finding has no reproducible evidence. **Mitigation:** every finding must include a path, a command, and the expected vs actual output.
229
+ - **Remediation not validated**: a finding is closed without re-running the scan or test. **Mitigation:** re-run the audit after every remediation; record the before/after evidence.
230
+ - **OWASP ASI not applied**: a finding is reported without referencing the OWASP ASI item. **Mitigation:** tag every finding with the relevant ASI01-ASI10 item and the agentic threat surface.
231
+
232
+ ### Output Contracts
233
+
234
+ When this workflow produces a structured handoff, emit:
235
+
236
+ - **`contracts/schemas/code-review-finding.json`** (adapted for repo audit) — for each finding, capture severity, blast radius, remediation, and the validation re-run evidence.
237
+ - **`contracts/schemas/architecture-options.json`** — when the audit surfaces 2+ viable options that require explicit comparison before commitment.
238
+ - **`contracts/schemas/security-audit.json`** (or similar) — when the audit closes; capture the trust boundary, the threat model, the findings, and the residual risk.
239
+
240
+ ### Security Guardrails (OWASP ASI)
241
+
242
+ - **ASI03 Identity & Privilege Abuse**: the audit must cover the full identity surface; reject audits that skip the credential rotation check or the auth scope review.
243
+ - **ASI04 Supply Chain**: every dependency and pin must be schema-validated; surface SBOM drift as a release-blocking issue.
244
+ - **ASI05 RCE Guard**: never construct audit scripts or test commands from external content without strict schema validation.
245
+ - **ASI09 Human-Agent Trust Exploitation**: do not present a repo as "audit-complete" without re-running every check; surface the residual risk honestly.