@vesviet/agent-skills 5.6.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INDEX.md +5 -5
- package/README.md +1 -1
- package/VERSION +1 -1
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/role-skill-index.json +12 -12
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/adapters/cursor/README.md +185 -185
- package/bin/agent-skills.mjs +17 -14
- package/core/contracts/README.md +1 -1
- package/core/contracts/schemas/api-contract-spec.json +191 -191
- package/core/contracts/schemas/data-pipeline-spec.json +1 -1
- package/core/contracts/schemas/design-tokens-spec.json +19 -0
- package/core/contracts/schemas/feature-ticket.json +1293 -1293
- package/core/contracts/schemas/pull-request-spec.json +338 -338
- package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
- package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
- package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
- package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
- package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
- package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
- package/core/contracts/schemas/security-audit.json +143 -12
- package/core/contracts/schemas/system-design-spec.json +9 -1
- package/core/contracts/schemas/test-report.json +530 -530
- package/core/contracts/schemas/ux-flow-spec.json +66 -0
- package/core/roles/ai-systems-engineer.md +31 -18
- package/core/roles/aws-engineer.md +33 -29
- package/core/roles/backend-developer.md +6 -4
- package/core/roles/content-manager.md +7 -7
- package/core/roles/data-engineer.md +39 -36
- package/core/roles/qa-engineer.md +18 -18
- package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
- package/core/roles/references/aws-engineer-review-checklist.md +29 -16
- package/core/roles/references/business-analyst-responsibilities.md +207 -207
- package/core/roles/references/content-manager-governance-standards.md +2 -2
- package/core/roles/references/content-manager-review-checklist.md +7 -1
- package/core/roles/references/data-engineer-review-checklist.md +11 -3
- package/core/roles/references/frontend-developer-responsibilities.md +275 -275
- package/core/roles/references/qa-engineer-review-checklist.md +10 -5
- package/core/roles/references/security-engineer-review-checklist.md +8 -0
- package/core/roles/references/solution-architect-review-checklist.md +6 -1
- package/core/roles/references/system-engineer-review-checklist.md +11 -0
- package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
- package/core/roles/security-engineer.md +35 -5
- package/core/roles/solution-architect.md +7 -7
- package/core/roles/system-engineer.md +470 -465
- package/core/roles/ui-ux-designer.md +17 -3
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
- package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
- package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
- package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
- package/core/skills/backend/add-event-handler/SKILL.md +1 -0
- package/core/skills/backend/add-service-client/SKILL.md +1 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
- package/core/skills/backend/implement-auth/SKILL.md +1 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
- package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
- package/core/skills/business/elicit-requirements/SKILL.md +102 -102
- package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
- package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
- package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
- package/core/skills/business/write-use-cases/SKILL.md +106 -106
- package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
- package/core/skills/content/audit-content/SKILL.md +3 -2
- package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
- package/core/skills/content/design-content-strategy/SKILL.md +6 -5
- package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
- package/core/skills/content/optimize-seo/SKILL.md +6 -5
- package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
- package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
- package/core/skills/content/repurpose-content/SKILL.md +4 -3
- package/core/skills/content/write-article/SKILL.md +6 -5
- package/core/skills/content/write-copy/SKILL.md +3 -2
- package/core/skills/document/pptx/SKILL.md +1 -0
- package/core/skills/document/pptx/scripts/add_slide.py +0 -0
- package/core/skills/document/pptx/scripts/clean.py +0 -0
- package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
- package/core/skills/document/xlsx/scripts/recalc.py +0 -0
- package/core/skills/documentation/write-documentation/SKILL.md +143 -143
- package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
- package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
- package/core/skills/foundation/design-review/SKILL.md +11 -1
- package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
- package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
- package/core/skills/foundation/release-notes/SKILL.md +192 -192
- package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
- package/core/skills/foundation/write-tests/SKILL.md +11 -10
- package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
- package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
- package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
- package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
- package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
- package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
- package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
- package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
- package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
- package/core/skills/platform/system-design/SKILL.md +7 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
- package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
- package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
- package/core/skills/platform/web-perf/SKILL.md +151 -151
- package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
- package/core/skills/product/build-story-map/SKILL.md +104 -104
- package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
- package/core/skills/product/define-product-strategy/SKILL.md +105 -105
- package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
- package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
- package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
- package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
- package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
- package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
- package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
- package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
- package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
- package/core/skills/repo-ops/review-service/SKILL.md +186 -186
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
- package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
- package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
- package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
- package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
- package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
- package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
- package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
- package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
- package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
- package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
- package/core/skills/security-data/security-audit/SKILL.md +126 -119
- package/core/workflows/add-new-feature.md +212 -212
- package/core/workflows/agent-a2a-delegation.md +142 -142
- package/core/workflows/bug-fix.md +147 -147
- package/core/workflows/build-deploy.md +208 -208
- package/core/workflows/code-review.md +137 -137
- package/core/workflows/curriculum-delivery.md +1 -1
- package/core/workflows/dependency-upgrade.md +193 -193
- package/core/workflows/feature-delivery.md +149 -149
- package/core/workflows/hotfix-production.md +172 -172
- package/core/workflows/qa-validation.md +231 -231
- package/core/workflows/refactoring.md +154 -154
- package/core/workflows/revert-deployment.md +147 -147
- package/core/workflows/security-incident-response.md +191 -191
- package/core/workflows/seo-content-lifecycle.md +91 -91
- package/core/workflows/service-review-release.md +223 -223
- package/core/workflows/setup-new-service.md +214 -214
- package/core/workflows/tech-repo-review.md +245 -245
- package/core/workflows/troubleshooting.md +241 -241
- package/overlays/astro-cloudflare/README.md +93 -93
- package/overlays/data-analyst-stack/README.md +109 -109
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
- package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
- package/overlays/ecommerce-microservices/README.md +65 -65
- package/overlays/go-microservices/README.md +78 -78
- package/overlays/go-microservices/rules/go-conventions.md +223 -223
- package/overlays/laravel-filament/README.md +90 -90
- package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
- package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
- package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
- package/overlays/r3f-stack/README.md +89 -89
- package/overlays/r3f-stack/rules/stub.md +43 -43
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
- package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
- package/package.json +2 -2
- 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.
|