midnite-refine

Deepens uncompleted phase planning docs in .midnite/tasks/ through staged audits and rewrites.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/bilo-io/midnite-studio --skill midnite-refine-bilo-io
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: midnite-refine
Source: https://github.com/bilo-io/midnite-studio/tree/main/.agents/skills/midnite-refine
Command: npx skills add https://github.com/bilo-io/midnite-studio --skill midnite-refine-bilo-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Phase planning documents often contain vague items, stale file references, and unresolved decisions that force an executing model to guess. This Skill audits an existing uncompleted phase doc against the actual repository, resolves open questions with the human, and rewrites the doc so any model can execute it without ambiguity. ## Core Features & Use Cases - Evidence-based audit: Reads the chosen phase doc in full, dispatches read-only subagents to verify file paths, symbol signatures, and recently landed changes, then prints a terse gap report grouped by area. - Human-in-the-loop scoping: Stops at five stages to let the user pick the phase, choose expansion areas, set rewrite posture, and answer drill-down questions whose answers change the written plan. - Structured rewrite and index sync: Rewrites the doc in place with a "Refined: xN" stamp, nested detail bullets, resolved decisions, and verification lines, then recomputes progress counts in _INDEX.md and commits doc-only changes to main. - Use Case: Before running an implementation pass on Phase 26, invoke the refine workflow to fix dead links, name exact symbols and IPC channels, resolve open questions, and stamp the doc so the executor never has to make a judgement call. ## Quick Start Run the midnite-refine workflow on phase 26 to audit it against the repo, resolve its open decisions with me, and rewrite the doc to an executable standard.

Frequently Asked Questions about midnite-refine

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

FAQPage Schema
How do I make a phase plan doc executable by an AI coding agent?▼

Audit the doc against the repository, then rewrite each item to name its files, the exact symbol and signature, the rule rather than the goal, the chosen implementation, and how it is verified. This Skill automates that audit-and-rewrite loop with human checkpoints.

What is the difference between ideating, refining, and creating a phase?▼

Ideating invents a new phase doc, refining deepens an existing uncompleted one without writing code, and creating builds a slice of a phase. Refinement sits between the two and never ticks checkboxes, opens PRs, or touches code.

Does the refine workflow write code or open pull requests?▼

No. It is doc-only work that lands directly on main, staging only the phase doc and _INDEX.md by explicit path. It never writes code, never opens a PR, and never marks items complete.

Which phases are eligible for refinement?▼

A phase is refineable if it has open in-scope items, meaning status TODO or WIP under 100 percent. Themes already claimed by an in-flight implementation loop are excluded to avoid collisions.

Why must _INDEX.md be updated after refining a phase doc?▼

Refinement usually raises the total item count, which makes every progress number in the index wrong. The Skill recomputes done/total counts, redraws the progress bar, updates the Refined column, and runs the tracker drift guard.