cp-skill-revise-iterative

Solid

Iteratively revise a note for flow and cohesion, retaining numbered candidates and checking semantic fidelity before each continuation.

AI & Automation 81 stars 10 forks Updated today CC-BY-4.0

Install

View on GitHub

Quality Score: 89/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## EXECUTE NOW **Target: $ARGUMENTS** (exactly one note path or filename — if empty, ask which note) ### Step 0: Resolve the file Resolve `$ARGUMENTS` to a full path. If it's a bare filename, search `kb/notes/` for a match. Read the file to confirm it exists and capture the original content. ### Step 1: Initialize ``` i=0 source_file=<resolved path> ``` Copy the original to `${source_file}.0` — this is the baseline for the first revision pass. The workflow makes substantive editorial changes. Remove `user-verified: true` from `${source_file}.0` if present, and keep it absent from every generated revision. Do not remove it from the original until the user accepts a revision; applying an accepted revision revokes the prior attestation automatically. ### Step 2: Revision loop Run the following loop. **Max iterations: 5** (hard cap to prevent runaway). #### 2a. Run non-interactive revision ```bash claude -p "Revise $(basename ${source_file}).$i for flow, readability, and cohesion. Preserve all semantic content, claims, and structure. You MAY improve the title (# heading) and description frontmatter field if you see a clear improvement — but do not change tags, type, or traits. Focus on: sentence-level clarity, paragraph transitions, removing filler, tightening prose." \ --allowedTools "Read,Edit,Write" \ --max-turns 10 ``` Run this from the directory containing the file so relative paths work. #### 2b. Verify the revision happened Read `${source_file}.$i` after ...

Details

Author
zby
Repository
zby/commonplace
Created
4 months ago
Last Updated
today
Language
Python
License
CC-BY-4.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

cp-skill-revise-autoreason

Experimentally revise a note with fresh critic, author, synthesizer, and blind-judge agents while retaining the incumbent as fallback.

81 Updated today
zby
Code & Development Listed

paper-revision-editor

Revise, copy-edit, line-edit, polish, tighten, or give editorial feedback on an academic paper section; make it clearer to non-specialists, less AI-sounding and more human to read; read a whole paper cold as its intended reader and report where it stops working; check cross-section consistency; cut a section toward a length limit; respond to reviewer comments; draft, improve, or tighten a response-to-reviewers letter; route number checks against the repository data and analysis pipeline, figure regeneration, and new analyses to the gated analyst lane (/paper:verify-numbers, /paper:figures, /paper:analyze), and citation or novelty checks to the gated scholar lane (/paper:scholar). Diagnoses logical flow, argumentation, exposition, narrative spine, copyediting, and reader experience while preserving voice, citations, and numerical claims. Not for drafting new sections from notes, citation formatting or BibTeX, LaTeX compilation, pure typo lists, or non-academic prose.

3 Updated today
ipeirotis
AI & Automation Listed

arcanea-revision-ritual

Transform rough drafts into polished work through systematic revision. Multiple passes, specific focus, and the discipline to kill your darlings. The alchemical process of making good work great.

6 Updated today
frankxai