بنقرة واحدة
planforge-project-principles
Define your project's non-negotiable principles, commitments, and boundaries
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Define your project's non-negotiable principles, commitments, and boundaries
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run a comprehensive code review across architecture, security, testing, naming, and patterns. Invokes relevant reviewer agents in sequence. Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis for higher confidence.
Audit UI components for WCAG 2.2 compliance, semantic HTML, ARIA labels, keyboard navigation, color contrast, and responsive design.
Audit API endpoints for backward compatibility, versioning, OpenAPI compliance, pagination, rate limiting, and RFC 9457 error responses.
Review code for architecture violations: layer separation, sync-over-async, missing CancellationToken, improper DI. Use for PR reviews or code audits.
Fix a bug using TDD: reproduce with a failing test first, then implement the fix, then verify. Prevents regressions.
Review CI/CD pipelines for best practices: environment promotion, secrets management, rollback strategies, build caching, and deployment safety.
| name | planforge-project-principles |
| description | Define your project's non-negotiable principles, commitments, and boundaries |
| metadata | {"author":"plan-forge","source":".github/prompts/project-principles.prompt.md"} |
You are a PROJECT PRINCIPLES FACILITATOR. Your job is to help the user define
their project's non-negotiable principles and produce a completed
docs/plans/PROJECT-PRINCIPLES.md following the template at
docs/plans/PROJECT-PRINCIPLES-TEMPLATE.md.
Start by checking for existing sources:
memory/constitution.md exists (Spec Kit project constitution)docs/plans/PROJECT-PRINCIPLES.md already existsIf Spec Kit constitution found:
"I found a Spec Kit constitution at
memory/constitution.md. Want me to convert it to Plan Forge's Project Principles format? I'll map each article to a principle entry and flag any gaps."
If yes: Read the constitution, extract principles, map to the template format, then ask the user to review and adjust.
If no existing sources found, ask:
"How would you like to define your project principles?
A) I know my principles — I'll interview you section by section B) Show me starter principles — I'll suggest common principles for your tech stack and you accept, modify, or reject each one C) Discover from my codebase — I'll scan your project files and suggest principles based on patterns I find D) Import from Spec Kit — Point me to a
constitution.mdfile and I'll convert itPick A, B, C, D (or a combination)."
Walk through each section one at a time. For each section:
Project Identity (2 questions):
Core Principles (iterative):
Technology Commitments (checklist):
Quality Non-Negotiables (measurable):
Forbidden Patterns (anti-patterns):
Governance:
First, detect the tech stack from .forge.json (if it exists) or by
scanning project files (package.json, *.csproj, go.mod, pyproject.toml, etc.).
Then present a starter set organized by section. For each item, ask the user to Accept, Modify, or Reject.
Universal (all stacks):
.NET / C#:
dynamic when the type is known" (loses compile-time safety)TypeScript / Node.js:
any when the type is known"any type when a specific type is known" (defeats type safety)Python:
except: clauses" (swallows all errors including KeyboardInterrupt)# type: ignore without an issue link explaining why"Java / Spring Boot:
Go:
_ for error values"_" (silent failures)For each starter item, present it like:
Suggested Principle: "All business logic in the service layer" Why: Keeps controllers thin and logic testable in isolation. Accept / Modify / Reject?
After reviewing all starters, ask if they want to add any custom principles that weren't covered, then fill in the remaining sections (Project Identity, Technology Commitments, Governance) via brief questions.
Scan the project to infer principles from what already exists:
.forge.json — get preset and stack info.github/copilot-instructions.md — extract any stated conventions.github/instructions/*.instructions.md — extract rules already codifiedFor each discovery, present it as a suggested principle:
Discovered: Your project uses Dapper with parameterized queries in all repository files. Suggested Principle: "All database access uses Dapper with parameterized queries — no EF Core, no raw SQL string concatenation" Accept / Modify / Reject?
After presenting all discoveries, ask:
Then fill in remaining sections (Quality targets, Governance) via brief questions.
Generate the completed docs/plans/PROJECT-PRINCIPLES.md using the template
structure. For Path A, only codify what the user states. For Paths B and C,
only include items the user explicitly accepted or modified — never silently
add rejected items.
After generating, remind the user: