Story reconcile implementation

From MoonLadderStudios/MoonMind · View interactive version

Story reconcile implementation is an AI agent skill from the GitHub repository MoonLadderStudios/MoonMind. Compare MoonSpec story breakdown output against the current repository implementation, preserve fully implemented stories as skipped, narrow partially implemented stories to remaining work, and rewrite the story breakdown handoff before issue creation.

How to use this skill

Skill file

Story Implementation Reconciliation

Use this skill after moonspec-breakdown and before provider-backed issue creation when a breakdown may include work that is already fully or partially implemented.

Inputs

If no readable story breakdown JSON path is available, stop with a clear blocker. Do not create Jira issues or implementation tasks.

Workflow

  1. Read the story breakdown JSON.
  2. For each story, inspect relevant source, tests, docs, migrations, contracts, and configuration in the repository.
  3. Compare repository evidence against the story acceptance criteria, requirements, source design coverage, and explicit non-goals.
  4. Classify every story with exactly one implementationStatus:
  1. Rewrite the JSON breakdown in place at storyBreakdownPath with the same top-level structure and story order.
  2. Write or update the markdown report at storyBreakdownMarkdownPath when provided.

Classification Rules

Story Output Contract

Preserve the original story fields. Add reconciliation fields; do not delete source traceability.

For a fully implemented story:

{
  "implementationStatus": "fully_implemented",
  "implementedEvidence": [
    {
      "requirement": "DESIGN-REQ-001",
      "status": "met",
      "evidence": "tests/unit/example_test.py covers the acceptance path."
    }
  ],
  "issueCreation": {
    "action": "skip",
    "reason": "All acceptance criteria have repository evidence."
  }
}

For a partially implemented story:

{
  "implementationStatus": "partially_implemented",
  "implementedEvidence": [
    {
      "requirement": "DESIGN-REQ-001",
      "status": "met",
      "evidence": "api_service/example.py implements the existing endpoint."
    }
  ],
  "remainingWork": {
    "summary": "Complete remaining behavior for the original story",
    "description": "Only the unmet behavior should be implemented.",
    "acceptanceCriteria": [
      "Unmet acceptance criterion."
    ],
    "requirements": [
      "Unmet requirement."
    ]
  },
  "issueCreation": {
    "action": "create_remaining_work_issue",
    "reason": "Some criteria are already implemented; the provider issue should track only the remaining work."
  }
}

For a not implemented story:

{
  "implementationStatus": "not_implemented",
  "issueCreation": {
    "action": "create_issue",
    "reason": "No implementation evidence found."
  }
}

For an unverifiable story:

{
  "implementationStatus": "unverifiable",
  "issueCreation": {
    "action": "manual_review",
    "reason": "Repository evidence is insufficient to safely create implementation work."
  }
}

issueCreation is the canonical provider-neutral field. jiraCreation may be

included only as a temporary compatibility alias when an existing Jira consumer

requires it; new GitHub-facing handoffs must not rely on jiraCreation.

Markdown Report

The markdown report must include:

Key Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.