spec-backfill

Backfill missing specifications by analyzing code, documentation, and git history.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Nathanto-ai/liza-private --skill spec-backfill-nathanto-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spec-backfill
Source: https://github.com/Nathanto-ai/liza-private/tree/main/skills/spec-backfill
Command: npx skills add https://github.com/Nathanto-ai/liza-private --skill spec-backfill-nathanto-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yq, git, and includes scripts (resource) components.

What problem does it solve?

Backfill missing specifications from a repository by extracting observable behavior from code, existing documentation, and git history, surfacing user-facing features as structured specs for clear product understanding and traceability.

Core Features & Use Cases

  • Classification: Distinguish functional, architectural, and utility paths to prioritize spec work.
  • Mapping & Gap Detection: Compare code paths against specs, surface gaps, conflicts, and stale mappings.
  • Generation & Verification: Generate candidate specs, verify alignment with code, and persist changes in the specs tree with session state.

Quick Start

Run the spec-backfill agent to map code paths to specs and begin backfilling missing documentation.

Frequently Asked Questions about spec-backfill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate missing specifications from existing source code?

You generate missing specifications by analyzing code, documentation, and git history to extract observable behavior and surface user-facing features as structured specs. This targets functional code paths and repository gaps to provide product clarity and traceability.

How do I map code paths to documentation to find missing specs?

Mapping code paths to documentation involves comparing code against existing specs to surface gaps, conflicts, and stale mappings. A YAML mapping schema persists this relationship to track functional, architectural, and utility paths across the repository.

What is the best way to backfill specs incrementally across git history?

The best way to backfill specs incrementally is using session-state persistence to track progress across runs. This approach compares functional code paths against the specs tree, verifying alignment and persisting changes via state files to handle ongoing updates.

Do I need git and yq installed to backfill documentation from a repository?

Yes, you need git and yq installed to backfill documentation from a repository. Git history is analyzed to extract observable behavior, while yq processes the YAML mapping schema and session-state files required for spec generation and verification.

Can I target specific code paths for spec generation instead of the whole repository?

Yes, you can target specific code paths for spec generation instead of the whole repository. Targeted workflows allow you to focus spec generation and verification on particular functional areas, distinguishing them from architectural and utility paths.

What are the limitations of generating specs from code and documentation?

Generating specs from code and documentation relies on observable behavior extracted from existing paths, meaning undocumented or utility code may lack sufficient context. It requires a predefined YAML mapping schema and cannot infer features absent from git history or source files.