ptah-extension
Copilot instructions29 starsChanged 57 days agoMITView on GitHub
Apply this three-phase review protocol. Be adversarial — find how code breaks, not how it works. Never rubber-stamp. Every review must find 3+ issues. Assume every line will fail in the worst way. Answer these 5 questions: Critical smells to flag: Severity: Data loss or silent failures → CRITICAL. Missing error handling → SERIOUS. Default to higher severity when unsure. Every line must justify its existence. Answer these 5 questions: Project patterns to enforce: OWASP-aligned assessment adapted for VS Code…
In this repository25 other files it gives its agents.
- agent-lanesSkill
- angular-3d-scene-crafterSkill
- angular-frontend-patternsSkill
- angular-gsap-animation-crafterSkill
- ddd-architectureSkill
- execute-phase-gated-taskSkill
- extract-and-relocate-angular-component-featureSkill
- fleet-orchestrationSkill
- humanize-librarySkill
- impeccableSkill
- nestjs-backend-patternsSkill
- nestjs-deploymentSkill
- nx-workspace-architectSkill
- orchestrationSkill
- ptah-cli-usageSkill
- resilient-nestjs-patternsSkill
- saas-platform-patternsSkill
- saas-workspace-initializerSkill
- skill-creatorSkill
- technical-content-writerSkill
- tribunalSkill
- typesafe-aiSkill
- ui-ux-designerSkill
- video-showcaseSkill
- webhook-architectureSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Every line must justify its existence.
- Distinctive: line 49
No TODO/FIXME without linked issue, no stub implementations
- Distinctive: line 50
No console.log in production paths
- Distinctive: line 59
No hardcoded secrets: API keys, tokens, passwords, connection strings in source
- Distinctive: line 62
No authentication bypasses or privilege escalation paths
- Distinctive: line 63
No PII/sensitive data in logs or error messages
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Review Instructions
Apply this three-phase review protocol. Be adversarial — find how code breaks, not how it works. Never rubber-stamp. Every review must find 3+ issues.
Phase 1: Code Logic Review (40% weight)
Assume every line will fail in the worst way.
Answer these 5 questions:
- How does this fail silently? — catch blocks that log but don't propagate to UI, promises without error handling
- What user action causes unexpected behavior? — rapid clicks, tab switches mid-operation, navigation during async work
- What data produces wrong results? — null/undefined inputs, empty arrays, malformed responses, extremely large datasets
- What happens when dependencies fail? — network failures, timeouts, service unavailability, stale state
- What's missing that requirements didn't mention? — offline behavior, cleanup on destroy, concurrent operations, retry logic
Critical smells to flag:
- Silent failures: catch blocks that swallow errors while UI shows success
- Race conditions: state checked in one tick, used in another without re-validation
- State inconsistency: mutations without synchronized UI updates
- Fire-and-forget: async calls without error handling or user feedback
- Missing cleanup: subscriptions, timers, event listeners not disposed on destroy
- Stale closures: callbacks capturing state that changes before execution
Severity: Data loss or silent failures → CRITICAL. Missing error handling → SERIOUS. Default to higher severity when unsure.
Phase 2: Code Style & Patterns Review (35% weight)
Every line must justify its existence.
Answer these 5 questions:
- What breaks in 6 months? — fragile coupling, magic strings, implicit dependencies
- What confuses a new team member? — unclear data flow, non-obvious side effects, hidden state
- What's the hidden complexity cost? — premature abstractions, over-engineering, unnecessary indirection
- What pattern inconsistencies exist? — deviations from established codebase conventions
- What would I do differently? — simpler alternatives, better naming, clearer structure
Project patterns to enforce:
- Angular signals for all frontend state (never RxJS BehaviorSubject for state)
- Branded types (SessionId, MessageId) — never raw strings for IDs
- Strict layering: libs depend only on layers below, no circular deps
- Standalone components with zoneless change detection (no NgModules)
- tsyringe DI with tokens from vscode-core for backend services
- Event-driven: state changes published via EventBus
- No
anytypes, no unsafe type assertions hiding nullability - No TODO/FIXME without linked issue, no stub implementations
- No console.log in production paths
- Single responsibility per function; extract at nesting depth > 3
Phase 3: Security Review (25% weight)
OWASP-aligned assessment adapted for VS Code extensions.
Always check:
- No hardcoded secrets: API keys, tokens, passwords, connection strings in source
- Input validation: all external input sanitized before use
- Injection prevention: no raw string concatenation in queries, commands, or file paths
- No authentication bypasses or privilege escalation paths
- No PII/sensitive data in logs or error messages
- No
eval()or dynamic code execution - Content Security Policy enforced in all webviews
- Webview ↔ extension messages validated on both sides
- File system access uses proper path validation (no path traversal)
- Extension permissions follow least-privilege principle
- Dependencies: flag known-vulnerable packages
Scoring
| Score | Meaning | Frequency |
| 9-10 | Handles all edge cases, production-hardened | <5% |
| 7-8 | Good, minor improvements needed | 20% |
| 5-6 | Core works, gaps in coverage | 50% |
| 3-4 | Significant logic gaps or silent failures | 20% |
| 1-2 | Fundamental errors | 5% |
Best reviews make the author say "I hadn't thought of that."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

