lens-complete

Validates and archives completed features in Lens governance repositories with atomic writes.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/crisweber2600/Lens.Core.Src --skill lens-complete-crisweber2600
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lens-complete
Source: https://github.com/crisweber2600/Lens.Core.Src/tree/main/_bmad/lens-work/skills/lens-complete
Command: npx skills add https://github.com/crisweber2600/Lens.Core.Src --skill lens-complete-crisweber2600

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve? Finalizing a feature in a Lens governance workflow requires checking phase state, verifying an approved retrospective, updating feature.yaml and feature-index.yaml, writing a summary, and cleaning up control-repo branches. Doing this manually risks inconsistent governance state and orphaned branches. ## Core Features & Use Cases - Precondition validation: The check-preconditions command verifies the feature phase is completable, retrospective.md exists with status approved, and surfaces advisory warnings for missing documentation or orphaned control-repo branches. - Atomic finalize with confirmation gate: The finalize command updates feature.yaml to phase complete, marks feature-index.yaml as archived, writes summary.md, and supports dry-run previews plus an explicit --confirm requirement before any irreversible write. - Control-repo branch orchestration: For 3-branch topologies, finalize validates branch ancestry, merges {featureId}-dev into main via a GitHub CLI pull request, and deletes the plan, feature, and dev branches; flat topologies sync the default branch directly. - Use Case: After finishing development and running a retrospective, ask the assistant to complete the feature. It checks preconditions, shows a dry-run plan, and on confirmation archives the feature and merges the dev branch to main. ## Quick Start Ask the assistant to complete the feature with ID my-feature after confirming the retrospective is approved, and review the dry-run plan before confirming the archive.

Frequently Asked Questions about lens-complete

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

FAQPage Schema
How do I complete or archive a feature in Lens governance?

Run the finalize command with the governance repo path and feature ID, first using --dry-run to preview changes, then --confirm to execute. The script updates feature.yaml to phase complete, marks feature-index.yaml as archived, and writes summary.md atomically.

How do I check if a feature is ready to be finalized?

Use the check-preconditions command with the governance repo and feature ID. It returns pass, warn, or fail as structured JSON, verifying the phase is completable and that retrospective.md exists with status approved.

Why does feature completion fail with retrospective_not_approved?

Finalize requires retrospective.md in the feature directory with YAML frontmatter status set to approved. If the file is missing or has any other status, the operation returns a blocking failure until you run the retrospective step and update the status.

Does finalize merge control repo branches automatically?

Yes, when --control-repo is passed with a 3-branch topology, it validates branch ancestry, creates and merges a PR from the dev branch to main via GitHub CLI, then deletes the plan, feature, and dev branches. Merge or cleanup failures surface as warnings without rolling back governance writes.

Can I preview archive changes before writing them?

Yes, pass --dry-run to the finalize command to receive a JSON list of planned changes without modifying any files. Non-dry-run execution requires explicit confirmation via --confirm or an interactive yes.