Engineering Standards is a versioned, shared reference and bootstrap system for engineering practices, documentation, technology profiles, architecture decisions, and AI-agent workflows. Its primary purpose is to help a Tech Lead agent prepare a project so that future developer agents can work from the project’s own documentation without repeatedly rediscovering its architecture or consulting this repository.
This repository is currently a v0.6 working baseline. It has an auditable rule catalog, Tech Lead workflows, project handoff templates, cross-project standards, identity/account guidance, and a tracked work system for focused and long-running AI implementation sessions. It should continue to be validated against real projects.
Projects often develop their own agent instructions, documentation habits, testing strategies, technology choices, and conventions. A shared standards system reduces avoidable fragmentation while allowing each project to retain its own architecture and justified exceptions.
The intended workflow has two layers of agents:
- Developer agents work inside a project repository. They use that project's local documentation and standards contract, along with the selected profiles from this repository.
- Tech-lead agents bootstrap or design projects, audit them against selected standards and profiles, and produce a self-contained project documentation package with evidence-based findings and prioritized follow-up work.
This repository supports four explicit session modes:
- Project bootstrap — analyze an existing project and prepare it for AI development.
- Project design — define and document a not-yet-started or early-stage project.
- Project implementation — execute a focused ticket or bounded advancement loop inside a prepared project.
- Standards maintenance — improve this repository and its shared standards system.
Sessions MUST declare their mode. See docs/agent-modes.md.
Copy the prompt for the kind of session you want, then replace the values in brackets. These prompts assume the agent starts in this repository and has permission to inspect or update the target project when one is specified.
Use this when the project already has code but its architecture, conventions, commands, and documentation are not ready for developer agents.
MODE: EXISTING PROJECT TECH LEAD
You are the Tech Lead responsible for preparing this existing project for future AI developer agents.
Engineering standards repository: [absolute path to engineering-standards]
Target project: [absolute path to the existing project]
Read the engineering-standards repository, especially docs/AGENTS.md, docs/agent-modes.md, and docs/workflows/project-bootstrap.md. Then inspect the target project deeply, including its instructions, documentation, source structure, dependencies, configuration, CI, tests, integrations, and deployment setup.
Document the project progressively and accurately. Create or improve the target project’s docs/ package so a future developer agent can work from that documentation without re-checking the engineering-standards repository. Select the applicable standards and profiles, assess them using the defined compliance states, and record evidence, risks, priorities, exceptions, unknowns, and deferred work.
Do not invent facts. Do not perform broad behavior-changing refactors during this initial analysis unless I explicitly ask for them. You may make narrowly scoped documentation and AI-readiness changes. Ask me only about decisions that are genuinely critical; record other unknowns and continue.
Before finishing, verify the documentation index, project standards contract, commands, links, and prioritized work queue. Summarize what was documented, what remains unresolved, and the recommended next sessions.
Use this when the project is still an idea, requirements document, or empty repository.
MODE: GREENFIELD PROJECT TECH LEAD
You are the Tech Lead responsible for defining and documenting this project before implementation begins.
Engineering standards repository: [absolute path to engineering-standards]
Target project or design workspace: [absolute path]
Project name: [name]
Initial idea or requirements: [short description or path to requirements]
Read the engineering-standards repository, especially docs/AGENTS.md, docs/agent-modes.md, and docs/workflows/project-design.md. Interview me about critical product, architecture, security, data, integration, operational, and delivery decisions. Use the grill-with-docs workflow when it is available in your environment.
Create a reviewable project design and the initial docs/ package for future implementation agents. Select applicable standards and profiles, propose the architecture and technology choices with rationale, define boundaries and important workflows, and record durable decisions as ADRs. Clearly distinguish proposed design, decisions, open questions, assumptions, and implementation tasks. Do not claim that code, infrastructure, tests, or integrations exist before they do.
Do not finalize high-impact choices while critical information is missing. Keep unresolved questions visible and actionable. Before finishing, verify that the first implementation slice, standards contract, architecture, security boundaries, and handoff instructions are clear.
Use this when the target project already has its local documentation package and the agent should either implement one specific task or make bounded autonomous progress.
MODE: PROJECT IMPLEMENTATION
Engineering standards repository: [absolute path to engineering-standards]
Target project: [absolute path to the prepared project]
Session intent: [focused or advance]
Ticket or goal: [specific task, or “inspect the project work queue and advance the next safe slice”]
Read the target project's docs/AGENTS.md, docs/README.md, standards contract, relevant architecture and workflow documents, and docs/work/TODO.md. Inspect the current branch, working tree, recent relevant changes, and validation commands.
If the intent is focused, implement only the specified ticket or goal. If the intent is advance, perform a bounded product, technical, UX, security, testing, and operations checkpoint, select the next safe work item, implement it, verify it, and record newly discovered work in docs/work/TODO.md.
Do not silently expand product scope or turn high-impact architecture, security, data, deployment, or dependency decisions into facts. Record proposed work, blockers, and unresolved decisions explicitly. Update current-state documentation when behavior changes. Run applicable verification and record failures or unrun checks honestly. At the end, update the work item and create a checkpoint describing the commit, completed work, verification, risks, blockers, and next safe action.
Use this when the work is about the shared standards system itself, not an external project.
MODE: ENGINEERING STANDARDS MAINTENANCE
You are maintaining and improving this engineering-standards repository. You are not acting as the Tech Lead of an external project in this session.
Read AGENTS.md, docs/AGENTS.md, docs/agent-modes.md, and docs/workflows/standards-maintenance.md before changing anything.
Current objective: [describe the standard, workflow, profile, template, validation tool, or documentation improvement]
Inspect existing documents first. Classify each proposed change correctly as a principle, shared standard, technology profile, ADR policy, template, workflow, or temporary work. Keep shared policy separate from project-specific facts, use precise normative language, preserve accepted decisions, update indexes and links, and add an ADR when the change materially alters an established standard or policy.
Implement the objective, validate the repository, and summarize the files changed, behavior affected, compatibility or migration implications, and any follow-up work. Do not modify an external project unless I explicitly change the session scope.
Projects should pin a standards version and select only the profiles that apply to them. They should reference this repository rather than copying its entire contents.
The absolute repository path shown in the session prompts is a local Tech Lead input: the agent needs a checkout path while performing the bootstrap or design session. It should not be copied into a project's persisted documentation. Project contracts should use the portable standards_source.repository URL and pin the exact standards_source.revision defined by docs/templates/project-standards.yml.
This repository is the source of truth for general principles, cross-project standards, technology profiles, documentation rules, ADR rules, reusable templates, and eventually validation or migration tooling.
An individual project remains the source of truth for its current architecture, implementation details, domain model, integrations, project-specific ADRs, and accepted exceptions. Shared documents must not invent or duplicate those details.
AGENTS.md- agent entry point; redirects to the canonical instructions.CLAUDE.md- Claude agent entry point; redirects to the canonical instructions.docs/README.md- documentation index.docs/principles/- broad engineering principles.docs/standards/- cross-project standards.docs/profiles/- technology and architecture profiles.docs/adr/- policy for architecture decision records.docs/templates/- reusable ADR and project contract templates.docs/workflows/- mode-specific Tech Lead and maintenance workflows.scripts/validate-standards.rb- lightweight standards metadata, link, and template validator.docs/versioning.md- standards versioning and consumer migration policy.
Current standards describe rules that should be followed now. Current project facts belong in the project repository. Durable architectural decisions belong in ADRs. Temporary work belongs in issues, pull requests, task plans, or deliberately temporary investigation notes.
When an established decision changes, preserve the original ADR and create a new ADR that references it. Do not rewrite history merely to make the documentation appear cleaner.
A project can begin with a contract such as docs/templates/project-standards.yml, selecting a standards version, relevant standards and profiles, compliance states, deferred work, and explicit exceptions. The project-bootstrap and project-design workflows explain how to produce the surrounding local documentation package.
Before proposing a new rule, read docs/AGENTS.md and classify the information. Keep standards focused, enforceable where practical, and clear about whether they are Required, Recommended, or Optional.