.agents/skills/review/SKILL.md
Review an existing TypeScript project against the opinionated architecture rules. Use when the user asks to review, audit, check, or validate their project's architecture. Triggers on phrases like "review my project", "check the architecture", "audit my code structure", "validate my project", or "does my project follow the rules". Also invocable via the /tseng:review slash command.
npx skillsauth add kagenti/humr reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
echo "Architecture docs: ${CLAUDE_SKILL_DIR}/architecture/"
echo "Version: $(cat "${CLAUDE_SKILL_DIR}/VERSION")"
Audits an existing TypeScript project against the architecture rules using a two-phase approach to prevent hallucination. Each review produces an immutable record appended to tseng/reviews/.
The current tseng version is shown above (injected from the VERSION file). This version is embedded in the review record so every checklist is traceable to the architecture revision that produced it.
You (the main agent) generate a strict checklist from the architecture docs.
architecture/index.md from the architecture docs directory (shown above).tseng/ files (index.md, project-structure.md, adoption.md, reviews/) as checklist items — those are generated outputs, not architecture rules.Determine the next review number:
tseng/reviews/index.md exists in the target project. If it does, read it to find the highest existing review number.001.003, the next is 004.Write the checklist to tseng/reviews/NNN.md using this format:
# Review #NNN
<!-- tseng_version: {version} -->
<!-- status: open -->
<!-- created: {YYYY-MM-DD} -->
Generated from architecture docs (tseng v{version}).
## Stack
- [ ] Uses tRPC for API layer
- [ ] Uses Zod for input validation
- [ ] TypeScript strict mode enabled (`strict: true` in tsconfig)
- ...
## Architecture
- [ ] ...
## Project Structure
- [ ] ...
The status is always open for review — the review skill is read-only and does not lock records. Only adopt and upgrade lock records.
Write or update tseng/reviews/index.md:
# Review History
| # | Date | TSEng Version | Status |
|---|------|---------------|--------|
| [001](001.md) | 2026-04-12 | 1.0.0 | open |
Append the new row. Never modify existing rows.
Launch a subagent (using the Agent tool) to perform the actual audit. The subagent prompt must:
Use this exact subagent prompt template:
You are auditing a TypeScript project at {project_path} against a checklist of architecture rules.
Go through EVERY item below. For each one:
- Check the project files to determine if the rule is satisfied
- Mark it ✅ (pass) or ❌ (fail) or ⚠️ (partially met / not applicable)
- Cite the specific file and line that proves your assessment
- If it fails, briefly say what's wrong
Do NOT check anything beyond this list. Do NOT add suggestions, improvements, or opinions. Only verify what's listed.
CHECKLIST:
{checklist_contents}
Take the subagent's output and present the final report to the user:
Do not update the review record with audit results — the review skill is read-only. The record stays open with unchecked boxes. Only adopt and upgrade mark items and lock records.
tseng/project-structure.md exists, check whether it is outdated and offer to update it.tseng/ — it is a generated folder.development
Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue after user approval. Use when user wants to write a PRD, create a product requirements document, or plan a new feature. Always present the PRD for user approval before submitting.
testing
Upgrade a previously bootstrapped or adopted project when the architecture evolves. Diffs the current architecture rules against the project's last locked review, identifies new or changed rules, and proposes incremental changes. Triggers on phrases like "upgrade my project", "sync with latest architecture", "update to new rules", "upgrade tseng", or "architecture changed, update my project". Also invocable via the /tseng:upgrade slash command.
development
Spec out a feature or change with full knowledge of the opinionated TypeScript architecture and the project's adoption state. Conducts a thorough discovery interview to understand domain concerns, bounded contexts, and application services, then produces a high-level architectural specification — never concrete implementation details. Triggers on phrases like "spec this feature", "design this change", "architect this", "help me spec", "what modules do I need", or "think through this feature". Also invocable via the /tseng:spec slash command.
testing
Use when completing tasks, implementing major features, or before merging to verify work meets requirements