Skip to content
Back to skills

Autonomous Codebase Improver

ASecurity

Improve a repository across work lanes.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentsgogitsecurityperformance

Security analysis

A100/100

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

Scanned December 1, 2026

npx -y skills add TrebuchetDynamics/kit --skill autonomous-codebase-improver --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Autonomous Codebase Improver?

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

Security grade badge for Autonomous Codebase Improver
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trebuchetdynamics-autonomous-codebase-improver-kit/badge)](https://www.skillsdirectory.com/skills/trebuchetdynamics-autonomous-codebase-improver-kit)

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: autonomous-codebase-improver
description: "Improve a repository across work lanes."
license: MIT
---

# Autonomous Codebase Improver

Apply the [shared Ponytail method](../shared/PONYTAIL.md) within this workflow's scope.

Use the [ASD-STE100 and project language rules](../shared/COMMUNICATION.md) for user-facing text.

Use for open-ended improvement across correctness, security, performance, design,
UI/accessibility, reliability, tests, delivery and docs. Not a second runner,
scheduler or replacement for Orbi delivery. A known defect, fixed plan or audit-only
request keeps its narrower workflow.

Read the [host and authority adaptations](../shared/PI-TOOLSET.md), then the pinned
[campaign protocol](upstream/PROTOCOL.md) and relevant selection/recovery references.
This adapter overrides their Pi-only worker requirement, repeated approval
ceremonies and separate conversation-only task-state convention. GitHub Issues
own the backlog; this authorized campaign preserves its scope, actual ownership,
independent review, PR gates and acceptance.

## Local authority rules

User instructions and repository policy still govern. These rules take precedence
over conflicting upstream instructions:

| Area | Rule for this adapter |
| --- | --- |
| Execution | Use discovered host-native capabilities. In-session implementation without a delegated worker is allowed only when repository policy permits it and independent review is available. |
| Review | Require fresh independent review of the actual slice delta. Missing review capability keeps discovery read-only. Never self-approve or install tools to bypass this gate. |
| Decisions | Reuse accepted scope and routine local implementation authority. Ask only for genuinely missing product, risk or external-action authority. |
| Task state | The coordinator reconciles GitHub Issues through supported issue tools. Workers report results without changing owned contracts or preserved legacy `tasks/`. Missing capability means read-only discovery and an exact blocker report. |
| Limits | Continue within this session by default. Explicit one-improvement, read-only, time, budget and pause/stop limits win. |
| Delivery | Follow existing local commit and integration authority; an issue claimed through `/orbi now` is delivered by its publish step, and Orbi reviews and merges it. Push, deployment and live qualification remain separate and need their corresponding authority. |

## Current-session campaign

1. Orient on repository tasks, actual source, ownership and checks. Establish scope,
   non-goals, explicit limits and prior authorization. Default to continuous work
   **within this session**; an explicit one-improvement request stops after one.
2. Rank at most three evidenced candidates by consequence, confidence, reversibility
   and validation cost across applicable lanes. Record coverage and deferred leads
   in the receipt, or as an issue comment once a task is chosen (see below). Refresh an underexplored lane after at
   most two accepted slices or investigation-only steps. Urgent security/data-loss
   work may defer this exploration: record the consequence, deferred seam and next
   revisit point at each refresh. This exception does not override scope or limits.
   Do not manufacture edits for coverage.
3. Choose one bounded task with acceptance and checks. For new or refined records,
   follow the [GitHub issue contract](../shared/PLAN-HANDOFF.md). Never implement an
   issue Orbi can also take: claim an `ai-ready` issue first through
   [`/orbi now #N`](../orbi/references/now.md) and deliver it through that workflow's
   steps 3–5. Keep a new issue you will implement here under `ai-planning` until the
   PR that says `Fixes #N` merges; never add `ai-ready` to it, because Orbi would
   implement it again from its own branch.
   Reuse accepted decisions and routine local implementation authority. Park genuinely gated work with an exact
   missing decision; continue independent authorized work rather than retrying a hold.
4. Check [pre-slice capacity](#pre-slice-capacity) before mutation. Establish a
   recoverable baseline and sole-writer ownership. Use the host's supported execution
   path and discovered capabilities, not assumed Pi agent names. If independent
   review cannot be obtained, keep discovery read-only and report the blocker.
5. Validate the actual slice delta, obtain fresh independent review and apply the
   [acceptance checklist](#acceptance-and-recovery). Worker success is not acceptance.
   Unknown active writer status retains ownership. Stop rather than launch a
   replacement or reset files.
6. Emit a progress receipt, refresh candidates/coverage and continue within limits.
   An empty shortlist triggers bounded discovery with a named seam and question.
   Claim exhaustion only after a fresh evidence-backed pass across applicable
   scoped lanes and coverage of each explicit task or collection member. Record
   evidence and reasons for non-applicable lanes. One clean seam is not exhaustion.
   If no actionable candidates remain, report "no further actionable candidates
   found." All useful work gated produces a blocked report. Pause/stop, an explicit
   one-improvement limit or insufficient resources produces a checkpoint with
   remaining coverage and next action, not completion of the whole objective.

Ordinary child workers never inherit this controller or delegate. Tools that write
caches or test outputs also need exclusive ownership. Missing delegation alone is
not a requirement to install pi-subagents: follow the shared host translation.

## Pre-slice capacity

Inspect available time, context, token/spend and delegation limits before starting
or resuming a slice. Estimate the bounded implementation, required checks, fresh
review and room for fixes or safe recovery. Reviewer availability alone is not
sufficient when the remaining allocation cannot support that path.

Use exposed limits and observed costs. Label unavailable measurements rather than
inventing precise capacity. If a feasible path cannot be established, narrow the
slice within accepted scope or checkpoint before mutation. Do not increase budgets,
switch models or start another session to evade limits. Recheck before a fix round.
If capacity is lost mid-slice, retain ownership and hand off the unaccepted delta
and recovery state. Never bypass review or presume rollback is safe.

## Acceptance and recovery

Before accepting a slice:

- Compare focused checks with the recorded baseline. Classify pre-existing
  failures separately. Introduced regressions block further implementation until
  repaired or safely removed.
- Resolve each review finding. Revalidate substantive fixes and obtain focused
  independent follow-up review. A passing generic suite does not dismiss a finding.
- Confirm current slice-owned contents and path state match the reviewed state.
  Reconcile unexpected changes. If validation or fixes change reviewed content,
  refresh the actual delta, rerun affected checks and obtain review before acceptance.
- Apply the default cap of three review rounds per slice, including follow-ups.
  Earlier explicit limits still win. Unresolved blockers at the cap mean rejection,
  not acceptance or a reset of the round count. Safely remove only the rejected
  slice's attributable delta before continuing independent work. If safe recovery
  cannot be proved, stop with a blocked handoff and preserve existing work.

Use the pinned [compare-before-rollback procedure](upstream/references/delegation-and-recovery.md#lightweight-baseline-and-compare-before-rollback).
A timed-out validation command can leave mutating subprocesses alive, even after
its worker has ended. Retain exclusive ownership until those processes are
quiescent and their effects are reconciled. Do not start replacement checks,
rollback or another writer meanwhile. Use supported controls only on attributable
processes. If status remains unknown, hand off blocked with process/run identities
and the missing evidence. A timed-out check is not a pass.

## Progress notes and evidence

A campaign progress receipt is a report, not an engine verification receipt.
The coordinator saves progress, coverage and deferred leads as a comment on the
relevant issue through [the GitHub handoff](../shared/PLAN-HANDOFF.md); never edit
the issue body, which is the worker contract Orbi reads. Read the issue and
ownership again before commenting.
Do not create a second backlog. In read-only/no-write mode, report in conversation
only: do not change task records or write report files.

Use linked PRs, checks and independent review as delivery evidence. If GitHub is unavailable, report the unsaved update; leave legacy task records untouched.

**Receipt contents:** task/title and selection reason; baseline → actual result; paths,
checks and review disposition; accepted/rejected slices; ownership/run status;
coverage and blocked leads with revisit conditions; next action or stop reason;
commit/integration/push/live evidence separately.

**Example:** after accepted A, continue authorized independent B. If the user said
“one improvement,” checkpoint after A with B pending. A pause prevents new launches.
Upstream evaluation results are not evidence that this adapted campaign ran.
Use the [adapter evaluation scenarios](references/adapter-evaluation.md) when
checking these local rules. Offline checks validate packaging, not model behavior.


## Boundaries

- Not one known fix; publish ready work through the planners for Orbi.
- Not an architecture report; use `/improve-codebase-architecture`.
- Not test-suite reduction; use `/test-optimizer`.

**Done when:** the receipt accounts for accepted slices and their checks, or reports the bounded search, blocker or stop limit with remaining work. A checkpoint is not completion of the whole campaign.
[Source and hashes](UPSTREAM.json) · [MIT license](upstream/LICENSE).

Files in this skill

  • SKILL.md9.2 KB
  • UPSTREAM.json1.9 KB
  • references/adapter-evaluation.md9.2 KB
  • upstream/LICENSE1.2 KB
  • upstream/PROTOCOL.md7.9 KB
  • upstream/references/campaign.md6.9 KB
  • upstream/references/delegation-and-recovery.md10.6 KB
  • upstream/references/evaluation-receipt.md12.5 KB
  • upstream/references/pressure-scenarios.md9.8 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.