Skip to content
Back to skills

Self Improve

ASecurity

Use when running ChaosEngine Learning Session self-improve. Harness lessons are GitHub issues only. Product lessons may queue after delivery or on request.

  • 5 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 24, 2026
ai-agentspythonrustgobashgitperformance

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add ShaftHQ/chaosengine-harness --skill self-improve --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Self Improve?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Self Improve
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shafthq-self-improve/badge)](https://www.skillsdirectory.com/skills/shafthq-self-improve)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: self-improve
description: >-
  Use when running ChaosEngine Learning Session self-improve. Harness lessons
  are GitHub issues only. Product lessons may queue after delivery or on request.
permissions:
  - read
  - write
---

# self-improve — ChaosEngine learning & adapting

Lean CE-native skill informed by Task Observer methodology
(Eoghan Henn / rebelytics, **CC BY 4.0** — see [LICENSE](LICENSE) and
[UPSTREAM.md](UPSTREAM.md)).

## When

- **Primary:** root-owned Learning Session after every final delivery (owner approval, publish done, final PR merged), automatic: lessons diff against the skills, one spec issue, ONE PR (`skip-release-notes`, MERGE method) babysat to merged. Never arm `gh pr merge --auto`.
- **Secondary:** explicit operator request mid-session.
- **Not:** every casual turn, and never the Learning Session PR's own merge.
- A lesson already shipped in the delivery pull request is not a new issue. Finalize with nothing durable.

If `assess` refuses `novel_success` under the one-incident rule, still
finalize: file or update the durable lesson tickets, then complete finalize
without inventing a second incident for the same success signal.

## Adopter instructions and upstream tickets

A project lesson updates that adopter's specialized instructions (pack,
profile, or project rules) for token use, accuracy, or performance in the
learning change. A harness lesson is redacted and filed on the configured
upstream (`scripts/ci/chaos-engine-upstream.txt` external-example or
`CHAOS_ENGINE_UPSTREAM_REPO`) with the user's `gh` account only after machine
consent. `python3 .chaos-engine/runtime/learning_session.py consent allow` records
the standing approval. `consent deny` stops it. Unknown consent asks once,
records pending, and does not file again until the user answers.

## Dual track

1. **Harness** — skills, hooks, MemPalace, Graphify, installer/doctor. GitHub
   issue only. Never a local queue and never chat.
2. **Product** — enhancements for the product under development (queued issues).

Details: [references/observation-taxonomy.md](references/observation-taxonomy.md).
Product track: [references/product-track.md](references/product-track.md)
(product issues/evals + ChaosGauge link; CLI/doctor/silent-verify over essay tickets).
Activation: [references/activation.md](references/activation.md).
Adopt/reject research: [references/research-adopt-reject.md](references/research-adopt-reject.md).
Roadmap: [../../references/self-improve-master-plan.md](../../references/self-improve-master-plan.md).
Research/explore isolation (harness): [../../references/context-firewall.md](../../references/context-firewall.md).

## How (wraps learning.py)

1. Classify each finding (harness vs product; category allow-list).
2. Write minimal fields only: `category`, `title`, `lesson`, `proposedChange`,
   `benefit`, `estimatedTokens`.
3. File a harness lesson as a GitHub issue. Queue only a product lesson
   through `learning.py --track product`.
4. Never auto-install skill patches; stage proposals for human/CI review.
5. "Nothing durable" is a valid outcome only when no actionable retrospective line remains. File that line remotely first. The chat note is not the record.
6. A lessons pull request lands only when it states the concrete outcome the
   lesson would have changed: time, a defect, or a failure avoided. The body
   has a `## Outcome changed` section with that statement. A title starting
   with `Lesson` or `Lessons` is a lessons PR. The PR body gate rejects one
   that lacks the section. A candidate that fails the bar is one append-only
   line in `.chaos-engine-state/lesson-notes.log` (`record_lesson_note`), not
   a pull request. Zero-trigger rule retirement is
   [rule-retirement](../../references/rule-retirement.md).
6b. When the lessons PR (or any ChaosEngine improvement PR born from a
   reflection) lands, attach the **full detailed markdown lessons file**
   (safe-to-share) in-tree or in the PR body — not a compressed summary. See
   [reflection-checkpoints](../../references/reflection-checkpoints.md).
7. Refine this protocol when traces show skipped Learning Sessions, local
   writers reviewing their own diffs, or queue-only lessons that never became
   issues. Self-development has no cap.
8. Do not write unverified model output into trusted memory, heuristics, or skills.
   A lesson that cannot name an outcome does not become a skill.

Example:

A harness example is a GitHub issue, not a queue file. A product example:

```bash
python3 .chaos-engine/runtime/learning.py queue \
  --track product \
  --state .chaos-engine-state/learning \
  --upstream Owner/ExampleRepo \
  --candidate .chaos-engine-state/learning-candidate.json
```

## Metrics / verify (zero-LLM)

```bash
python3 .chaos-engine/runtime/learning.py metrics
python3 .chaos-engine/runtime/silent_verify.py session-start-budget
python3 .chaos-engine/runtime/retrieve.py heuristics --top 3
python3 .chaos-engine/runtime/significance.py list
python3 .chaos-engine/runtime/skill_compress_audit.py audit --skill self-improve
python3 .chaos-engine/runtime/meta_optimize.py review
python3 .chaos-engine/runtime/draft_skill_pr.py status
```

SessionStart injects compact locators plus the identity body, and falls back to the path line when the file is missing or the body would exceed the byte budget; prefer CLI over MCP for the same job.
Mid-session: mark **significant** friction only via `significance.py` (soft
fail/deny hooks already write tiny state notes) — never Task Observer.
Skill bodies: `skill_compress_audit.py` proposes compress diffs only; never auto-apply.
Periodic: `meta_optimize.py review` (offline cadence — not continuous).
Draft skill PRs: `draft_skill_pr.py` opt-in only (default OFF; never auto-merge).
That covers the automated drafter only; the Learning Session's own lessons PR
runs the normal PR gates and auto-merges.
See [meta-optimize](../../references/meta-optimize.md) and
[draft-skill-pr](../../references/draft-skill-pr.md).

## Local smoke

```bash
# From a temp project with ChaosEngine installed, or the source tree:
python3 -c "from pathlib import Path; assert Path('chaos-engine/skills/self-improve/SKILL.md').is_file()"
# Confirm learning.py queue --track harness exits non-zero and writes no queue.json.
```


## Retrospective

Write the learning retrospective only after the merge SHA exists and after subagents and monitors have exited. A non-required check must not start the note and must not be the only reason the note waits.

One closing note. The first required question is:

what can we learn from what happened so far for our harness or memory modules to avoid such failures in the future?

The answer follows Start-Stop-Continue. Each line is a behavior. The note ends with one next action.

- what happened, with the external proof
- why it happened
- continue doing
- stop doing
- start doing
- next action: one change, or nothing actionable

An actionable line would change a later session and is not already shipped on
the default branch or already an open issue. File it with `gh` before the note,
then cite the issue URL on that line. Cite an existing issue instead of opening
a duplicate.

- **Upstream:** a ChaosEngine change (skills, hooks, installer, roles, identity,
  companions, or overlay references). File it on the configured upstream
  repository (`scripts/ci/chaos-engine-upstream.txt` external-example or
  `CHAOS_ENGINE_UPSTREAM_REPO`).
- **Private:** a change only for the project that uses ChaosEngine (product
  code, project rules, or adopter workflow). File it on that project's
  repository.

`nothing actionable` is the only close with no URL. Local memory, a lesson
note, and this chat note are not tracking. Do not estimate tokens, model
price, or currency in this note. A host meter and an empty local ledger are
not the same number. `session_token_usage.py` stays the ledger for local
dispatch records. Finalize does not attach it.

## Enhancements

Close the note with one Enhancements block after the next action.
Every bullet in that block starts with `shipped:`, `tracked:`, or `rejected:`.
`shipped:` and `tracked:` each cite one `https://github.com` pull, issue, or commit URL.
`rejected:` names a concrete reason; `out of scope`, `later`, and `separate decision` are not reasons.
`nothing actionable` belongs here only when the block has no `tracked` bullet and no unmarked bullet.

Files in this skill

  • LICENSE729 B
  • SKILL.md8.2 KB
  • UPSTREAM.md513 B
  • references/activation.md2.9 KB
  • references/observation-taxonomy.md1.6 KB
  • references/product-track.md3.3 KB
  • references/research-adopt-reject.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.