ワンクリックで
second-brain-delint
Work through open findings in the latest lint report one at a time — propose a fix, apply on approval, skip on rejection.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Work through open findings in the latest lint report one at a time — propose a fix, apply on approval, skip on rejection.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Read new or changed files in raw/, synthesise content into wiki/ topic articles, rebuild INDEX.md, and update the ingest manifest.
Extract text from a PDF, convert it to markdown, and write the result into raw/pdf/, ready for ingestion.
Initialize or update the Second Brain vault — creates folder structure, declares interests, configures Craft import scope, and generates CLAUDE.md.
Scan wiki/ for quality issues — contradictions, unsupported claims, and content gaps — and save a structured report to outputs/.
Continue an existing conversation thread by re-reading the wiki and appending a follow-up answer to the thread file.
Answer a natural-language question by synthesising content from wiki/, and save the response to outputs/.
| name | second-brain-delint |
| description | Work through open findings in the latest lint report one at a time — propose a fix, apply on approval, skip on rejection. |
| argument-hint | |
| user-invocable | true |
Read the latest lint report, walk through each open finding, and apply fixes with your approval.
/second-brain-delint
No arguments. Always operates on the most recent outputs/*lint*.md file.
List all files in outputs/ matching *lint*.md. Sort by filename (date-prefixed, so lexicographic order gives recency). Take the last one.
If no lint report exists:
No lint report found — run /second-brain-lint first.
Stop.
Read the lint report. Extract all <!-- sb:finding ... --> blocks where status="open". Also read their corresponding <!-- sb:proposal ... --> blocks (matched by id).
If no open findings:
No open findings — all issues resolved. ✓
Stop.
Report the count upfront:
Found N open findings in outputs/YYYY-MM-DD_lint.md
For each open finding in document order:
Print a header:
─── Finding fN of M ───────────────────────────────
Print the finding prose — the bullet text immediately preceding the sb:finding tag (the human-readable description of the issue).
Then branch by type:
acknowledge[No action needed — housekeeping note]
Mark status="applied" in the report file immediately. Continue to next finding.
run-ingestPrint the proposal:
Proposed: run /second-brain-ingest to fold this raw file into the wiki
File: <instruction value>
Run ingest now? [y/n]
y → invoke /second-brain-ingest. On success, mark status="applied".n → mark status="skipped".edit-wikiPrint the proposal. If confidence="low", prefix with a caution line:
⚠ I'm not certain about this fix — please verify before applying.
Then:
Proposed fix:
<instruction value>
Apply this fix? [y / n / e to edit the instruction]
y → invoke /second-brain-edit-wiki "<instruction>". On success, mark status="applied".n → mark status="skipped".e → prompt: Enter revised instruction:. Read the user's reply. Invoke /second-brain-edit-wiki "<revised instruction>". On success, mark status="applied".After each finding is resolved (applied or skipped), update outputs/YYYY-MM-DD_lint.md in place:
sb:finding tag, replace status="open" with status="applied" or status="skipped".sb:delint summary tag at the top:
open by 1applied or skipped by 1Write the updated file with the Write tool.
After all findings are processed:
─── Done ──────────────────────────────────────────
Applied: A | Skipped: S | Remaining open: R
Lint report updated: outputs/YYYY-MM-DD_lint.md
If any edits were applied, remind the user to run /second-brain-ingest if they want the wiki INDEX rebuilt (edit-wiki edits articles in place; INDEX is not rebuilt automatically).
raw/ or wiki/ directly — all wiki changes go through /second-brain-edit-wikiapplied unless the underlying skill call succeeded| Condition | Behaviour |
|---|---|
Lint report has no sb:finding tags | Inform user the report predates the delint format; ask them to re-run /second-brain-lint |
| edit-wiki skill call fails | Report the error, leave finding status="open", continue to next |
| ingest skill call fails | Report the error, leave finding status="open", continue to next |
| Report file not writable | Report the error and stop — do not continue without being able to persist state |