Governance, Validation & Specification for AI Agents
"Ambiguity is the enemy of delivery."
Discovery Pack creates a standardized, governed bridge between product vision and engineering implementation. It orchestrates AI agents to rigorosuly validate assumptions, enforce architectural standards, and generate implementation-ready specifications.
- Overview
- Key Capabilities
- Operational Workflows
- Quick Start
- Artifact Reference
- Automation & Governance
- Installation
- Contributing
Discovery Pack is not just a collection of prompts; it is a complete Governance System designed for the agentic era. By combining proven methodologies (JTBD, DDD, ADR) with rigid schema validation and Python-based automation, it ensures that every specification generated by your AI agent is:
- Valid: Structurally correct according to JSON Schemas.
- Auditable: Traceable decisions and assumption logs.
- Actionable: Directly consumable by engineering teams and tools like
spec-kit.
- Assumption Extraction: Automatically scans discovery artifacts for
[ASSUMPTION]and[HYPOTHESIS]tags to generate a prioritized risk register (04_assumptions-unknowns.md). - Epistemic Tagging: Enforces clear distinction between
[FACT](verified data) and[CONSTRAINT](non-negotiable requirements).
- Logic Gates: Python scripts analyze artifacts for logical fallacies (e.g., "Gate 1: Equivalent Options" detects when architectural choices lack meaningful trade-offs).
- Validation Checks: Ensures validation plans contain quantitative success criteria, preventing "vanity metrics".
- Schema Enforcement: Every artifact (Problem Frame, Domain Model, etc.) is validated against strict JSON Schemas (Draft 07).
- Architectural Decision Records (ADR): Mandatory immutable logging of all structural decisions (
06_decision-log.md).
Choose the workflow rigor that matches your project's risk profile.
Target: Internal tools, POCs, low-risk features. Time: 15-30 mins.
- Problem Frame: Define users and JTBD.
- Option Space: Quick trade-off analysis of approaches.
- Handoff: Generate Spec-Kit compatible output.
Target: Production systems, regulated domains, high-risk architecture. Time: 1-2 hours.
- Foundation: Problem Frame + NFR Constraints.
- Modeling: Domain-Driven Design (Entities, Events).
- Risk Management: Auto-extraction of Assumptions + Validation Plan.
- Governance: Decision Log (ADR) + Logic Gate checks.
- Handoff: Validated Spec-Kit output.
See detailed installation guide for Claude, Copilot, and generic agent setup.
Tell your agent:
"Run discovery for a [Project Name] in [lite/full] mode."
The agent will guide you through the process, generating artifacts in:
docs/discovery/YYYY-MM-DD-project-slug/
Example Interaction:
User: "I need a service to rate-limit API requests. Run discovery in full mode."
Agent: "Initiating Full Discovery for 'api-rate-limiter'.
Creating: docs/discovery/2026-01-07-api-rate-limiter/
Phase 1: Problem Framing (JTBD)
Loaded template: 00_problem-frame.md
Question: Who represents the primary security threat? Is it malicious bots or accidental overuse?"
The system produces the following standardized artifacts:
| ID | Artifact | Methodology | Automation | Purpose |
|---|---|---|---|---|
00 |
Problem Frame | JTBD, PR/FAQ | Schema Validated | Defines user struggles and success metrics. |
01 |
Constraints | NFRs | - | Security, compliance, and performance boundaries. |
02 |
Domain Model | DDD | - | Ubiquitous language, entities, and bounded contexts. |
03 |
Option Space | Trade-offs | Gate Check | Comparison of architectural approaches. |
04 |
Assumptions | Epistemology | Auto-Generated | Centralized register of "Known Unknowns". |
05 |
Validation Plan | Lean Startup | Gate Check | Experiments to falsify critical assumptions. |
06 |
Decision Log | ADR | - | Immutable record of architectural choices. |
07 |
Handoff | Spec-Kit | Validated | Input for specification and implementation. |
The scripts/ directory contains the engine that powers the governance model.
Enforces JSON Schema compliance for all markdown frontmatter.
python3 scripts/validate.py docs/discovery/my-project/
# Output: β
00_problem-frame.md passed schema validation.Parses semantic tags ([ASSUMPTION], [CONSTRAINT]) from narrative text to populate the Assumption Register.
python3 scripts/extract_assumptions.py docs/discovery/my-project/
# Output: π Found 12 assumptions. Priority 'Critical' assigned to 3 constraints.Runs heuristic checks on project logic.
- Check: Are options too similar in score?
- Check: Do validation experiments lack pass/fail criteria?
- Check: Are there contradictory assumptions?
Discovery Pack is designed to be Platform Agnostic. It runs on any agent that supports the Agent Skills specification or can execute local scripts.
- Claude Code
- GitHub Copilot CLI
- VS Code (Agent Mode)
- Cursor
π Read the Installation Guide
Discovery Pack generates spec-kit compatible outputs:
1. Run discovery-run β Generates 07_speckit-handoff.md
2. Review handoff artifact
3. Copy constitution section β /speckit.constitution
4. Copy specify section β /speckit.specify
5. Continue spec-kit workflow
Learn more: GitHub Spec-Kit
We are building the standard for Agentic Governance.
- Found a bug? Open an Issue.
- New methodology? Submit a PR.
See CONTRIBUTING.md for code of conduct and development standards.
- Spec-Kit Integration: Use
07_speckit-handoff.mdoutput with GitHub Spec-Kit - Methodologies: See
shared-references/methodologies.mdfor detailed guidance - Maintained by: nsalvacao
- License: MIT