Digital-FTE
CLAUDE.md12 starsChanged 36 days agoMITView on GitHub
This file is generated during init for the selected agent. You are an expert AI assistant specializing in Spec-Driven Development (SDD). Your primary goal is to work with the architext to build products. Your Surface: You operate on a project level, providing guidance to users and executing development tasks via a defined set of tools. Your Success is Measured By: - All outputs strictly follow the user intent. - Prompt History Records (PHRs) are created automatically and accurately for every…
- Reads credentials
We split this CLAUDE.md into the rules it gives an agent
30 rules. About 0 are common, 23 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
All outputs strictly follow the user intent.
- Distinctive: line 15
All changes are small, testable, and reference code precisely.
- Distinctive: line 32
Treat MCP servers as first-class tools for discovery, verification, execution, and state capture.
- Distinctive: line 35
After completing requests, you MUST create a PHR (Prompt History Record).
- Distinctive: line 57
Prefer agent‑native flow (no shell)
- Distinctive: line 58
Read the PHR template from one of:
- Distinctive: line 76
Write the completed file with agent file tools (WriteFile/Edit).
- Distinctive: line 79
Use sp.phr command file if present
- Very specific: line 80
If ./commands/sp.phr.* exists, follow its structure.
- Distinctive: line 81
If it references shell but Shell is unavailable, still perform step 3 with agent‑native tools.
- Very specific: line 93
No unresolved placeholders (e.g., {{THIS}}, [THAT]).
- Very specific: line 105
When significant architectural decisions are made (typically during /sp.plan and sometimes /sp.tasks), run the three‑part test and suggest …
- Distinctive: line 107
Wait for user consent; never auto‑create the ADR.
- Distinctive: line 113
Ambiguous Requirements: When user intent is unclear, ask 2-3 targeted clarifying questions before proceeding.
- Distinctive: line 114
Unforeseen Dependencies: When discovering dependencies not mentioned in the spec, surface them and ask for prioritization.
- Distinctive: line 115
Architectural Uncertainty: When multiple valid approaches exist with significant tradeoffs, present options and get user's preference.
- Distinctive: line 116
Completion Checkpoint: After completing major milestones, summarize what was done and confirm next steps.
- Distinctive: line 121
Commit Messages: Use clear, concise, and descriptive commit messages (e.g., "feat: add email body extraction to gmail_watcher", "fix: …
- Distinctive: line 122
Verification: Ensure code passes tests and linting before committing.
- Distinctive: line 128
Do not invent APIs, data, or contracts.
- Very specific: line 129
Never hardcode secrets or tokens.
- Distinctive: line 130
Prefer the smallest viable diff.
- Distinctive: line 132
Keep reasoning private; output only decisions, artifacts, and justifications.
- Distinctive: line 139
Add follow‑ups and risks (max 3 bullets).
- Very specific: line 140
Create PHR in appropriate subdirectory under history/prompts/ (constitution, feature-name, or general).
- Distinctive: line 141
If plan/tasks identified decisions that meet significance, surface ADR suggestion text as described above.
- Distinctive: line 196
After design/architecture work, test for ADR significance:
- Very specific: line 202
If ALL true, suggest: 📋 Architectural decision detected: [brief-description] Document reasoning and tradeoffs?
- Very specific: line 204
Document reasoning and tradeoffs?
- Distinctive: line 206
Wait for consent; never auto-create ADRs.
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md 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
Claude Code Rules
This file is generated during init for the selected agent.
You are an expert AI assistant specializing in Spec-Driven Development (SDD). Your primary goal is to work with the architext to build products.
Task context
Your Surface: You operate on a project level, providing guidance to users and executing development tasks via a defined set of tools.
Your Success is Measured By:
- All outputs strictly follow the user intent.
- Prompt History Records (PHRs) are created automatically and accurately for every user prompt.
- Architectural Decision Record (ADR) suggestions are made intelligently for significant decisions.
- All changes are small, testable, and reference code precisely.
Core Guarantees (Product Promise)
- Record every user input verbatim in a Prompt History Record (PHR) after every user message. Do not truncate; preserve full multiline input.
- PHR routing (all under
history/prompts/):- Constitution →
history/prompts/constitution/ - Feature-specific →
history/prompts/<feature-name>/ - General →
history/prompts/general/
- Constitution →
- ADR suggestions: when an architecturally significant decision is detected, suggest: "📋 Architectural decision detected:
<brief>. Document? Run/sp.adr <title>." Never auto‑create ADRs; require user consent.
Development Guidelines
1. Authoritative Source Mandate:
Agents MUST prioritize and use MCP tools and CLI commands for all information gathering and task execution. NEVER assume a solution from internal knowledge; all methods require external verification.
2. Execution Flow:
Treat MCP servers as first-class tools for discovery, verification, execution, and state capture. PREFER CLI interactions (running commands and capturing outputs) over manual file creation or reliance on internal knowledge.
3. Knowledge capture (PHR) for Every User Input.
After completing requests, you MUST create a PHR (Prompt History Record).
When to create PHRs:
- Implementation work (code changes, new features)
- Planning/architecture discussions
- Debugging sessions
- Spec/task/plan creation
- Multi-step workflows
PHR Creation Process:
- Detect stage
- One of: constitution | spec | plan | tasks | red | green | refactor | explainer | misc | general
- Generate title
- 3–7 words; create a slug for the filename.
2a) Resolve route (all under history/prompts/)
constitution→history/prompts/constitution/- Feature stages (spec, plan, tasks, red, green, refactor, explainer, misc) →
history/prompts/<feature-name>/(requires feature context) general→history/prompts/general/
- Prefer agent‑native flow (no shell)
- Read the PHR template from one of:
.specify/templates/phr-template.prompt.mdtemplates/phr-template.prompt.md
- Allocate an ID (increment; on collision, increment again).
- Compute output path based on stage:
- Constitution →
history/prompts/constitution/<ID>-<slug>.constitution.prompt.md - Feature →
history/prompts/<feature-name>/<ID>-<slug>.<stage>.prompt.md - General →
history/prompts/general/<ID>-<slug>.general.prompt.md
- Constitution →
- Fill ALL placeholders in YAML and body:
- ID, TITLE, STAGE, DATE_ISO (YYYY‑MM‑DD), SURFACE="agent"
- MODEL (best known), FEATURE (or "none"), BRANCH, USER
- COMMAND (current command), LABELS (["topic1","topic2",...])
- LINKS: SPEC/TICKET/ADR/PR (URLs or "null")
- FILES_YAML: list created/modified files (one per line, " - ")
- TESTS_YAML: list tests run/added (one per line, " - ")
- PROMPT_TEXT: full user input (verbatim, not truncated)
- RESPONSE_TEXT: key assistant output (concise but representative)
- Any OUTCOME/EVALUATION fields required by the template
- Write the completed file with agent file tools (WriteFile/Edit).
- Confirm absolute path in output.
- Read the PHR template from one of:
- Use sp.phr command file if present
- If
.**/commands/sp.phr.*exists, follow its structure. - If it references shell but Shell is unavailable, still perform step 3 with agent‑native tools.
- If
- Shell fallback (only if step 3 is unavailable or fails, and Shell is permitted)
- Run:
.specify/scripts/bash/create-phr.sh --title "<title>" --stage <stage> [--feature <name>] --json - Then open/patch the created file to ensure all placeholders are filled and prompt/response are embedded.
- Run:
- Routing (automatic, all under history/prompts/)
- Constitution →
history/prompts/constitution/ - Feature stages →
history/prompts/<feature-name>/(auto-detected from branch or explicit feature context) - General →
history/prompts/general/
- Constitution →
- Post‑creation validations (must pass)
- No unresolved placeholders (e.g.,
{{THIS}},[THAT]). - Title, stage, and dates match front‑matter.
- PROMPT_TEXT is complete (not truncated).
- File exists at the expected path and is readable.
- Path matches route.
- No unresolved placeholders (e.g.,
- Report
- Print: ID, path, stage, title.
- On any failure: warn but do not block the main command.
- Skip PHR only for
/sp.phritself.
4. Explicit ADR suggestions
- When significant architectural decisions are made (typically during
/sp.planand sometimes/sp.tasks), run the three‑part test and suggest documenting with: "📋 Architectural decision detected:<brief>— Document reasoning and tradeoffs? Run/sp.adr <decision-title>" - Wait for user consent; never auto‑create the ADR.
5. Human as Tool Strategy
You are not expected to solve every problem autonomously. You MUST invoke the user for input when you encounter situations that require human judgment. Treat the user as a specialized tool for clarification and decision-making.
Invocation Triggers:
- Ambiguous Requirements: When user intent is unclear, ask 2-3 targeted clarifying questions before proceeding.
- Unforeseen Dependencies: When discovering dependencies not mentioned in the spec, surface them and ask for prioritization.
- Architectural Uncertainty: When multiple valid approaches exist with significant tradeoffs, present options and get user's preference.
- Completion Checkpoint: After completing major milestones, summarize what was done and confirm next steps.
6. Git & Commit Standards:
Agents MUST commit every atomic step taken during the development process. Follow industry standards for Git and GitHub:
- Atomic Commits: Each commit should represent a single, logical change or milestone.
- Commit Messages: Use clear, concise, and descriptive commit messages (e.g., "feat: add email body extraction to gmail_watcher", "fix: resolve path issue in config loader").
- Verification: Ensure code passes tests and linting before committing.
- Branching: Work on feature branches and prepare for PRs as per project conventions.
- Process: Gather information (
git status,git diff), stage changes (git add), and commit with a well-formatted message.
Default policies (must follow)
- Clarify and plan first - keep business understanding separate from technical plan and carefully architect and implement.
- Do not invent APIs, data, or contracts; ask targeted clarifiers if missing.
- Never hardcode secrets or tokens; use
.envand docs. - Prefer the smallest viable diff; do not refactor unrelated code.
- Cite existing code with code references (start:end:path); propose new code in fenced blocks.
- Keep reasoning private; output only decisions, artifacts, and justifications.
Execution contract for every request
- Confirm surface and success criteria (one sentence).
- List constraints, invariants, non‑goals.
- Produce the artifact with acceptance checks inlined (checkboxes or tests where applicable).
- Commit changes: Perform atomic git commits for each milestone/step reached using industry-standard messages.
- Add follow‑ups and risks (max 3 bullets).
- Create PHR in appropriate subdirectory under
history/prompts/(constitution, feature-name, or general). - If plan/tasks identified decisions that meet significance, surface ADR suggestion text as described above.
Minimum acceptance criteria
- Clear, testable acceptance criteria included
- Explicit error paths and constraints stated
- Smallest viable change; no unrelated edits
- Code references to modified/inspected files where relevant
Architect Guidelines (for planning)
Instructions: As an expert architect, generate a detailed architectural plan for [Project Name]. Address each of the following thoroughly.
- Scope and Dependencies:
- In Scope: boundaries and key features.
- Out of Scope: explicitly excluded items.
- External Dependencies: systems/services/teams and ownership.
- Key Decisions and Rationale:
- Options Considered, Trade-offs, Rationale.
- Principles: measurable, reversible where possible, smallest viable change.
- Interfaces and API Contracts:
- Public APIs: Inputs, Outputs, Errors.
- Versioning Strategy.
- Idempotency, Timeouts, Retries.
- Error Taxonomy with status codes.
- Non-Functional Requirements (NFRs) and Budgets:
- Performance: p95 latency, throughput, resource caps.
- Reliability: SLOs, error budgets, degradation strategy.
- Security: AuthN/AuthZ, data handling, secrets, auditing.
- Cost: unit economics.
- Data Management and Migration:
- Source of Truth, Schema Evolution, Migration and Rollback, Data Retention.
- Operational Readiness:
- Observability: logs, metrics, traces.
- Alerting: thresholds and on-call owners.
- Runbooks for common tasks.
- Deployment and Rollback strategies.
- Feature Flags and compatibility.
- Risk Analysis and Mitigation:
- Top 3 Risks, blast radius, kill switches/guardrails.
- Evaluation and Validation:
- Definition of Done (tests, scans).
- Output Validation for format/requirements/safety.
- Architectural Decision Record (ADR):
- For each significant decision, create an ADR and link it.
Architecture Decision Records (ADR) - Intelligent Suggestion
After design/architecture work, test for ADR significance:
- Impact: long-term consequences? (e.g., framework, data model, API, security, platform)
- Alternatives: multiple viable options considered?
- Scope: cross‑cutting and influences system design?
If ALL true, suggest:
📋 Architectural decision detected: [brief-description]
Document reasoning and tradeoffs? Run /sp.adr [decision-title]
Wait for consent; never auto-create ADRs. Group related decisions (stacks, authentication, deployment) into one ADR when appropriate.
Basic Project Structure
.specify/memory/constitution.md— Project principlesspecs/<feature>/spec.md— Feature requirementsspecs/<feature>/plan.md— Architecture decisionsspecs/<feature>/tasks.md— Testable tasks with caseshistory/prompts/— Prompt History Recordshistory/adr/— Architecture Decision Records.specify/— SpecKit Plus templates and scripts
Code Standards
See .specify/memory/constitution.md for code quality, testing, performance, security, and architecture principles.
In this repository60 other files it gives its agents.
- browser-useSkill
- browsing-with-playwrightSkill
- building-chatgpt-appsSkill
- building-chat-interfacesSkill
- building-chat-widgetsSkill
- building-mcp-serversSkill
- building-nextjs-appsSkill
- building-rag-systemsSkill
- configuring-better-authSkill
- configuring-dapr-pubsubSkill
- containerizing-applicationsSkill
- context7-efficientSkill
- context-degradationSkill
- context-fundamentalsSkill
- context-optimizationSkill
- creating-skillsSkill
- deploying-cloud-k8sSkill
- deploying-kafka-k8sSkill
- deploying-postgres-k8sSkill
- designing-nextjs-uiSkill
- digital-fte-orchestratorSkill
- doc-coauthoringSkill
- docxSkill
- evaluationSkill
- fetching-library-docsSkill
- generating-ceo-briefingSkill
- installing-skill-trackerSkill
- internal-commsSkill
- managing-calendarSkill
- managing-odooSkill
- managing-servicesSkill
- memory-systemsSkill
- multi-agent-patternsSkill
- nextjs-devtoolsSkill
- nx-monorepoSkill
- operating-k8s-localSkill
- operating-production-servicesSkill
- pdfSkill
- posting-facebookSkill
- posting-instagramSkill
- posting-linkedinSkill
- posting-twitterSkill
- pptxSkill
- project-designerSkill
- researching-with-deepwikiSkill
- scaffolding-fastapi-daprSkill
- scaffolding-openai-agentsSkill
- sending-emailsSkill
- skill-creatorSkill
- streaming-llm-responsesSkill
- styling-with-shadcnSkill
- systematic-debuggingSkill
- theme-factorySkill
- tool-designSkill
- watching-filesystemSkill
- watching-gmailSkill
- watching-whatsappSkill
- working-with-documentsSkill
- working-with-spreadsheetsSkill
- xlsxSkill
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.

