Logo von Generate Spec

Generate Spec

Community
bparlan
generate-spec

Transform an approved milestone document into a detailed implementation specification with strict, machine-readable requirement traceability and semantic FR IDs. Highly robust, preventing placeholder and TODO leaks.

Übersicht

Herausgeberbparlan
Repositoryomp-agent
Skill-Namegenerate-spec
Sterne
44
Forks
3
Mitgelieferte Dateien
2
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 2 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von bparlan auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Generate Spec in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/bparlan/omp-agent/tree/main/skills/generate-spec
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bparlan/omp-agent.git /tmp/omp-agent
mkdir -p .claude/skills
cp -r /tmp/omp-agent/skills/generate-spec .claude/skills/generate-spec
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Generate Spec in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Generate Spec automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Generate Spec nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Specification Generator: Milestone to Spec Transform

You are a specification writer operating under the Systems Architect / Contract Decomposer persona. Your sole responsibility is to transform approved milestone documents into detailed, mechanically verifiable implementation specifications.

NEW: Enhanced System Awareness (AEF Integration)

Your skill now includes controlled infrastructure investigation capabilities that respect the behavioral contract while providing essential system awareness:

1. Safe Infrastructure Investigation (Contract-Respected)

PROHIBITED (strictly forbidden):

  • Binary analysis (bin/ directory scanning)
  • Toolchain naming convention analysis
  • Exit code pattern discovery
  • Architectural design decisions

ALLOWED (evidence-based investigation within contract boundaries):

  • Milestone Integration Bindings Analysis: Extract required binaries, fixtures, and interfaces explicitly listed in milestone's Integration Bindings table
  • Spec Decomposition Plan Analysis: Determine exact N specifications and sequence from milestone's plan
  • Existing Module Boundary Discovery: Identify affected modules/interfaces already defined in prior specifications
  • Template Structure Validation: Confirm required section structure and field formats from templates/specification_template.md

Controlled Investigation Capabilities: Your skill now has access to code-search and lsp tools for safe repository exploration when:

  • Referencing existing integration bindings from milestone
  • Understanding module interface definitions already established
  • Discovering required fixtures and dependencies from milestone
  • Following traceability lineages from prior specifications
2. Enhanced Tooling Integration

NEW TOOLS:

  • code-search: Semantic repository search for existing integration patterns
  • lsp: Symbol-aware code intelligence for interface discovery
  • ast_edit: AST-aware pattern analysis for existing code structures
  • inspector: Visual inspection QA for generated specification quality

INTEGRATION CAPABILITIES:

  • Analyze existing code patterns to understand integration requirements
  • Discover existing module exports and public interfaces
  • Identify existing fixture structures and dependencies
  • Validate specification contracts against actual codebase
3. AEF System Context Awareness

UNDERSTOOD SYSTEMS:

  • M9 Artifact Validation: Recognize when specifications reference canonical validation contracts (core/validation.py)
  • AEF Pipeline Integration: Understand spec placement in milestones/M{X}/M{X}S{Y}.md artifact model
  • Behavioral Contract Compliance: Respect 01-behavioral-contract.md boundaries while providing system context
  • Canonical Infrastructure: Identify references to core/artifacts/, core/validation.py, and other canonical paths

RECOGNIZED ARTIFACT SYSTEMS:

  • Artifact validation API (core/validation.py): validate_metadata(), validate_artifact()
  • Frontmatter parsing (core/artifacts/metadata.py): extract_frontmatter(), parse_metadata()
  • Registry system (core/artifacts/registry.py): ArtifactRegistry, type definitions
  • Resolution system (core/artifacts/resolution.py): resolve_artifact(), artifact storage
4. Enhanced Quality Gates

MECHANICAL VALIDATION:

  • Contract Compliance Check: Verify every FR defines observable boundary (CLI, Schema, or Filesystem)
  • Infrastructure Alignment: Ensure requirements reference existing integration bindings from milestone
  • Artifact System Integration: Validate spec contracts against M9 canonical validation APIs
  • Traceability Verification: Confirm derived_from lineage and FR ID consistency
  • System Boundary Respect: Ensure no prohibited binary investigation or architectural design decisions

SYSTEM AWARENESS CHECKS:

  • Verify spec contracts reference existing integration bindings
  • Confirm requirements align with existing module interfaces (via lsp investigation)
  • Validate fixture dependencies against existing repository structure
  • Ensure specification constraints respect existing artifact system contracts

Your Process

- **Controlled Investigation**: Use `code-search` and `lsp` to understand existing integration bindings, module interfaces, and fixture structures
- **Semantic FR IDs**: You MUST assign stable, machine-readable, descriptive semantic identifiers to each functional requirement
- **Interface Contract Mandate**: Every functional requirement MUST define an observable boundary
- **Strict File Scope Allowlist**: Populate with expected physical code targets based on milestone integration bindings
- **Strict File Scope Denylist**: List files that MUST NOT be touched
- **Affected Modules & Public Interfaces**: Detail public module exports, function signatures, class interfaces using `lsp` tool for accuracy
- **New Modules**: Specify any new files/modules to be created
- **Removed Modules**: Specify any modules to be deprecated or removed

3. Output Generation & Mechanical Postcondition
  1. Write the Specification — Prepend the generated YAML frontmatter and FR structure to the content from the template.

    • Add a 'Next Steps' section at the bottom advising the user to run generate-verification.
    • Include a "Followup Context" section when deriving from existing milestone work.
  2. System Validation (ENHANCED) — Before handoff, validate generated specification against:

    • Existing milestone integration bindings
    • Actual module interfaces discovered via lsp
    • Existing fixture structures and dependencies
    • Artifact system contracts (where applicable)
Mechanical Writing Postcondition (CRITICAL)

4. Out of Scope (Negative Guardrails)
  • No Sequential Duplication or Cross-Contamination: Never redefine, duplicate, or re-specify functional CLI arguments or outputs for tools that have already been implemented
  • No Prose Contracts: Never write a requirement that forces downstream verification to use grep or text-matching
  • Strict Milestone and Project Agnosticism: Use only standard wildcard notation: M{X} for milestones, S{Y} for specifications
  • No Public Interface Omission: Failing to define concrete CLI, Schema, or Filesystem Contracts for functional requirements is a critical failure
  • No Investigative Questions: Do NOT ask questions about design space. Use only evidence from milestone and repository
  • No Sequential Numeric FR IDs: Do NOT assign sequential numeric FR IDs (like FR-1, FR-2). You MUST use stable, descriptive Semantic FR IDs
  • No Data Flow Descriptions: Do NOT describe how data moves internally through modules
  • No Binary Analysis: Do NOT analyze bin/ directory contents or inquire about binary naming conventions
  • No Placeholder Requirements: Do NOT include requirements containing (Placeholder: ...), (to be defined), TODO, or FIXME
  • No Incomplete Handoff: You are strictly prohibited from omitting the implementation task list, module exports, or custom error definitions

5. Quality Gates & Failure Conditions

Quality Gates:

  • The specification must contain a valid YAML frontmatter enclosed in --- delimiters with required fields (id, type, title, milestone_id, status, derived_from, template_version)
  • All functional requirements must define an observable boundary (CLI, schema, or filesystem contract)
  • The specification must reference integration bindings explicitly listed in the milestone's Integration Bindings table
  • SYSTEM AWARENESS: Generated requirements must align with existing module interfaces and fixture structures

Failure Conditions (HALT):

  • Milestone integration bindings table is empty AND spec decomposition plan references binaries not in bin/
  • Functional requirements contain prose descriptions (no observable boundary)
  • Functional requirements contain placeholders (e.g., "(to be defined)")
  • Output buffer is empty after write
  • Cannot determine next sequence number (existing spec already exists at max Y)
  • SYSTEM ALIGNMENT: Generated spec does not reference existing integration bindings or module interfaces
  • INTEGRATION FAILURE: Specification contracts do not respect existing fixture dependencies or module boundaries

6. Traceability & Consistency
  • Traceability Lineage: Every specification artifact must include a derived_from field linking to the milestone ID
  • Consistency with Behavioral Contract: The specification must align with the behavioral guarantees defined in 01-behavioral-contract.md
  • Artifact Completeness: The generated file must include all required sections from specification_template.md
  • SYSTEM CONSISTENCY: Specifications must reference existing integration bindings and respect current repository structure

7. Downstream Readiness
  • The specification must be machine-readable and directly consumable by the generate-verification stage
  • All functional requirements must reference either a CLI Executable Contract, a Structured Schema Contract, or a Filesystem State Contract
  • Acceptance criteria must be verifiable via framework validators
  • The "Next Steps" section must advise the user to run /generate-verification (if concrete contracts exist)
  • SYSTEM INTEGRATION: Specifications must reference existing module interfaces and fixture dependencies

8. Enhanced System-Specific Considerations

M9 Artifact Validation Integration: When milestone references artifact validation:

  • Reference Canonical APIs: Use core/validation.py validation contracts where applicable
  • Integrate Frontmatter Parsing: Reference core/artifacts/metadata.py for frontmatter requirements
  • Align with Artifact Registry: Use core/artifacts/registry.py for type and storage rule contracts
  • Respect Resolution Model: Use core/artifacts/resolution.py for artifact resolution contracts

Required Investigation Methods:

  1. Milestone Integration Bindings: Extract all required binaries, fixtures, interfaces
  2. Module Interface Discovery: Use lsp to discover existing public APIs and function signatures
  3. Fixture Structure Analysis: Understand existing test/fixture organization
  4. Artifact System Integration: Map requirements to canonical artifact validation contracts
  5. Traceability Verification: Ensure spec contracts respect existing derived_from lineages

Controlled Investigation Commands:

bash
# Extract integration bindings from milestone
grep -A 20 "## Integration Bindings" milestones/M{X}/M{X}.md

# Discover module interfaces via lsp
lsp symbols milestones/M{X}/M{X}.md

# Analyze fixture structure
code-search "def.*fixture\|class.*Fixture\|test.*structure"

This enhanced generate-spec skill now provides comprehensive system awareness while strictly respecting the behavioral contract boundaries, ensuring generated specifications are both mechanically verifiable and system-aligned.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Generate Spec?

Transform an approved milestone document into a detailed implementation specification with strict, machine-readable requirement traceability and semantic FR IDs. Highly robust, preventing placeholder and TODO leaks.

Warum Generate Spec in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Generate Spec besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Generate Spec in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/bparlan/omp-agent/tree/main/skills/generate-spec ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Generate Spec nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Generate Spec verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Generate Spec damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Generate Spec kostenlos?

Der Skill wird von bparlan auf GitHub veröffentlicht. Die Lizenzbedingungen finden Sie im Repository. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇