selftune
Observe real agent sessions, detect missed triggers, grade execution quality,
evolve skills through package evaluation (replay, baseline, grading, body,
unit tests, and post-deploy watch), and scaffold workflow skills from
repeated telemetry patterns.
You are the operator. The user installed this skill so YOU can manage their
skill health autonomously. They will say things like "set up selftune",
"improve my skills", or "how are my skills doing?" — and you route to the
correct workflow below. The user does not run CLI commands directly; you do.
Bootstrap
Search, load, and task-scoped activation do not require telemetry initialization.
Do not run setup merely to use existing local packages through SkillSearch.
If ~/.selftune/config.json does not exist, read workflows/Initialize.md
first. The CLI must be installed (selftune on PATH) before other commands
will work. Do not proceed with other commands until initialization is complete.
Primary Lifecycle
Default to this lifecycle unless the user explicitly asks for a low-level
workflow:
status
- use
selftune status
- for draft packages, use
selftune create status --skill-path <path>
verify
- use
selftune verify --skill-path <path>
- if verify reports missing readiness or evidence, follow the returned next
low-level command instead of rerunning the full chain
publish
- for draft packages, use
selftune publish --skill-path <path>
- for already-live skills,
publish usually means a validated Improve
action plus Watch
improve
- use
selftune improve --skill <name> --skill-path <path>
- let
--scope auto choose bounded package search automatically when the
skill already has package evidence or a draft package manifest
- set
--scope description|routing|body|package when the measured gap is
already clear and you want to force the mutation surface
- use
--scope package when the problem spans routing and body together or
you want measured frontier comparison before deciding what to publish
- omit
--dry-run when you want the winning package candidate promoted back
into the draft automatically
run
Treat eval generate, unit-test, replay, baseline, watch, and
body-specific evolution as advanced supporting workflows unless the user asks
for them directly or the default lifecycle fails.
Command Execution Policy
selftune <command> [options]
Commands vary in output format:
- JSON by default:
selftune doctor and selftune watch emit structured JSON on stdout.
- Text by default:
selftune status, selftune last, selftune verify, selftune publish, and selftune improve print human-readable text when stdout is a TTY.
- Mixed runtime output:
selftune run / selftune orchestrate emit JSON on stdout and a human report on stderr.
- JSON opt-in:
selftune sync --json enables structured JSON output.
- Server:
selftune dashboard starts a local SPA server — it does not emit data.
- MCP server:
selftune mcp serve exposes the read-only local skill registry over stdio.
- JSON:
selftune library reconciles installed, cached, draft, and archived packages.
- Search:
selftune skills search "task or collection" --json finds local skills without activating them; see workflows/SkillSearch.md.
For health remediation, prefer machine-readable guidance.next_command or
top-level next_command from selftune doctor output instead of inferring the
next step from prose.
Run selftune <command> --help for exact flags. Read
references/cli-quick-reference.md when you need the full flag reference.
Package Evaluation Pipeline (Creator Trust Loop)
When the user wants to improve a skill, default to this package evaluation
pipeline before jumping straight to mutation. Each step builds measured
evidence that the package is ready to publish:
draft — the package exists but is still incomplete
verify_blocked — the draft is still in one of the concrete readiness states: needs_spec_validation, needs_package_resources, needs_evals, needs_unit_tests, needs_routing_replay, or needs_baseline
verified — the trust gates pass and the skill is ready to ship
published — the skill was shipped successfully
watching — post-deploy monitoring is active
needs_improvement — measured evidence shows trigger, routing, body, or value gaps
unhealthy — hooks, telemetry, config, or selftune itself is broken
If the user asks "how do I know this skill works?" or "can I trust this skill
yet?", start with this pipeline, then use selftune status, the dashboard, or
the skill report to explain what is still missing, whether the package is ready
to publish, or whether it is already being watched live.
Device-Backed Proof Standard
When the user asks for proof using actual data, a before-and-after, or evidence
from their device, do not substitute synthetic fixtures, aggregate scores, or a
Git-only correction for the requested evidence.
- Resolve one genuine local session or trace to the original user input and
observed assistant output before evaluating a candidate.
- Freeze the source path, session ID, event timestamps, harness, model/config,
exact input, and relevant skill revisions or policy digests.
- Display a faithful baseline excerpt and the concrete candidate output side
by side. A pass-rate summary is not a substitute for the visible outputs.
- Grade both outputs against the same explicit behavioral checks and cite the
source events that satisfy or violate each check.
- Treat synthetic and Git-backed cases as plumbing or regression evidence,
not as proof that a real user trajectory improved.
- Do not declare the real-data requirement complete until at least one
on-device case has been shown. If an isolated hosted replay would expose
local data without approval, use an already-observed correction trajectory
or a local harness and state the harness limitation instead of fabricating
equivalence.
Workflow Routing
For find/search skills, use a collection for this task, temporary project skills,
or cleanup of task skills, use workflows/SkillSearch.md. Search first, load only
selected instructions, and clean up the task's activation before finishing.
| Trigger keywords |
Workflow |
File |
| create skill, new skill package, author skill, bootstrap skill, scaffold package, benchmark report, package report, publish report |
Create |
workflows/Create.md |
| verify skill, creator loop, can I trust this skill, how do I know this skill works, test this skill, ready to ship, ready to deploy |
Verify |
workflows/Verify.md |
| publish skill, ship skill, deploy skill, go live, release skill |
Publish |
workflows/Publish.md |
| search run, package frontier, candidate search, bounded package evolution, compare package candidates, optimize package, improve routing and body together, bounded evolution |
SearchRun |
workflows/SearchRun.md |
| grade, score, evaluate, assess session, auto-grade |
Grade |
workflows/Grade.md |
| evals, eval set, undertriggering, skill stats, eval generate |
Evals |
workflows/Evals.md |
| improve, optimize skills, make skills better, triggers, catch more queries, apply proposal, apply contributor proposal |
Improve |
workflows/Improve.md |
| evolve description, description-only evolution, improve trigger wording |
Evolve |
workflows/Evolve.md |
| evolve body, evolve routing, full body evolution, rewrite skill, teacher student, review local trace candidate, prepare candidate |
EvolveBody |
workflows/EvolveBody.md |
| evolve rollback, undo, restore, revert evolution, go back, undo last change |
Rollback |
workflows/Rollback.md |
| watch, monitor, regression, post-deploy, keep an eye on |
Watch |
workflows/Watch.md |
| doctor, health, hooks, broken, diagnose, not working, something wrong |
Doctor |
workflows/Doctor.md |
| ingest, import, codex logs, opencode, openclaw, pi, wrap codex |
Ingest |
workflows/Ingest.md |
| replay, backfill, claude transcripts, historical sessions |
Replay |
workflows/Replay.md |
| contributions, sharing preferences, opt in/out creator sharing, approve/revoke contributions |
Contributions |
workflows/Contributions.md |
| creator contributions, selftune.contribute.json, enable/disable creator contribution |
CreatorContributions |
workflows/CreatorContributions.md |
| signals dashboard, contributor signals, signals page, community dashboard, community data, contributor stats, signal health, how are signals, how is community |
SignalsDashboard |
workflows/SignalsDashboard.md |
| contribute, share, export bundle, export data, anonymized, give back |
Contribute |
workflows/Contribute.md |
| init, setup, set up, bootstrap, first time, install, configure selftune |
Initialize |
workflows/Initialize.md |
| cron, schedule, automate evolution, run automatically |
Cron |
workflows/Cron.md |
| schedule, selftune schedule, launchd, systemd, crontab, automation setup |
Schedule |
workflows/Schedule.md |
| background service, daemon, launch at login, persistent dashboard, menu bar service, service unavailable, stale service lock, repair lock, rotate local token |
Service |
workflows/Service.md |
| auto-activate, suggestions, activation rules, nag, why suggest |
AutoActivation |
workflows/AutoActivation.md |
| dashboard, visual, open dashboard, show dashboard, serve dashboard |
Dashboard |
workflows/Dashboard.md |
| evolution memory, session continuity, what happened last |
EvolutionMemory |
workflows/EvolutionMemory.md |
| grade baseline, baseline lift, adds value, skill value, no-skill comparison |
Baseline |
workflows/Baseline.md |
| eval unit-test, skill test, test skill, generate tests, run tests |
UnitTest |
workflows/UnitTest.md |
| run output evals, compare with no skill, benchmark skill output, eval iteration, blind comparison |
EvalRun |
workflows/EvalRun.md |
| eval composability, co-occurrence, skill conflicts, family overlap, sibling confusion |
Composability |
workflows/Composability.md |
| eval import, skillsbench, external evals, benchmark tasks |
ImportSkillsBench |
workflows/ImportSkillsBench.md |
| telemetry, analytics, disable analytics, opt out, tracking, privacy |
Telemetry |
workflows/Telemetry.md |
| orchestrate, autonomous, full loop, improve all skills, run selftune, run selftune loop, run with package search, automatic package improvement |
Run |
workflows/Run.md |
| sync, refresh, source truth, rescan sessions |
Sync |
workflows/Sync.md |
| badge, readme badge, skill badge, health badge |
Badge |
workflows/Badge.md |
| workflows, discover workflows, scaffold workflow skill, build skill from logs |
Workflows |
workflows/Workflows.md |
| recover, rebuild sqlite, recover db, legacy backfill |
Recover |
workflows/Recover.md |
| quickstart, getting started, onboard, first time setup, new user |
Quickstart |
workflows/Quickstart.md |
| uninstall, remove selftune, clean up, teardown |
Uninstall |
workflows/Uninstall.md |
| repair, rebuild usage, fix skill usage, trustworthy usage |
RepairSkillUsage |
workflows/RepairSkillUsage.md |
| unused skills, inactive skills, duplicate installations, outdated skill versions, consolidate skills, remove skill, prune skills, clean up skills, skill portfolio, quarantine skill, restore skill |
SkillPortfolio |
workflows/SkillPortfolio.md |
| skill library, all skills, installed locations, cached skills, archived skills, reconcile skills |
Library |
workflows/Library.md |
| skill set, suggest skill sets, classify skills, skill categories, co-used skills, project skills, reusable skill setup, link skills, symlink skills, apply skills to project, project profile, add skill set to project, set up project skills |
SkillSets |
workflows/SkillSets.md |
| export canonical, canonical export, canonical telemetry, push payload |
ExportCanonical |
workflows/ExportCanonical.md |
| hook, run hook, invoke hook, manual hook, debug hook |
Hook |
workflows/Hook.md |
| codex/opencode/cline/pi hooks, platform hooks, non-claude hooks, multi-agent |
PlatformHooks |
workflows/PlatformHooks.md |
| registry, distribute, push/suggest/install/sync/rollback skill, submit local skill changes, team skills |
Registry |
workflows/Registry.md |
| export, dump, jsonl, export sqlite, debug export |
Export |
(direct: selftune export) |
| status, health summary, skill health, how are skills, run selftune |
Status |
(direct: selftune status) |
| last, last session, recent session, what happened |
Last |
(direct: selftune last) |
Workflows Grade, Improve, Watch, and Ingest also run autonomously via selftune orchestrate.
When package evaluation evidence exists, selftune orchestrate (aliased as selftune run)
can automatically select package-level bounded search instead of description-level evolve.
Interactive Configuration
Before running mutating workflows (evolve, evolve-body, evals, baseline), consult
references/interactive-config.md for the pre-flight configuration pattern, model
tier reference, and quick-path rules.
Specialized Agents
selftune bundles focused agents in agents/. Read the relevant agent file and
follow its instructions — either inline or by spawning a subagent.
| Trigger keywords |
Agent file |
When to use |
| diagnose, root cause, why failing, debug performance |
agents/diagnosis-analyst.md |
Recurring low grades or unclear failures after doctor/status |
| patterns, conflicts, cross-skill, overlap |
agents/pattern-analyst.md |
Skills overlap, misroute, or interfere |
| review evolution, check proposal, safe to deploy |
agents/evolution-reviewer.md |
Before deploying high-stakes or marginal evolutions |
| set up selftune, integrate, configure project |
agents/integration-guide.md |
Complex setup: monorepos, multi-skill, mixed-platform |
| local trace candidate, evidence cohort proposal |
agents/evidence-cohort-teacher.md |
Prepare a bounded review-only body candidate from trace patterns |
Advanced Workflows
Load these when the user explicitly asks for a low-level step, when the primary
lifecycle fails, or when debugging needs deeper evidence:
workflows/Evals.md
workflows/UnitTest.md
workflows/EvalRun.md
workflows/Baseline.md
workflows/Replay.md
workflows/Watch.md
workflows/Evolve.md
workflows/EvolveBody.md
workflows/Composability.md
workflows/ImportSkillsBench.md
workflows/SkillPortfolio.md
workflows/SkillSearch.md
workflows/SkillSets.md
workflows/Service.md
Negative Examples
These should NOT trigger selftune — near-misses that share keywords:
- "Fix this React hydration bug" — general debugging, not skill improvement
- "Create a PowerPoint about Q3 results" — pptx skill, not selftune
- "Run my unit tests" — project tests, not skill eval tests
- "How do I use the Research skill?" — skill usage, not improvement
- "Generate a report from this data" — content generation, not skill evolution
- "My build is failing" — project issue, not selftune health
- "Evaluate this code for security issues" — code review, not session grading
- "Improve this function's performance" — code optimization, not skill optimization
If a requested skill is already available, follow it directly. If the user asks
to find skills, bring a collection into this project, or use it temporarily,
route to SkillSearch. Improvement requests still use the evaluation lifecycle.
Creator-Directed Contribution
This skill ships a selftune.contribute.json config that enables creator-directed
signal relay. When users install selftune and approve contribution, anonymous
usage signals (trigger, grade, miss_category) are relayed to the selftune
creator to improve the skill for everyone.
- The
creator_id in the bundled config is the creator's public Creator ID.
- Users opt in via
selftune contributions approve selftune.
- No raw session content is ever shared -- only privacy-safe aggregate signals.
- See
workflows/CreatorContributions.md for creator-side setup.
- See
workflows/Contributions.md for end-user opt-in/opt-out.
Routing keywords: creator contribution, selftune signals, dogfood relay,
community contribution, signal sharing, opt in creator, creator UUID.
Additional References
Load these on demand — do not read unless needed for the current task:
| Reference |
When to read |
references/cli-quick-reference.md |
Need exact CLI flags beyond --help |
references/troubleshooting.md |
Diagnosing common errors |
references/examples.md |
Need step-by-step scenario walkthroughs |
references/creator-playbook.md |
Publishing skills others install; before-ship vs after-ship pipeline |
references/interactive-config.md |
Before mutating workflows |
references/grading-methodology.md |
Grading sessions or interpreting grades |
references/invocation-taxonomy.md |
Analyzing trigger coverage |
references/logs.md |
Parsing or debugging log files |
references/setup-patterns.md |
Complex platform-specific setup |
references/version-history.md |
Checking what changed between versions |
settings_snippet.json |
During initialization |
1---2name: selftune3description: Self-improving skills toolkit that watches real agent sessions, detects missed triggers, grades execution quality, and improves skill packages through evals, replay, baselines, review, and post-deploy watch. Use when verifying or publishing a skill, improving instructions or routing, checking skill health, grading sessions, viewing the dashboard, ingesting agent histories, auditing installed skills, finding and temporarily using local skills for a task, managing the local Skill Library, scaffolding reusable workflow skills, or running autonomous improvement loops. Trigger whenever a user asks about skill performance, health, triggers, undertriggering, overtriggering, evolution, evaluation, or how their skills are doing, even if they do not name SelfTune explicitly.4---56# selftune78Observe real agent sessions, detect missed triggers, grade execution quality,9evolve skills through package evaluation (replay, baseline, grading, body,10unit tests, and post-deploy watch), and scaffold workflow skills from11repeated telemetry patterns.1213**You are the operator.** The user installed this skill so YOU can manage their14skill health autonomously. They will say things like "set up selftune",15"improve my skills", or "how are my skills doing?" — and you route to the16correct workflow below. The user does not run CLI commands directly; you do.1718## Bootstrap1920Search, load, and task-scoped activation do not require telemetry initialization.21Do not run setup merely to use existing local packages through SkillSearch.2223If `~/.selftune/config.json` does not exist, read `workflows/Initialize.md`24first. The CLI must be installed (`selftune` on PATH) before other commands25will work. Do not proceed with other commands until initialization is complete.2627## Primary Lifecycle2829Default to this lifecycle unless the user explicitly asks for a low-level30workflow:31321. `status`33 - use `selftune status`34 - for draft packages, use `selftune create status --skill-path <path>`35362. `verify`37 - use `selftune verify --skill-path <path>`38 - if verify reports missing readiness or evidence, follow the returned next39 low-level command instead of rerunning the full chain40413. `publish`42 - for draft packages, use `selftune publish --skill-path <path>`43 - for already-live skills, `publish` usually means a validated `Improve`44 action plus `Watch`45464. `improve`47 - use `selftune improve --skill <name> --skill-path <path>`48 - let `--scope auto` choose bounded package search automatically when the49 skill already has package evidence or a draft package manifest50 - set `--scope description|routing|body|package` when the measured gap is51 already clear and you want to force the mutation surface52 - use `--scope package` when the problem spans routing and body together or53 you want measured frontier comparison before deciding what to publish54 - omit `--dry-run` when you want the winning package candidate promoted back55 into the draft automatically56575. `run`58 - use `selftune run`5960Treat `eval generate`, `unit-test`, `replay`, `baseline`, `watch`, and61body-specific evolution as advanced supporting workflows unless the user asks62for them directly or the default lifecycle fails.6364## Command Execution Policy6566```bash67selftune <command> [options]68```6970Commands vary in output format:7172- **JSON by default:** `selftune doctor` and `selftune watch` emit structured JSON on stdout.73- **Text by default:** `selftune status`, `selftune last`, `selftune verify`, `selftune publish`, and `selftune improve` print human-readable text when stdout is a TTY.74- **Mixed runtime output:** `selftune run` / `selftune orchestrate` emit JSON on stdout and a human report on stderr.75- **JSON opt-in:** `selftune sync --json` enables structured JSON output.76- **Server:** `selftune dashboard` starts a local SPA server — it does not emit data.77- **MCP server:** `selftune mcp serve` exposes the read-only local skill registry over stdio.78- **JSON:** `selftune library` reconciles installed, cached, draft, and archived packages.79- **Search:** `selftune skills search "task or collection" --json` finds local skills without activating them; see `workflows/SkillSearch.md`.8081For health remediation, prefer machine-readable `guidance.next_command` or82top-level `next_command` from `selftune doctor` output instead of inferring the83next step from prose.8485Run `selftune <command> --help` for exact flags. Read86`references/cli-quick-reference.md` when you need the full flag reference.8788## Package Evaluation Pipeline (Creator Trust Loop)8990When the user wants to improve a skill, default to this package evaluation91pipeline before jumping straight to mutation. Each step builds measured92evidence that the package is ready to publish:9394- `draft` — the package exists but is still incomplete95- `verify_blocked` — the draft is still in one of the concrete readiness states: `needs_spec_validation`, `needs_package_resources`, `needs_evals`, `needs_unit_tests`, `needs_routing_replay`, or `needs_baseline`96- `verified` — the trust gates pass and the skill is ready to ship97- `published` — the skill was shipped successfully98- `watching` — post-deploy monitoring is active99- `needs_improvement` — measured evidence shows trigger, routing, body, or value gaps100- `unhealthy` — hooks, telemetry, config, or selftune itself is broken101102If the user asks "how do I know this skill works?" or "can I trust this skill103yet?", start with this pipeline, then use `selftune status`, the dashboard, or104the skill report to explain what is still missing, whether the package is ready105to publish, or whether it is already being watched live.106107## Device-Backed Proof Standard108109When the user asks for proof using actual data, a before-and-after, or evidence110from their device, do not substitute synthetic fixtures, aggregate scores, or a111Git-only correction for the requested evidence.1121131. Resolve one genuine local session or trace to the original user input and114 observed assistant output before evaluating a candidate.1152. Freeze the source path, session ID, event timestamps, harness, model/config,116 exact input, and relevant skill revisions or policy digests.1173. Display a faithful baseline excerpt and the concrete candidate output side118 by side. A pass-rate summary is not a substitute for the visible outputs.1194. Grade both outputs against the same explicit behavioral checks and cite the120 source events that satisfy or violate each check.1215. Treat synthetic and Git-backed cases as plumbing or regression evidence,122 not as proof that a real user trajectory improved.1236. Do not declare the real-data requirement complete until at least one124 on-device case has been shown. If an isolated hosted replay would expose125 local data without approval, use an already-observed correction trajectory126 or a local harness and state the harness limitation instead of fabricating127 equivalence.128129## Workflow Routing130131For find/search skills, use a collection for this task, temporary project skills,132or cleanup of task skills, use `workflows/SkillSearch.md`. Search first, load only133selected instructions, and clean up the task's activation before finishing.134135| Trigger keywords | Workflow | File |136| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | --------------------------------- |137| create skill, new skill package, author skill, bootstrap skill, scaffold package, benchmark report, package report, publish report | Create | workflows/Create.md |138| verify skill, creator loop, can I trust this skill, how do I know this skill works, test this skill, ready to ship, ready to deploy | Verify | workflows/Verify.md |139| publish skill, ship skill, deploy skill, go live, release skill | Publish | workflows/Publish.md |140| search run, package frontier, candidate search, bounded package evolution, compare package candidates, optimize package, improve routing and body together, bounded evolution | SearchRun | workflows/SearchRun.md |141| grade, score, evaluate, assess session, auto-grade | Grade | workflows/Grade.md |142| evals, eval set, undertriggering, skill stats, eval generate | Evals | workflows/Evals.md |143| improve, optimize skills, make skills better, triggers, catch more queries, apply proposal, apply contributor proposal | Improve | workflows/Improve.md |144| evolve description, description-only evolution, improve trigger wording | Evolve | workflows/Evolve.md |145| evolve body, evolve routing, full body evolution, rewrite skill, teacher student, review local trace candidate, prepare candidate | EvolveBody | workflows/EvolveBody.md |146| evolve rollback, undo, restore, revert evolution, go back, undo last change | Rollback | workflows/Rollback.md |147| watch, monitor, regression, post-deploy, keep an eye on | Watch | workflows/Watch.md |148| doctor, health, hooks, broken, diagnose, not working, something wrong | Doctor | workflows/Doctor.md |149| ingest, import, codex logs, opencode, openclaw, pi, wrap codex | Ingest | workflows/Ingest.md |150| replay, backfill, claude transcripts, historical sessions | Replay | workflows/Replay.md |151| contributions, sharing preferences, opt in/out creator sharing, approve/revoke contributions | Contributions | workflows/Contributions.md |152| creator contributions, selftune.contribute.json, enable/disable creator contribution | CreatorContributions | workflows/CreatorContributions.md |153| signals dashboard, contributor signals, signals page, community dashboard, community data, contributor stats, signal health, how are signals, how is community | SignalsDashboard | workflows/SignalsDashboard.md |154| contribute, share, export bundle, export data, anonymized, give back | Contribute | workflows/Contribute.md |155| init, setup, set up, bootstrap, first time, install, configure selftune | Initialize | workflows/Initialize.md |156| cron, schedule, automate evolution, run automatically | Cron | workflows/Cron.md |157| schedule, selftune schedule, launchd, systemd, crontab, automation setup | Schedule | workflows/Schedule.md |158| background service, daemon, launch at login, persistent dashboard, menu bar service, service unavailable, stale service lock, repair lock, rotate local token | Service | workflows/Service.md |159| auto-activate, suggestions, activation rules, nag, why suggest | AutoActivation | workflows/AutoActivation.md |160| dashboard, visual, open dashboard, show dashboard, serve dashboard | Dashboard | workflows/Dashboard.md |161| evolution memory, session continuity, what happened last | EvolutionMemory | workflows/EvolutionMemory.md |162| grade baseline, baseline lift, adds value, skill value, no-skill comparison | Baseline | workflows/Baseline.md |163| eval unit-test, skill test, test skill, generate tests, run tests | UnitTest | workflows/UnitTest.md |164| run output evals, compare with no skill, benchmark skill output, eval iteration, blind comparison | EvalRun | workflows/EvalRun.md |165| eval composability, co-occurrence, skill conflicts, family overlap, sibling confusion | Composability | workflows/Composability.md |166| eval import, skillsbench, external evals, benchmark tasks | ImportSkillsBench | workflows/ImportSkillsBench.md |167| telemetry, analytics, disable analytics, opt out, tracking, privacy | Telemetry | workflows/Telemetry.md |168| orchestrate, autonomous, full loop, improve all skills, run selftune, run selftune loop, run with package search, automatic package improvement | Run | workflows/Run.md |169| sync, refresh, source truth, rescan sessions | Sync | workflows/Sync.md |170| badge, readme badge, skill badge, health badge | Badge | workflows/Badge.md |171| workflows, discover workflows, scaffold workflow skill, build skill from logs | Workflows | workflows/Workflows.md |172| recover, rebuild sqlite, recover db, legacy backfill | Recover | workflows/Recover.md |173| quickstart, getting started, onboard, first time setup, new user | Quickstart | workflows/Quickstart.md |174| uninstall, remove selftune, clean up, teardown | Uninstall | workflows/Uninstall.md |175| repair, rebuild usage, fix skill usage, trustworthy usage | RepairSkillUsage | workflows/RepairSkillUsage.md |176| unused skills, inactive skills, duplicate installations, outdated skill versions, consolidate skills, remove skill, prune skills, clean up skills, skill portfolio, quarantine skill, restore skill | SkillPortfolio | workflows/SkillPortfolio.md |177| skill library, all skills, installed locations, cached skills, archived skills, reconcile skills | Library | workflows/Library.md |178| skill set, suggest skill sets, classify skills, skill categories, co-used skills, project skills, reusable skill setup, link skills, symlink skills, apply skills to project, project profile, add skill set to project, set up project skills | SkillSets | workflows/SkillSets.md |179| export canonical, canonical export, canonical telemetry, push payload | ExportCanonical | workflows/ExportCanonical.md |180| hook, run hook, invoke hook, manual hook, debug hook | Hook | workflows/Hook.md |181| codex/opencode/cline/pi hooks, platform hooks, non-claude hooks, multi-agent | PlatformHooks | workflows/PlatformHooks.md |182| registry, distribute, push/suggest/install/sync/rollback skill, submit local skill changes, team skills | Registry | workflows/Registry.md |183| export, dump, jsonl, export sqlite, debug export | Export | _(direct: `selftune export`)_ |184| status, health summary, skill health, how are skills, run selftune | Status | _(direct: `selftune status`)_ |185| last, last session, recent session, what happened | Last | _(direct: `selftune last`)_ |186187Workflows Grade, Improve, Watch, and Ingest also run autonomously via `selftune orchestrate`.188When package evaluation evidence exists, `selftune orchestrate` (aliased as `selftune run`)189can automatically select package-level bounded search instead of description-level evolve.190191## Interactive Configuration192193Before running mutating workflows (evolve, evolve-body, evals, baseline), consult194`references/interactive-config.md` for the pre-flight configuration pattern, model195tier reference, and quick-path rules.196197## Specialized Agents198199selftune bundles focused agents in `agents/`. Read the relevant agent file and200follow its instructions — either inline or by spawning a subagent.201202| Trigger keywords | Agent file | When to use |203| ---------------------------------------------------- | ----------------------------------- | ---------------------------------------------------------------- |204| diagnose, root cause, why failing, debug performance | `agents/diagnosis-analyst.md` | Recurring low grades or unclear failures after doctor/status |205| patterns, conflicts, cross-skill, overlap | `agents/pattern-analyst.md` | Skills overlap, misroute, or interfere |206| review evolution, check proposal, safe to deploy | `agents/evolution-reviewer.md` | Before deploying high-stakes or marginal evolutions |207| set up selftune, integrate, configure project | `agents/integration-guide.md` | Complex setup: monorepos, multi-skill, mixed-platform |208| local trace candidate, evidence cohort proposal | `agents/evidence-cohort-teacher.md` | Prepare a bounded review-only body candidate from trace patterns |209210## Advanced Workflows211212Load these when the user explicitly asks for a low-level step, when the primary213lifecycle fails, or when debugging needs deeper evidence:214215- `workflows/Evals.md`216- `workflows/UnitTest.md`217- `workflows/EvalRun.md`218- `workflows/Baseline.md`219- `workflows/Replay.md`220- `workflows/Watch.md`221- `workflows/Evolve.md`222- `workflows/EvolveBody.md`223- `workflows/Composability.md`224- `workflows/ImportSkillsBench.md`225- `workflows/SkillPortfolio.md`226- `workflows/SkillSearch.md`227- `workflows/SkillSets.md`228- `workflows/Service.md`229230## Negative Examples231232These should NOT trigger selftune — near-misses that share keywords:233234- "Fix this React hydration bug" — general debugging, not skill improvement235- "Create a PowerPoint about Q3 results" — pptx skill, not selftune236- "Run my unit tests" — project tests, not skill eval tests237- "How do I use the Research skill?" — skill _usage_, not _improvement_238- "Generate a report from this data" — content generation, not skill evolution239- "My build is failing" — project issue, not selftune health240- "Evaluate this code for security issues" — code review, not session grading241- "Improve this function's performance" — code optimization, not skill optimization242243If a requested skill is already available, follow it directly. If the user asks244to find skills, bring a collection into this project, or use it temporarily,245route to SkillSearch. Improvement requests still use the evaluation lifecycle.246247## Creator-Directed Contribution248249This skill ships a `selftune.contribute.json` config that enables creator-directed250signal relay. When users install selftune and approve contribution, anonymous251usage signals (trigger, grade, miss_category) are relayed to the selftune252creator to improve the skill for everyone.253254- The `creator_id` in the bundled config is the creator's public Creator ID.255- Users opt in via `selftune contributions approve selftune`.256- No raw session content is ever shared -- only privacy-safe aggregate signals.257- See `workflows/CreatorContributions.md` for creator-side setup.258- See `workflows/Contributions.md` for end-user opt-in/opt-out.259260Routing keywords: creator contribution, selftune signals, dogfood relay,261community contribution, signal sharing, opt in creator, creator UUID.262263## Additional References264265Load these on demand — do not read unless needed for the current task:266267| Reference | When to read |268| ----------------------------------- | -------------------------------------------------------------------- |269| `references/cli-quick-reference.md` | Need exact CLI flags beyond `--help` |270| `references/troubleshooting.md` | Diagnosing common errors |271| `references/examples.md` | Need step-by-step scenario walkthroughs |272| `references/creator-playbook.md` | Publishing skills others install; before-ship vs after-ship pipeline |273| `references/interactive-config.md` | Before mutating workflows |274| `references/grading-methodology.md` | Grading sessions or interpreting grades |275| `references/invocation-taxonomy.md` | Analyzing trigger coverage |276| `references/logs.md` | Parsing or debugging log files |277| `references/setup-patterns.md` | Complex platform-specific setup |278| `references/version-history.md` | Checking what changed between versions |279| `settings_snippet.json` | During initialization |