schema_version: "1.0"

extension:
  id: "openlore"
  name: "openlore structural analysis"
  version: "1.0.0"
  description: "Pre-flight structural risk check and post-implementation spec drift verification via openlore MCP."
  author: "openlore contributors"
  repository: "https://github.com/clay-good/openlore"
  license: "MIT"
  homepage: "https://github.com/clay-good/openlore"

requires:
  speckit_version: ">=0.1.0"
  tools:
    - name: "openlore"
      version: ">=1.2.0"
      required: true

provides:
  commands:
    - name: "speckit.openlore.orient"
      file: "commands/orient.md"
      description: "Pre-flight check — orient + analyze_impact before implementation. Gates on riskScore ≥ 70."

    - name: "speckit.openlore.drift"
      file: "commands/drift.md"
      description: "Post-implementation spec drift check. Run after tests are green."

hooks:
  before_implement:
    command: "speckit.openlore.orient"
    optional: true
    prompt: "Run openlore structural risk check before implementing?"
    description: "Identifies high-risk functions and spec requirements relevant to the planned tasks."

  after_implement:
    command: "speckit.openlore.drift"
    optional: true
    prompt: "Run openlore drift check to verify implementation matches specs?"
    description: "Detects gaps between the implementation and existing OpenSpec specifications."

tags:
  - "static-analysis"
  - "risk-management"
  - "spec-driven"
  - "brownfield"
  - "mcp"

defaults:
  analysis:
    orient_limit: 7
    impact_depth: 2
    risk_threshold: 70
