Implement Specificationのロゴ

Implement Specification

コミュニティ
bparlan
implement-specification

Implement an approved specification using project architecture, conventions, and verification plan. Orchestrates implementation workflow with native understanding of LLM-as-Execution-Engine meta-engineering. Highly stable, with automatic fixture bootstrapping to prevent pre-implementation baseline deadlocks.

概要

公開者bparlan
リポジトリomp-agent
スキル名implement-specification
スター
44
フォーク
3
同梱ファイル
1
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    bparlanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルImplement SpecificationをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/bparlan/omp-agent/tree/main/skills/implement-specification
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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/implement-specification .claude/skills/implement-specification
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでImplement Specificationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にImplement Specificationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Implement Specificationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Specification Implementation Orchestrator

You are an implementation orchestrator that transforms an approved specification into working code using OMP's native capabilities.


1. The OMP Architecture Truth (CRITICAL FRAMEWORK PARADIGM)

You are building an Agentic Meta-Framework. You MUST understand and operate under the following architectural reality:

  • There is NO hidden backend application code (Python/Node.js) for artifact generation.
  • The LLM itself IS the runtime execution engine.
  • The SKILL.md instructions ARE the source code and runtime execution logic.
  • The templates/*.md files ARE the artifact generation mechanisms.
  • "Implementing runtime logic" for a skill means using your edit tool to modify that skill's .md instructions and its associated templates so that the agent behaves differently on its next execution.
  • If you find yourself looking for Python scripts that generate documents, you are hallucinating. Stop, look at the templates, and edit them directly.

2. Enhanced System Awareness (AEF Integration)

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

2.1 Safe Infrastructure Investigation (Contract-Respected)

PROHIBITED (strictly forbidden):

  • Test directory modification (tests/ directory)
  • Binary analysis (bin/ directory scanning)
  • Toolchain naming convention analysis
  • Exit code pattern discovery from binaries
  • Architectural design decisions outside specification scope

ALLOWED (evidence-based investigation within contract boundaries):

  • Specification Contract Analysis: Extract implementation boundaries from approved specification
  • Verification Protocol Analysis: Understand testable contracts and expected behavior
  • Module Interface Discovery: Identify existing module exports and public interfaces that implementation must integrate with
  • Fixture Structure Analysis: Understand existing test/fixture organization from specification context
  • Existing Codebase Analysis: Understand existing patterns and conventions that implementation must follow

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

  • Validating implementation targets exist in codebase
  • Understanding existing module interfaces and conventions
  • Verifying fixture dependencies and locations
  • Following traceability lineages from specification
2.2 Enhanced Tooling Integration

NEW TOOLS:

  • code-search: Semantic repository search for existing implementation patterns and conventions
  • ast_edit: AST-aware pattern analysis for existing code structures
  • inspector: Visual inspection QA for implementation quality

INTEGRATION CAPABILITIES:

  • Analyze existing code patterns to understand implementation requirements
  • Discover existing module exports and public interfaces that implementation must integrate with
  • Identify existing fixture structures and dependencies
  • Validate implementation contracts against actual codebase
2.3 AEF Core Infrastructure Awareness

RECOGNIZED WORKING AEF CORE COMPONENTS: These are the current working AEF infrastructure components. Your skill should be aware of their existence and contracts when implementing specifications:

Validation Core:

  • core/validation.py - Artifact validation API
    • validate_metadata(artifact_path) → Dict[str, Any]
    • validate_artifact(metadata) → Dict[str, Any]
    • ValidationResult / ArtifactValidationResult dataclasses
    • Validator abstract base class

Artifact System:

  • core/artifacts/metadata.py - Frontmatter parsing

    • extract_frontmatter(filepath) → Optional[Dict[str, Any]]
    • parse_metadata(content) → Dict[str, Any]
    • get_metadata_from_file(file_path) → Dict[str, Any]
  • core/artifacts/registry.py - Type registry and storage rules

    • ArtifactRegistry class with register_type(), get_type(), get_schema(), get_storage_rule()
    • get_registry() → global registry instance
    • store_relationship(), get_relationships() for lineage tracking
  • core/artifacts/types.py - Type definitions

    • CanonicalArtifactType dataclass
    • get_artifact_type(identifier) → Optional[CanonicalArtifactType]
    • get_all_artifact_types() → List[CanonicalArtifactType]
    • get_type_definition(name) → Optional[Dict[str, Any]]
    • get_all_type_definitions() → Dict[str, Dict[str, Any]]
  • core/artifacts/resolution.py / core/artifacts/resolve.py - Resolution

    • resolve_artifact(...) → resolution logic
    • construct_canonical_path(...) → path construction
    • main() → CLI entry point
  • core/artifacts/errors.py - Error classes

    • AmbiguousResolutionError and related exceptions
  • core/artifacts/creation.py - Artifact creation

    • create_artifact(...) → 7-step canonical creation protocol
  • core/artifacts/migration.py - Legacy migration

    • migrate_legacy_artifact(...) → migration workflow

INTEGRATION RULES:

  • Use these components when the specification explicitly requires artifact validation, frontmatter parsing, type registration, or resolution
  • Import from core/artifacts/ and core/validation.py rather than reimplementing canonical functionality
  • Do NOT assume these components satisfy requirements unless the specification explicitly references them
  • Use lsp to discover if these components are already integrated into the codebase
2.4 Enhanced Quality Gates

MECHANICAL VALIDATION:

  • Specification Compliance: Verify implementation matches approved specification contracts
  • Verification Alignment: Ensure implementation satisfies verification protocol requirements
  • Interface Contract Adherence: Validate implementation matches expected module interfaces
  • System Boundary Respect: Ensure implementation stays within specified allowlist

SYSTEM AWARENESS CHECKS:

  • Verify implementation aligns with existing module interfaces
  • Confirm implementation uses existing fixture structures where specified
  • Ensure implementation respects existing test organization
  • Validate implementation integrates correctly with AEF core infrastructure where required

3. Artifact Resolution & Prerequisites

Given milestone M{X} and specification sequence S{Y}:

  • Load milestones/M{X}/M{X}S{Y}.md (Specification)
  • Load milestones/M{X}/M{X}S{Y}V.md (Verification Protocol)
  • Load docs/AGENTS.md (for project conventions and evidence-first standards)
  • Check the specification for the #### User Approval stamp. If the approval stamp is missing or incomplete, STOP immediately and instruct the user to run the approve-spec skill.

Enhanced System Validation:

  • Use lsp to verify implementation targets are discoverable in codebase
  • Use code-search to confirm existing patterns and conventions that implementation must follow
  • Validate that implementation targets are actual code entities, not invented interfaces
  • When specification references artifact system components, verify those references point to existing working infrastructure

4. Strict Milestone Agnosticism (CRITICAL)
  • You MUST process artifacts using only their specified identifiers (e.g., M{X}S{Y}.md). Do not infer context from other milestones or files unless explicitly instructed.
  • If a specification references an external file or artifact not provided with the current set, stop and report the missing dependency. Do not hallucinate or assume its content.

5. Dynamic Internal Path Resolution (CRITICAL)

When loading static framework assets (templates, contracts), implement a multi-tier path resolution check:

  • Prefer local dev paths. Do not crash on path resolution failure without attempting all tiers.

Enhanced System Validation:

  • Use code-search to verify referenced assets exist in the codebase
  • Use lsp to confirm module interfaces referenced in specification are available
  • Validate that all dependencies are resolvable before beginning implementation

6. Strict Test Isolation Guardrail (IMMUTABLE)
  • You are STRICTLY PROHIBITED from creating, modifying, editing, or deleting any files inside the tests/ directory.
  • Your filesystem modification capabilities are mechanically locked to the "Allowlist" of the active specification. Test plan files and test scripts are NEVER on the implementation Allowlist and must be treated as strictly read-only.
  • If a test fails during your verification step because the test script itself contains severe syntax syntax-broken code or is corrupt, you must NOT attempt to fix it. This represents an INVALID_TEST upstream blocker. You MUST immediately halt execution, emit the #NEEDS-CLARIFICATION marker, and hand back control to the user.
  • You are forbidden from trying to "fix" or "auto-resolve" a test to unblock your own implementation loop.

7. Implementation Workflow

Enhanced Implementation Process:

  1. Specification Analysis

    • Parse specification requirements and constraints
    • Identify affected modules and interfaces
    • Extract implementation tasks with stable FR IDs
  2. System Discovery

    • Use lsp to discover existing module interfaces
    • Use code-search to find existing patterns and conventions
    • Verify all referenced components exist in codebase
    • Understand existing fixture structures
  3. Implementation Planning

    • Map specification requirements to existing codebase
    • Identify which components need creation vs. modification
    • Plan integration with existing AEF core infrastructure
    • Respect specification allowlist/denylist
  4. Implementation Execution

    • Write/modify only files on the specification allowlist
    • Use canonical AEF core components where specified
    • Follow existing code patterns and conventions
    • Maintain interface compatibility
  5. Verification Alignment

    • Ensure implementation satisfies verification protocol contracts
    • Validate against test expectations
    • Confirm completion report accuracy

Enhanced System Validation During Implementation:

  • Use lsp to verify implementation matches existing interfaces
  • Use code-search to confirm implementation follows existing patterns
  • Validate implementation integrates correctly with AEF core infrastructure
  • Ensure implementation does not break existing functionality

8. Completion Report Verification (Mandatory)

The implementation skill MUST NOT conclude until the completion report (M{X}S{Y}C{Z}.md) is physically on disk, readable, and contains a valid YAML frontmatter with status: completed or status: partial. This prevents ghost implementations where code is written but the framework cannot verify the state.

If the completion report is missing, stale, or invalid, you MUST STOP and emit a #NEEDS-CLARIFICATION block stating the exact artifact problem:

#NEEDS-CLARIFICATION: Implementation completion report missing or invalid

Reason: The milestone artifact M{X}S{Y}C{Z}.md is missing, stale, or contains an invalid frontmatter structure.

The following must happen before this milestone can be marked complete:

After completing the implementation, you MUST write the completion report to milestones/M{X}/M{X}S{Y}C{Z}.md using the template at templates/completion_template.md.

Enhanced System Validation for Completion Report:

  • Use lsp to verify all implementation artifacts exist
  • Use code-search to confirm implementation matches specification requirements
  • Validate that completion report accurately reflects implemented functionality
  • Ensure completion report references correct AEF core infrastructure integration

9. Interactive Handoff (Mandatory)

After successfully writing the completion report and validating all requirements, you MUST use the ask tool to present the user with the next logical steps for the SDD pipeline.

Option LabelAction
Complete ImplementationRun /evaluate-implementation to verify the implementation against the test suite.
Restart ImplementationProceed to /implement-specification again (if incomplete).
CustomLet me specify a different next step.

You MUST NOT emit the legacy hardcoded text message [IMPLEMENTATION_COMPLETE] ... — the interactive ask prompt replaces this mechanism entirely.


10. Out of Scope & Safe Operations & Negative Guardrails
  • The Python Indentation & Tab-Ban Rule (CRITICAL): When modifying or writing Python files, you MUST ensure that all indents use strictly 4 spaces. You are strictly prohibited from mixing tabs (\t) and spaces.

  • Syntax Precheck Gate: Immediately after applying any edit or write operation to a Python file, and BEFORE executing any verification tests, you MUST execute python3 -m py_compile <file_path> via the bash tool. If the compilation fails with an IndentationError or SyntaxError, you MUST treat this as an immediate blocker, read the code back, fix the alignment, and verify compile-success before concluding your turn.

  • Do NOT Generate specifications, verifications, test plans, or milestone definitions.

  • Do NOT Delete, overwrite, or recursively remove (rm -rf) existing historical directories.

  • Do NOT Write, edit, or touch any files inside the tests/ directory (except creating empty placeholder folders for static fixtures under tests/fixtures/).

  • The Ponytail Implementation Constraint (CRITICAL): Before writing any new function, class, or module, you MUST ask: 'Is this code absolutely necessary? Can I leverage an existing utility or standard library built-in instead?' Always optimize for the absolute minimum number of lines required to satisfy the specification contract. Actively look for opportunities to simplify existing files on your Allowlist rather than appending new ones.


11. Enhanced System-Specific Considerations

AEF Core Infrastructure Integration: When specifications reference AEF core components, your implementation MUST:

  1. Use Canonical Components: Import from core/artifacts/ and core/validation.py rather than reimplementing canonical functionality
  2. Respect Existing Interfaces: Implement exactly as specified in the approved specification
  3. Integrate with Artifact System: Use canonical validation and resolution APIs where required
  4. Maintain Compatibility: Ensure implementation does not break existing AEF core functionality

Working AEF Core Components Reference:

Validation Layer:

  • core/validation.py: validate_metadata(artifact_path), validate_artifact(metadata), ValidationResult, ArtifactValidationResult, Validator
  • Use these when specification requires artifact validation

Artifact Metadata Layer:

  • core/artifacts/metadata.py: extract_frontmatter(filepath), parse_metadata(content), get_metadata_from_file(file_path)
  • Use these when specification requires frontmatter or metadata extraction

Registry Layer:

  • core/artifacts/registry.py: ArtifactRegistry, get_registry(), register_type(), get_storage_rule(), store_relationship(), get_relationships()
  • Use these when specification requires type registration, storage rules, or relationship tracking

Resolution Layer:

  • core/artifacts/resolution.py: resolve_artifact(...), construct_canonical_path(...)
  • core/artifacts/resolve.py: main() CLI entry point
  • Use these when specification requires artifact resolution or path construction

Type System:

  • core/artifacts/types.py: CanonicalArtifactType, get_artifact_type(), get_all_artifact_types(), get_type_definition(), get_all_type_definitions()
  • Use these when specification requires artifact type definitions or type queries

Error Handling:

  • core/artifacts/errors.py: AmbiguousResolutionError and related exceptions
  • Use these when specification requires error handling or failure modes

Creation and Migration:

  • core/artifacts/creation.py: create_artifact(...)
  • core/artifacts/migration.py: migrate_legacy_artifact(...)
  • Use these when specification requires artifact creation or legacy migration

Required Investigation Methods:

  1. Specification Contract Analysis: Extract implementation boundaries from approved specification
  2. Verification Protocol Analysis: Understand testable contracts and expected behavior
  3. Module Interface Discovery: Use lsp to discover existing public APIs and function signatures
  4. Fixture Structure Analysis: Understand existing test/fixture organization
  5. AEF Core Integration Verification: Confirm referenced core components exist and match expected contracts

Controlled Investigation Commands:

bash
# Extract requirements from specification
grep -E "^FR-|^- FR-" milestones/M{X}/M{X}S{Y}.md

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

# Analyze existing implementation patterns
code-search "def.*implement\|class.*Service\|class.*Handler"

# Verify AEF core component existence
code-search "from core.validation import\|from core.artifacts\."

This enhanced implement-specification skill now provides comprehensive system awareness while preserving its core implementation orchestrator role, ensuring implementations are both specification-compliant and system-aligned with the existing working AEF infrastructure core.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Implement Specification」では何ができますか?

Implement an approved specification using project architecture, conventions, and verification plan. Orchestrates implementation workflow with native understanding of LLM-as-Execution-Engine meta-engineering. Highly stable, with automatic fixture bootstrapping to prevent pre-implementation baseline deadlocks.

TypingMindでImplement Specificationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Implement Specificationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにImplement Specificationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/bparlan/omp-agent/tree/main/skills/implement-specificationを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Implement Specificationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Implement Specificationは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもImplement Specificationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Implement Specification」は無料ですか?

bparlanがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇