Prompt file imported from SilverAssist/agents-toolkit (
.github/prompts/review-code.prompt.md). Copyright stays with the author.
Quick Code Review
Perform a quick code review of the current changes.
Steps
1. Get Changed Files
git diff --name-only HEAD~1
# or for uncommitted changes:
git diff --name-only
2. Review Each File
src/commands/ and src/installers/ — CLI logic
- No
console.logdebug statements (useinfo()/warn()/success()/error()helpers) - No hardcoded paths — use
getTargetDir(),getClaudeTargetDir(),getAgentsSkillsDir() - TSDoc on new/modified exported symbols in
src/**/*.ts -
force,dryRun, andglobalflags respected in new code paths - New flags added to
showHelp()output insrc/commands/help.ts - No duplicate code — reuse existing helpers (
copyDir,linkSkill, etc.) - Imports use the domain barrel (
../installers/index.js), never internal files
src/index.ts — exports
- All arrays sorted alphabetically
- Every file in
templates/shared/has a corresponding export entry - No entry references a file that doesn't exist in
templates/shared/
src/cli.test.js — tests
- Symlink tests gated by
symlinkSupported(tempDir) -
symlinkSupported()uses'dir'as the third argument tosymlinkSync - New CLI flags have a corresponding
help shows --flagtest - Global install tests use
HOME/USERPROFILEenv override
templates/shared/ — content files
- Prompt frontmatter uses
agent: agent(notmode: agent) - No Copilot-specific references in generic templates
3. Security Check
- No hardcoded credentials or API keys
- No
evalor dynamicrequirewith user input - File write paths stay within the target directory (no path traversal)
4. Scope Check
- Changes align with the issue/PR scope
- No unintended modifications to unrelated files
-
CHANGELOG.mdupdated under the correct version -
README.mdupdated if user-visible behavior changed
Output
Review Summary
| File | Status | Issues |
|---|---|---|
| src/commands/ | ✅/⚠️/❌ | — |
Issues Found
❌ Critical (must fix)
- Issue description
⚠️ Warnings (should fix)
- Warning description
Overall
Status: Ready / Needs Work