원클릭으로
self-improve
Run the self-improvement pipeline to analyze usage, plan, and apply Claude Code configuration improvements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run the self-improvement pipeline to analyze usage, plan, and apply Claude Code configuration improvements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create, schedule, and manage autonomous AI-agent tasks with systemd timers
Create and manipulate Obsidian Canvas (.canvas) files using the JSON Canvas spec
Create a git commit with proper conventional commit message
Code generation, exploration, and image analysis via Codex CLI
Query Gemini CLI for quick lookups, deep research, and approach comparison
Populate styled ODT/OTT templates with content while preserving formatting
| name | self-improve |
| description | Run the self-improvement pipeline to analyze usage, plan, and apply Claude Code configuration improvements |
| user_invocable | true |
| argument_hint | [run|status|history|show <run-id>] |
Analyze Claude Code usage insights, plan configuration improvements, get human approval, and execute approved changes.
Prerequisite: The /insights command must have been run recently (within 14 days). This pipeline consumes the existing /insights report and facets — it does not regenerate them.
/self-improve or /self-improve runTrigger the self-improvement pipeline. This runs the four-stage process:
/insights report and facets, compare suggestions against current config, produce structured findingsTo trigger:
systemctl --user start claude-self-improve.service
Or run the pipeline script directly:
~/proj/AUTOMATE/insights/self-improve-pipeline
The pipeline will notify the user if the /insights report is missing or stale (>14 days old).
/self-improve statusShow the systemd timer status and last run outcome:
# Timer status
systemctl --user status claude-self-improve.timer
systemctl --user list-timers claude-self-improve*
# Last service run
systemctl --user status claude-self-improve.service
journalctl --user -u claude-self-improve.service --no-pager -n 30
/self-improve historyList recent pipeline runs with their outcomes. Read from ~/proj/AUTOMATE/insights/runs/:
# List all runs
ls -la ~/proj/AUTOMATE/insights/runs/
# For each run directory, summarize by reading:
# - pipeline.log (timestamps, stage progression)
# - analysis.json (finding count)
# - plan.json (item count)
# - approval.json (decision)
# - execution.json (success/failure counts)
Present results as a table with columns: Run ID, Findings, Plan Items, Approval, Executed, Cost.
/self-improve show <run-id>Display full details of a specific run. The <run-id> is the timestamp directory name (e.g., 2026-02-19_090000).
Read and present:
~/proj/AUTOMATE/insights/runs/<run-id>/pipeline.log — Timeline of events~/proj/AUTOMATE/insights/runs/<run-id>/analysis.json — All findings with categories and severities~/proj/AUTOMATE/insights/runs/<run-id>/plan.json — Planned changes and skipped findings~/proj/AUTOMATE/insights/runs/<run-id>/approval.json — Approval decision and method~/proj/AUTOMATE/insights/runs/<run-id>/execution.json — Per-item execution results (if approved)~/proj/AUTOMATE/insights/runs/<run-id>/plan-summary.md — Human-readable plan summary (includes required permissions)~/proj/AUTOMATE/insights/runs/<run-id>/pr-body.md — PR description body (if PR was created)Stage 1: Analyze Stage 2: Plan Stage 3: Approve Stage 4: Execute Stage 5: Publish
claude -p (read) -> claude -p (no tools) -> notify-send (human) -> claude -p (worktree) -> git push + gh pr
| | | | |
analysis.json plan.json approval.json execution.json PR to main
+ permissions + commit on branch
All artifacts stored in: ~/proj/AUTOMATE/insights/runs/<timestamp>/
Changes are committed on an isolated self-improve/<run-id> branch and a PR is opened for asynchronous review.
~/.claude/The pipeline is configured via the spirenix.cli.claude-code.selfImprove NixOS module options:
| Option | Default | Purpose |
|---|---|---|
enable | false | Enable the pipeline |
insightsDir | $HOME/proj/AUTOMATE/insights | Base directory |
repoDir | $HOME/nix-config/nixos | Git repo root for worktree branches |
schedule | Sun *-*-* 09:00:00 | Systemd timer schedule |
analysisModel | opus | Model for analysis stage |
planModel | opus | Model for planning stage |
executionModel | opus | Model for execution stage |
budgetAnalysis | 3.00 | Max USD for analysis |
budgetPlan | 3.00 | Max USD for planning |
budgetExecution | 5.00 | Max USD for execution |
approvalTimeout | 1800 | Seconds before auto-reject (30 min) |