Skip to content
Projekte

bjcoombs/ai-native-toolkit

Auf GitHub ansehen

Über uns

Claude Code plugin & Agent Skills for AI-native development: codebase readiness scoring (/assess), Six Thinking Hats deliberation (/huddle), AI-slop removal (/deslop), skill hardening (/skill-forge), and more.

Entwicklerwerkzeuge

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
+3
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

AI Native Toolkit

AI-readiness Assess Gate

/assess tells you how much an AI agent can safely do on its own in your repository. It also names the one change that would let the agent do more.

First time? Run /assess --tour. It assesses a small sample repository and walks you through the report a section at a time. Then you make the one fix that moves the sample up a Step.

This is a Claude Code plugin with skills and agents for AI-native development. It is also a set of standalone skills for any AI assistant. In Claude Code it runs locally against your own codebase, on whichever model you already pay for. Several of the skills also ship as standalone Agent Skills ZIPs. You can upload them to claude.ai, Claude Desktop, Cowork, or any assistant that supports the skills format, with no Claude Code required.

Want the skills without Claude Code? Download the ZIPs from the latest release and upload them in your assistant's Skills UI. The release notes link straight to that version's standalone skill bundle. Full walkthrough: Standalone skill ZIPs. Currently standalone: /assess, /huddle, /deslop, /skill-forge, /semantic-compress.

Project site: a one-page tour of the toolkit lives at https://bjcoombs.github.io/ai-native-toolkit/.

New here? The Map of Content is the navigation index: one trail to every skill, agent, and design doc in this repo. The CLAUDE.md contract holds the rules for anyone who edits the repo.

Here from the GitHub Marketplace? You found the AI-Readiness Assess Gate, the CI-gate half of this toolkit. It runs the same deterministic engine as the /assess skill on every pull request (complexity treemap, promissory-marker scan, doc-graph signals; zero AI tokens). It gates on what your .assess/config.toml opts into. Jump straight to Use as a GitHub Action. The rest of this README covers the full plugin, from which the action is carved.

Why this exists

When you hand work to an AI, does it behave like a brand-new hire? Or does it behave like an engineer with eighteen months in the org? Both can write correct code, so capability does not explain the difference. Externalized context does: where things live, which contracts are load-bearing, where the minefields are, and why the weird thing is weird. An AI contributor is structurally always the new hire. Every session starts with an empty head and sees the codebase through one narrow context window. So the whole question becomes: how much of the tenured engineer's implicit map has the codebase made explicit and navigable? With more of that map, a fresh agent behaves more like an engineer with eighteen months in the codebase.

One possible aim is an AI that grasps complexity humans no longer can, and that people trust blindly. That is not the aim here. An agent that is fluent about code nobody can verify is the dangerous case. The aim is a codebase so legible that the relevant slice fits one context window. The agent's answers stay anchored to code you can still check in ten seconds. Legibility you can trust, not omniscience you can't.

There's a second half, with the same ethic pointed the other way. When a contributor makes a mistake, the question is never "who do we blame". Ask instead what made that mistake possible. Then ask what would make it impossible next time. A bank doesn't give a new engineer production access and hope. It builds role-based access, staged environments, and CI that catches the error before it ships. Those guardrails don't signal distrust. They protect people from costly mistakes by design, and an AI contributor needs the same protection as a human. /assess scores exactly these: linters, architecture tests, CI gates, coverage, review automation. In positive terms: have we made the wrong thing hard in this codebase, and the right thing the path of least resistance? Give the contributor the map and the guardrails. /assess measures your distance from both.

The headline pieces are five skills:

  • /assess measures how ready a codebase is for AI agent contributors (the glossary explains each term in plain English):
    • The maturity model is a list of conditions. Each condition is one level of a practice. The run checks it with file:line evidence. Its truth tags, one or more, name what it keeps honest (behaviour, docs, structure, agent context and others).
    • The deterministic headline leads with the autonomy Step that the repo's contracts support, from 1 Assisted to 4 Autonomous loops. A named gate holds each Step past the first, and nothing else does. Examples are an instruction file, CI that turns red when a check breaks, and an enforced coverage gate. The headline also names the gate that blocks the next Step. A Step never moves because the catalogue grew.
    • Then comes "Catalogue coverage: N of M measured, V verified". This line says how much of the catalogue the run could read. It counts only conditions measured from the code or verified by a run or the platform (the evidence grade). A condition the run could not see appears with its reason and never counts as 0. The line is never a progress figure.
    • The run draws a Codecov-style complexity hotspot SVG and a doc-navigability graph SVG, both colour-blind-safe. It also draws an evidence waffle, a package map, a doc-drift map and a review strip. Then it writes a report and opens a PR in the target repo.
  • /huddle runs a structured multi-perspective deliberation with Six Thinking Hats. Team size follows Fibonacci numbers (solo -> debate -> huddle -> panel -> board). See it in action in a narrated visual explainer, built with this repeatable pipeline.
  • /deslop detects and removes the telltale signs of AI-written text: puffery, the rule of three, "not X but Y", filler diction, chatbot leakage, fabricated citations. It works as a silent quality gate while you write, or as an explicit audit/edit pass. It comes from Wikipedia's "Signs of AI writing".
  • /skill-forge hardens a skill (draft or current) through judge-panel refinement rounds until it clears a strict 3-tier promotion gate. This quality gate proves and promotes a skill after you author it. It uses the same team-lead pattern as /huddle, and its proof is that it forged itself.
  • /semantic-compress shrinks an LLM-directed document (a prompt, instruction set, or skill) and preserves what it does:
    • It points at core knowledge the model already holds, and keeps project-specific detail verbatim.
    • In Claude Code, an A/B behavioural-equivalence check gates whole-document distillation. Each cut gets proof, not a guess.
    • A directive-clarity pass rewrites latent-action instructions into ones that name the action.

Four more skills work across many repositories or across a doc set, and run in Claude Code only:

  • /reposync clones every non-archived, non-empty GitHub or GitLab repository you can access, and keeps the clones in sync. It offers partial (--partial) and shallow (--shallow-since) clones for analysis-only mirrors. --active-since skips dormant repositories, and --porcelain-json gives per-repository metadata.
  • /repostate writes a read-only report of each repository's remote state, plus org or group settings. The state covers open PRs or merge requests, default-branch CI, security alerts and branch protection.
  • /fleet runs the headless /assess signals across every repository under a /reposync root or in a list file. It rolls them up per group through a maturity model and keeps a dated run history for comparisons. It renders a heat map SVG and per-team next-steps pages. No model runs in the path that gathers the data.
  • /doc-contradictions finds documents that contradict each other or the code they describe. It uses one read-only Haiku comparer per doc cluster and cites both sides of each finding as path:line.

What /assess produces

A single run gives two paired SVG views, shown here on a real ~650k-LOC monorepo (file paths sanitized). The first asks can an agent find its way? The second asks what's risky to change?

Here is the same repo twice. Before is an already-good AI-native codebase. After is the same repo once its maintainers had worked through the Top 3 Actions from the /assess report. The story is that it gets measurably cleaner. Click any image for the full interactive SVG. Hover any node or block for its numbers.

Before After the Top 3 Actions
Doc-navigability graph: can an agent traverse the docs to the right place, and is what it finds still true?
Doc-navigability graph before the action sweep: 254 docs, 30% reachable from the entry point, 43 islands, 15 broken links Doc-navigability graph after the action sweep: 247 docs, 89% reachable from the entry point, 20 islands, 0 broken links
Complexity hotspot heatmap: which files are riskiest to change next week?
Complexity hotspot heatmap before the action sweep Complexity hotspot heatmap for the same repo after the action sweep

The measurable win. In the doc-navigability graph:

  • Reach from the entry point climbs from 30% to 89%.
  • Orphaned docs fall from 24% to 11%.
  • Disconnected islands drop from 43 to 20.
  • The 15 broken links are gone.

The rim of orphans thins and the islands reconnect. A red mark shows a doc that says one thing while its code does another, and those reds cool. The map an agent consults before it changes anything becomes honest. The heatmap keeps the same repo's complexity profile throughout. It tells you which territory is dangerous, while the graph tells you whether the map is honest.

How to read them.

Doc graph:

  • Structure encodes reach: centre = entry, rings = link-distance from entry, rim = unreachable, dashed ring = orphan, solid edge = link, dotted edge = reference.
  • Colour encodes staleness. Vivid red is a frozen doc beside churning code: the doc says one thing, the code does another.
  • Size encodes file length.

Heatmap:

  • Size encodes estimated tokens (~chars/4, the keyhole size unit). The familiar LOC is one hover away in the tooltip.
  • Hue encodes cyclomatic complexity (red = high).
  • Saturation encodes recent git churn (vivid = active).

The vivid-red blocks are the migration risk that an agent (or human) is most likely to break next week. Both SVGs are colour-blind-safe (OrRd ramp, no red-green).

The same lens, three real public repos

The pair above shows this toolkit's assessment of a private monorepo. Below, /assess runs unmodified against three public codebases in different languages, ordered by score. This is a calibration check. The model should discriminate between well-engineered projects, not rubber-stamp the famous ones. Click any image for the full interactive SVG. Hover any block for its numbers.

ktor (Kotlin) llama.cpp (C/C++) candle (Rust)
Complexity hotspot heatmap of the ktor Kotlin web framework: a calm treemap, worst file cyclomatic complexity 141 Complexity hotspot heatmap of the llama.cpp C/C++ inference engine: ggml-vulkan.cpp dominates as a large vivid-red block, cyclomatic complexity 4,123 Complexity hotspot heatmap of the candle Rust ML framework: concentrated complexity in tensor_tests.rs and the backend modules

What the spread shows. Three real projects land three full points apart, so the model reads enforcement, not reputation.

  • ktor scores highest because it alone has all the write-side trust signals. These are a CodeRabbit review bot, repo-wide explicitApi() type discipline, and a mandatory CI gate order. Its treemap also stays calm (worst file ccn 141, against llama.cpp's 4,123).
  • llama.cpp pairs strong CI and type checks with no coverage gates, no review bot, and no feedback loop. Its ggml-vulkan.cpp is the textbook hotspot: cyclomatic complexity 4,123, a single function at 350, 14k LOC, 289 commits in a year. You cannot miss that large vivid-red block.
  • candle is type-safe Rust with real CI, but lacks both read-side practices: no committed AGENTS.md/CLAUDE.md, and a fragmented doc graph. That caps how far its enforced write-side quality can carry the score.

The lizard cyclomatic-complexity engine scored Rust and Kotlin directly here, not the scc keyword fallback. This is a point-in-time snapshot from June 2026, on the earlier 0-8 layer score. The Step and its gates have since replaced that score. These scores move as the projects do, which is the whole point.

Five more views: the Step ladder and one llama.cpp run

/assess also draws five smaller diagrams beside the report. The Step ladder below is an illustrative sample. The other four come from one run against llama.cpp at commit 1f8baae (22 November 2026), the same public repo as the middle heatmap above. That run used the earlier Steps, which added one gate per Step. Its headline was Step 3, with "Catalogue coverage: 6 of 14 measured, 3 verified" and one condition not measured. Under the current Steps, Step 3 also needs review, linter and secrets guard evidence. Click any image for the full SVG. Hover any square, cell or tick for its numbers.

Step ladder (illustrative sample, not a llama.cpp reading)
Illustrative Step ladder: four rungs of agent autonomy, bottom to top. 1 Assisted: an agent can read and help with your code. 2 Supervised agent changes: an agent makes changes and a person reviews each one. 3 Unattended agent changes: agents make changes nobody has to watch. 4 Autonomous loops: agents run longer loops on their own. You are here on Step 3. The instruction, CI, review, linter and secrets guard gates below are in place. The next gates are highlighted: a coverage gate, wide review, agent permissions and a boundary map.
Evidence waffle Package map
Evidence waffle for llama.cpp: 24 conditions, each row a practice and each square one of its levels, the three Step-gate squares outlined; 3 met and verified, 3 met and measured, 4 met but only listed from config, 13 not met yet, 1 not measured Package map for llama.cpp's TypeScript import graph: the 20 largest of 77 packages as a matrix of row-imports-column cells; 106 cross-package imports, 84 of them through a front door
Doc-drift map Review strip
Doc-drift map for llama.cpp: the 15 docs furthest behind their code, of 82 mapped to code of their own; gguf-py/README.md leads with 435 commits to its code per edit of the doc Review strip for llama.cpp: 30 sampled merged pull requests, oldest first; 28 approved by someone other than the author; 2 reviewed but not approved, none merged without review, 5 with review-bot output

How to read them.

  • Evidence waffle: one square per condition of the maturity model, one row per model row. Dark teal is met and verified by a run or the platform. Mid teal is met and measured from the code or its history. Pale teal is met but only listed from config or a declaration (shown, never counted). Grey is not met yet, whether it would count or only be listed. Here 8 counted and 5 listed are grey, so 6 met plus the 8 counted grey make the "of 14". A hatched square was not measured, with its reason in the key. The verified and measured squares are the N in "Catalogue coverage".
  • Package map: row imports from column, darker for more imports. A lines-of-code bar stands beside each package. A corner mark shows an import that reaches past the target package's front door. It draws the 20 largest packages and states what it leaves out. The import graph builders read Python, Go, and TypeScript or JavaScript. They cannot read the C and C++ in llama.cpp, so the map there shows its TypeScript web UI.
  • Doc-drift map: one bar per doc with code of its own. Its length is the number of commits to that code per edit of the doc, since the last doc change. An amber bar is behind its code (past the dashed line at 2, or with a newer declared source). So gguf-py/README.md is the first doc to reread before an agent leans on it.
  • Review strip: one tick per sampled merged change, oldest first. The colour says approved, reviewed or merged without review, and a dot marks review-bot output. A run of unreviewed merges therefore shows where a single share would hide it. The five dots are review-bot output that the June snapshot above did not record.

Why this matters for an AI-driven codebase

Some codebases outgrow any single LLM context window and take regular changes from AI agents. There, code quality stops being a function of who knows what and starts being a function of what the system enforces. Norms ("we prefer X") fail because new contributors never read them, especially AI agents that start each session fresh. Contracts ("the build fails if you don't do X") work because the system enforces them, whoever is reading.

/assess gives you paired views to act on that:

  • The doc-navigability graph shows whether an agent can even find its way. You see how much of the docs it can reach, and which docs are stale maps of code that changes often.
  • The complexity SVG shows where the codebase is today, and which files will bite next week.
  • The assess-report.md beside them shows which practices are in place to stop it getting worse. Its headline gives the Step and the gate that blocks the next one. Its scorecard marks each of the practices below Present / Partial / Missing with concrete evidence.

The intent: keep codebases comprehensible as AI accelerates them

The deeper problem behind /assess is the oldest one in software maintenance. What happens when the people who understood the code leave, or the code outruns anyone's ability to understand it? When a system becomes incomprehensible, the instinct is to throw it away and start again. That instinct was wrong in 2000 (Joel Spolsky, Things You Should Never Do). It is wrong now, because a rewrite discards the undocumented behaviour and accumulated bug-fixes that a live system has earned.

What AI changes is velocity. An agent can generate change faster than a team can follow it. So a codebase can slide from modern to legacy in months rather than years. The transition is the same, but the clock is faster. That makes the discipline more important, not less.

So /assess rests on the accumulated practice of legacy-code engineering. Its reports name those anchors on purpose, because they carry weight that a reading agent recognizes:

  • "Legacy code is code without tests" (Michael Feathers, Working Effectively with Legacy Code). A complex, churning, untested file is already legacy. The answer is characterization tests, which pin actual behaviour, and seams. Then refactor in small increments, with Martin Fowler's strangler fig, never a big-bang rewrite.
  • Hotspots and change-coupling (Adam Tornhill / CodeScene). The complexity-×-churn heatmap and coupling findings are the version-control-aware form of legacy comprehension. They tell an agent where the danger and the hidden seams actually are.
  • Decide per component (the 7 Rs: retain, retire, rehost, replatform, refactor, re-architect, rebuild). Don't treat every flag as a refactor.

The goal is a codebase that stays legible to whoever, or whatever, works on it next. Its self-descriptions (docs, tests, types, instructions) stay honest under pressure, not merely present. That honesty lets an agent (or a new hire) act without first having to rediscover the whole system.

The report's scorecard has one row per practice, in the order you read them. It is detail, not a score: the Step reads its gates, and the per-tag strip groups conditions by truth tag. Older versions numbered these practices as layers 0-8. The numbers survive only inside the maturity model's row ids (layer-0-instructions and so on). They also survive in the alias that lets older configs and fleet history resolve.

In the same order, the practices run in three bands:

  • read-side: can the agent form a true picture?
  • write-side: can you trust it to produce good output?
  • meta: does the system keep itself honest?

What /assess measures gives the full list of conditions, their grades and their tags. The check reference page shows each one as a card with its rule, why and fix, and explains how to configure the checks. The scoring model records the decisions behind the model.

Make it yours. Your team may hold its own practice, such as a coverage gate of at least 80. To score it, follow Build your own practice. That guide copies a model, adds the practice and runs it with --levels.

Practice Band What it enforces
Agent instructions read Compact rules in CLAUDE.md / AGENTS.md / copilot-instructions; plus a navigable doc graph (can an agent traverse links to the right place, and is what it finds still true?)
Runtime legibility read Is the code actually live, and can the agent find out? Intra-repo dead-code signals + observability the agent can reach (logs/metrics/traces)
Code design (module structure) write Compile-time correctness via types: dimensional types, generated API clients, exhaustive enums
Linters run in CI, suppression cap write Style + correctness with rules for AI failure modes (suppressions, complexity gates, leftover TODOs)
Architecture boundaries and size write Structural rules as executable tests (depguard, ArchUnit-style boundary checks)
CI and the agent's local check write Every PR runs everything; a failed pipeline blocks merge
Coverage gates and truth pressure write Test discipline as a build contract
Review on merged pull requests write Design-level feedback (CodeRabbit, claude[bot]) that catches what linters can't
AI project management meta Retros, a task tracker, the feedback loop that keeps the contracts above current

The navigability model for agent instructions treats the docs as a link graph that an agent must traverse. It adapts the "Lint" health-check from Andrej Karpathy's LLM-wiki pattern (hubs, orphans, connectivity, an index.md catalog and log.md), and makes its structural checks deterministic. The semantic checks it also lists stay out of the deterministic core. /doc-contradictions looks for contradictions between pages. Nothing checks for concepts that lack a page.

The report's headline leads with the Step: how much agent autonomy the repo's contracts support. The ladder comes from Boris Cherny's Steps of AI Adoption (July 2026): 1 Assisted, 2 Supervised agent changes, 3 Unattended agent changes, 4 Autonomous loops. Beside the Step stands the gate that blocks the next one. Then comes "Catalogue coverage: N of M measured, V verified" with the maturity-model version, then a strip of the same counts per truth tag.

A Step needs its gates and nothing else, so no count moves it. The coverage line says how much of the catalogue the run could read. The report and its log.md entry open with what changed since the previous run. That means the actions closed, each with its commit, the gates gained or lost, and the next blocker. The code computes all three deterministically from the commit; the model never does.

The Steps work because Cherny's per-step guardrails are these practices seen from the org side:

  • self-verification loops = CI and coverage gates
  • automated review = review on merged pull requests
  • agent instructions, encoded permissions and routines = AI project management

So the Step bounds how far up his ladder a team can safely operate this repo. It claims nothing about how the team actually works. The agent_ops signals of the AI project management practice score the repo-observable subset of those guardrails: committed permission allowlists, hooks, sandbox rules, routine definitions.

Traditional tools, applied to an AI-era question. The assessment itself runs on conventional static analysis, not the model: lizard/scc, git history, and graph metrics over the docs and code. The LLM only writes the prose around the numbers. So a full run is fast and spends almost no model tokens, and you get the same structural findings from run to run.

A codebase can hold Step 4 and still be on fire (strong contracts, legacy debt). It can also sit at Step 1 with a calm treemap (small codebase, no enforcement needed yet). The headline tells you whether the system will catch the next class of pain before it lands. The SVG tells you where today's pain already is. The report's Top 3 Actions table always names specific files. "Improve code quality" is the failure mode /assess exists to prevent. This is what makes the report actionable: "Add cyclop rule (threshold 15) to .golangci.yml. Current p95 ccn is 23; immediate offenders: internal/import/parser.go (ccn 67)".

The compounding payoff. You pay for contracts up front: types, lint rules, architecture tests and agent instructions all take time to write. The payoff compounds, because every new service, feature, and contributor inherits the contracts already in place. Skip them and you lose 15-45 minutes per AI session to convention drift, rework, and false signals, forever. Run /assess periodically to ratchet the practices in place upward. Each practice you add closes a recurring cost.

A stats sidecar (complexity-stats.json) comes with the report. It holds percentiles and ranked file lists that feed the treemap and the report's hotspot callouts.

What else the deterministic core checks

Each module's docstring under skills/assess/scripts/lib/ holds the per-module detail. Among the checks and behaviours there:

  • Scan registry. scan_registry.py declares every run-context block once. A scan that cannot run (no remote, no gh, an unreadable endpoint) reports itself as unavailable with a reason, and the run goes on.
  • Headless signals. assess_signals.py runs the scans with no model and writes one JSON document (schema). With --counts-only it keeps numbers and a fixed list of path and token fields, and drops all other text (field list). --hash-paths replaces paths with salted hashes. /fleet builds on this entry point.
  • GitLab remotes. Through glab, review reality and configuration drift read GitLab merge requests and protected branches, as they read GitHub through gh.
  • Instruction files. The instruction_placement scan names sections of an always-loaded instruction file that belong elsewhere. The instruction grade counts always-on lines past 200 and lines that belong elsewhere. instruction_claims verifies checkable claims in an instruction file against the repository, such as a claim that CI enforces a script. doc_claims runs the same checks over the wider doc set and adds a cross-document kind.
  • History honesty. Churn follows renames, so a renamed file keeps its history. On a shallow clone, the doc-staleness clock and the accretion signal do not read the cut-off history as real. They mark their results as truncated or unreliable.
  • Tests. .bats files count as tests for shell scripts.
  • Method versions. Each run writes .assess/findings.json with the finding method version and every finding's paths. A later toolkit release can change how a run decides findings. The CI gate then compares that committed snapshot with its own run. The snapshot is the findings.json on disk, even when no pipeline has run since its commit. The gate names the method change, lists the findings that appeared and cleared by path, and prints the re-freeze command. Those moves also carry any code changes since the snapshot's commit, so the gate does not attribute them to the method alone. When the gate's pinned toolkit is older than the snapshot's, it says to raise the pin instead.
  • Repositories you do not maintain. Some read-only targets take contributions. There, the end-of-run offer files the Top 3 Actions as issues upstream, each with a link to the full report hosted in your fork.

Build artifacts and generated code are filtered by default

A single main.dart.js or thousands of lines of .pb.go shouldn't dominate the treemap. The filter catches these by default:

  • minified bundles (*.min.js, *.bundle.js, main.dart.js) and sourcemaps
  • protobuf bindings (*.pb.go, *.connect.go, *_pb.ts)
  • Go generators (wire_gen.go, zz_generated_*.go)
  • .NET source generators (*.designer.cs, *.g.cs)
  • Dart codegen (*.freezed.dart, *.g.dart)
  • *.generated.* and database.types.ts
  • files whose first 5 lines declare them generated (DO NOT EDIT, @generated)
  • payload files whose average line exceeds 1,000 characters
  • files under build dirs (dist/, build/, .next/, .nuxt/, node_modules/, etc.)

Pass --include-artifacts to disable the filter. If a single file still holds >30% of total LOC after the filter, the script warns. That file is usually a build artifact that needs .gitignore.

The skill runs locally: lizard, optional scc, and git log do the analysis in your Claude Code session. No data leaves the machine, with one bounded exception. When the repo has a github.com remote, the scan makes read-only GitHub API calls through your own authenticated gh. It sends the repo name, plus ruleset ids and branch names when the repo tracks ruleset or branch-protection snapshots. The calls do this:

  • They count the pull requests merged in the last 30 days, to estimate the CI gate's Actions minutes.
  • They compare tracked snapshots with the live settings.
  • They read the 30 most recently merged pull requests and the default branch's review rules, to measure whether merged changes had a review. With a run window, they read only pull requests merged inside it (a headless run's default is six months). They keep counts and shares only, with no titles or user names.

Each call reports as unavailable when gh is missing or signed out. Ask for an offline run (assess_core.py --offline) and none of these calls happens. The run never starts gh or glab, and each block that would read GitHub or GitLab reads not measured. Network use lists every such collector; the check manifest generates that list.

Use as a GitHub Action

The assess gate ships as a composite GitHub Action (Marketplace listing). Any repo can run the deterministic core on every PR without a plugin install: no Claude, no API keys, no tokens spent:

steps:
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1  # v7.0.1
    with:
      fetch-depth: 0   # full history so the churn window is accurate
  - uses: bjcoombs/[email protected]
    with:
      config: .assess/config.toml   # optional; warn-only defaults without it

Two badges come with it. One is GitHub's native status badge for the gate workflow. The other is a live AI-readiness badge, which shields.io serves from the committed .assess/badge.json. Every assess run writes that file: the Step, the practices fully in place and the next gate. Examples are Step 3 · 2 practices fully in place · next: coverage gate and Step 4 · 5 practices fully in place · all gates held.

[![Assess Gate](https://github.com/<owner>/<repo>/actions/workflows/assess-gate.yml/badge.svg)](https://github.com/<owner>/<repo>/actions/workflows/assess-gate.yml)
![AI-readiness](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2F<owner>%2F<repo>%2F<branch>%2F.assess%2Fbadge.json)

The gate is warn-only by default. Only what .assess/config.toml opts into can fail a PR (fail_on findings, complexity floors, fail_on_regression). The version rides a uses: pin on an immutable release tag. So Dependabot and Renovate detect new toolkit releases and open upgrade PRs automatically. Add a .github/dependabot.yml with the github-actions ecosystem and the gate keeps itself current. The /assess end-of-run "freeze into CI" offer emits this workflow. It pins actions to commit SHAs and the toolkit to the newest published tag.

Use in GitLab CI

The same gate runs on GitLab merge request pipelines. Add these three lines to your .gitlab-ci.yml:

include:
  - remote: https://raw.githubusercontent.com/bjcoombs/ai-native-toolkit/v5.1.0/templates/assess-gate.yml
    inputs: { config: .assess/config.toml }

The template and its job script first ship in the toolkit release after 3.0.0. Each release moves the tag in the include line to itself. On 3.0.0 or earlier, the include line has no file to fetch. A toolkit_ref of 3.0.0 or earlier makes the job print a notice and pass without a gate run.

The job runs the same headless gate as the GitHub Action, in merge request pipelines only. It writes the summary that opens the report to the job log. It also fails the merge request when a Step gate that your committed baseline held now reads unmet. One case is CI that no longer runs the tests. The job then names the Step that the loss costs.

The baseline is .assess/prior-level.json, which every /assess run writes, so commit your .assess/ directory first. Until there is a baseline, the log says "no baseline yet" and the job passes. The job reads the baseline from the target, at the base commit GitLab fixed for the merge request, not from the change itself. If a change deletes or re-freezes the baseline, the job still measures the change against what the target held. The log notes the edit. This holds whether the check is on through the input or through .assess/config.toml, and on a fork's merge request too. The job reports a gate it could not read, and never counts it as lost.

One difference from the Action: fail_on_gate_loss is on by default here and off in the Action. The Action takes the same input (fail_on_gate_loss: 'true'). Alternatively, set fail_on_gate_loss = true under [gate] in .assess/config.toml to turn it on for both. Set the fail_on_gate_loss: false input to report a lost gate on GitLab without a failed job.

Your project needs merge request pipelines. Without a workflow: section, the included job's rule starts a separate merge request pipeline that holds only assess-gate. Your own jobs without rules: stay in the branch pipeline. That merge request pipeline becomes the merge request's head pipeline. So "Pipelines must succeed" can end up checking a pipeline with no tests in it. To run everything in one merge request pipeline, switch the project to merge request pipelines with GitLab's standard pattern. The pattern also skips the duplicate branch pipeline while a merge request is open:

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
      when: never
    - if: $CI_COMMIT_BRANCH

If your .gitlab-ci.yml already has workflow: rules, keep them and add the merge request rule among them, or the job never runs. This pipeline behaviour follows GitLab's documentation; nobody has checked it on a real GitLab instance.

You can also post the summary as a merge request note. Add a project access token with api scope as a masked CI/CD variable named ASSESS_GATE_TOKEN. Without it the job tries CI_JOB_TOKEN, which most GitLab versions don't allow to post notes. The summary then stays in the job log and the job carries on. Each pipeline adds a new note.

The other inputs are mr_note, toolkit_ref, toolkit_url (for a mirror on a self-hosted GitLab), image and stage. Keep toolkit_ref equal to the tag in the include line. The file follows the CI/CD component layout (templates/assess-gate.yml with spec: inputs). A team that mirrors this repository onto its GitLab can therefore include it as a component instead: component: $CI_SERVER_FQDN/<group>/ai-native-toolkit/assess-gate@<version>. /assess recognises that component form only for a mirror cloned under --reposync-root. Otherwise the include reads as unread, and the CI test signal reads not measured.

Use the refiner in your repository

The refiner does backlog refinement as three GitHub workflows, and any repository calls each with one uses: line. Triage runs when someone opens or comments on an issue. Duplicate detection runs when someone opens one. A sweep runs twice a day. A script checks each issue against your definition of ready. Only an issue that the script cannot settle goes to a model. The model runs with a read-only token and returns a plan. A job with no model applies that plan under fixed rules. The sweep can also keep a GitHub project's Status, Size and Verdict fields in sync.

jobs:
  sweep:
    if: vars.REFINE_ENABLED == 'true'
    uses: bjcoombs/ai-native-toolkit/.github/workflows/[email protected]
    with:
      enabled: ${{ vars.REFINE_ENABLED == 'true' }}
      mode: ${{ vars.REFINE_MODE || 'dry-run' }}
  • Credential for triage and dedupe. The simplest is CLAUDE_CODE_OAUTH_TOKEN, a Claude subscription's OAuth token. It bills the subscription's usage limits and has no spend cap of its own. It also competes with the subscriber's own sessions for those limits. For a team, REFINE_ANTHROPIC_API_KEY from a Console workspace with a monthly spend limit stays the recommended setup. That key wins when you set both. Workload Identity Federation also works. Only the project sync needs REFINE_PROJECT_TOKEN.
  • Kill switch. Nothing runs until the variable REFINE_ENABLED is true.
  • Dry-run first. Until REFINE_MODE is live, the workflows log writes and do not send them. Stay in dry-run until #1341 is closed.

The workflows first ship in 5.0.0. Backlog refinement covers all three callers, the settings and the project fields. On GitLab, one include: of templates/refine.yml runs the same refiner from a pipeline schedule: GitLab. For a one-off pass from the terminal, use /refine.

Portability split. The framework pieces are portable and work in any Claude Code session. They are /assess, /huddle, /deslop, /skill-forge, /semantic-compress, /reposync, /repostate, /fleet, /doc-contradictions, /6hats, /understand and their agents. The ROOT mode of /fleet reads the <repo>-main + worktree/ layout that /reposync creates. The workflow commands (/issues, /fix-pr, /fix-develop) bake in one author's daily setup:

  • a <repo>-main/ + worktree/ layout
  • GitHub + gh CLI
  • CodeRabbit/claude[bot] review threads
  • for /issues marathon mode, the Agent Teams capability flag

See Adapt it for your workflow before you rely on them in a different setup.

Install

Use a Claude Code session, not a shell, because /plugin is a Claude Code command:

/plugin marketplace add https://github.com/bjcoombs/ai-native-toolkit
/plugin install ai-native-toolkit@ai-native-toolkit

Skills appear namespaced: /ai-native-toolkit:assess, /ai-native-toolkit:fleet, /ai-native-toolkit:doc-contradictions, and so on. Update with /plugin update ai-native-toolkit. Remove with /plugin remove ai-native-toolkit. The plugin doesn't touch your current ~/.claude/ files.

On Windows, read the Windows setup guide. It covers the baseline (Git for Windows with Git Bash, Python 3.11+, uv optional) and how to install rg, jq, gh and glab. It also gives PATH notes and the commands to run in place of make.

Standalone skill ZIPs (any AI assistant)

/assess, /huddle, /deslop, /skill-forge, and /semantic-compress ship as standalone Agent Skills ZIPs, with no Claude Code required. They are plain skill folders (a SKILL.md plus reference files), so they work in any assistant that supports the skills format. They are verified in claude.ai web, Claude Desktop, and Cowork, and are usable anywhere that accepts the format. Each ZIP is fully self-contained, so download just the skill you want.

Two install paths - pick by where you work

You use... Install via Updates
Claude Code /plugin install (see Install above) Automatic on /plugin update. Use this when available. It's the maintained path.
claude.ai, Claude Desktop, Cowork, or any other AI assistant Manual ZIP upload (below) Manual: download again from the latest release and use the Skills UI's Replace option. See Upgrade the standalone install and Hear about new versions below.

Every plugin version bump rebuilds the ZIPs automatically from the same source. Feature parity therefore holds, and only the update mechanism differs.

Prerequisites for the ZIP path

  • A paid plan (Pro, Max, Team, or Enterprise). The Free tier has no Skills upload.
  • For /assess: turn on Settings → Capabilities → Code execution and file creation (the Python scripts need it). Enable Allow network egress too if your repo's pyproject.toml pulls dependencies.
  • /huddle, /deslop, /skill-forge, and /semantic-compress need neither, because they run on the model alone.

Install (claude.ai web - verified path)

  1. Open the latest release. Its release notes link to that version's standalone skill ZIPs bundle (every plugin version bump publishes a fresh one). From there, download the skills you want: assess.zip, huddle.zip, deslop.zip, skill-forge.zip, semantic-compress.zip. Each ZIP is self-contained, so grab only the ones you need.
  2. Open https://claude.ai/customize/skills (or sidebar → Customize → Skills).
  3. Click the + at the top right of the Skills column.
  4. Hover Create skill →. Then click Upload a skill.
  5. Select the .zip (don't unzip).
  6. Confirm the skill appears under Personal skills with toggle on and Trigger: Slash command + auto.

Claude Desktop, Cowork, and other assistants expose the same Skills uploader (usually under Settings), and the flow is analogous.

Upgrade the standalone install

The Skills UI has a built-in Replace option. Use it, and don't uninstall and upload again, because Replace preserves any in-progress chats that reference the skill.

  1. Open the latest release and follow the standalone skill ZIPs link in its notes. Download the new ZIP for your skill.
  2. In Customize → Skills, click the skill you want to upgrade.
  3. Open the three-dot menu (⋮) in the top right of the detail pane.
  4. Click Replace. Select the new .zip.
  5. The toggle and trigger settings persist, and only the skill contents change.

Check which version you have. The skill's Description field in the Skills UI ends with Standalone build vX.Y.Z. That is the version that shipped in the ZIP you uploaded. Compare it against the latest release to know if there's a newer one.

Hear about new versions

Neither Claude Desktop nor claude.ai polls for skill updates, and the platform has no notification mechanism for uploaded skills. You can opt in to news of releases in two ways:

Plugin-install users get this for free via /plugin update ai-native-toolkit, with no subscription.

Verify the auto-trigger works

In a fresh chat, try:

  • assess: How AI-ready is this codebase? / Give me a complexity heatmap
  • huddle: Run a huddle on [decision] / Give me red-team/blue-team analysis of [question]
  • deslop: Make this sound less like AI / De-slop this draft / Does this read as AI-written?
  • skill-forge: Harden this skill / Is this skill ready to ship?
  • semantic-compress: Compress this prompt without losing meaning / Tighten this instruction set

A skill may fire only on /skill-name and not on natural language. Then the frontmatter description lacks trigger phrases. Edit standalone_description in scripts/standalone_skill_config.py and rebuild.

Capability differences vs Claude Code

  • /huddle runs in solo or phased sub-agent mode here: Claude reasons through each hat phase directly. Team mode (persistent agents with cross-talk) requires Claude Code.
  • /assess runs the full assessment. The SVG treemap and deterministic wiki need terminal access to the bundled scripts.

Try it

Assess a codebase

/ai-native-toolkit:assess

It runs against the current directory (or pass a path). It produces:

  • .assess/assess-report.md: the Step and verified-practices headline, per-practice scorecard, top 3 leverage actions, hotspot callouts
  • .assess/doc-graph.svg: the doc-navigability graph shown above
  • .assess/complexity-heatmap.svg: the complexity treemap shown above
  • .assess/step-ladder.svg: the four Steps as rungs of agent autonomy, with the gate between each pair. It marks "You are here" on the run's Step and highlights the next gate. The report shows it first.
  • .assess/evidence-waffle.svg: one square per maturity-model condition, to show how much of the level rests on verified or measured evidence
  • .assess/tag-profile.svg: one row per truth tag, with the share of its measured conditions that are met. The earlier run's share stands beside it when both used the same maturity model.
  • .assess/package-map.svg: the 20 largest packages as an import matrix, with outlines on the imports that bypass a package's front door
  • .assess/doc-drift.svg: the 15 docs furthest behind the code they describe, as ranked bars
  • .assess/review-strip.svg: one tick per recently merged change (approved, reviewed or merged without review), in merge order
  • .assess/complexity-stats.json: percentiles and ranked file lists that feed the report

After it writes these files, the skill asks whether to open a PR in the target repo with the report and its SVGs.

Run a huddle on a hard decision

/ai-native-toolkit:huddle Should we migrate the monolith to microservices?

This spawns a team with a Fibonacci size (default 3). The team cycles through De Bono's six hats (facts, feelings, risks, benefits, alternatives, synthesis) and returns a structured recommendation. Use /6hats <q> for a faster solo variant.

Measure a fleet of repositories

/ai-native-toolkit:reposync --org my-org --root ~/dev/github.com/my-org --partial
/ai-native-toolkit:fleet ~/dev/github.com/my-org --out fleet-out

/reposync mirrors the org into --root, which must already exist. /fleet runs the headless /assess signals on each checkout. It writes repos.jsonl (one counts-only line per repository), groups.jsonl and run.json to fleet-out/. See skills/fleet/SKILL.md for the maturity-model roll-up, --compare, --delete-after, the heat map and the next-steps pages.

Check the docs for contradictions

/ai-native-toolkit:doc-contradictions

This writes .doc-contradictions/report.md in the current repository. The report has one entry per contradiction, with both sides cited as path:line and a confidence for each. It never edits a document or source file.

What's in the box

Skills (auto-discovered by Claude Code)

Full catalog and per-skill base docs: skills/README.md.

Skill Description
/assess AI-readiness assessment (autonomy Steps held by named gates, a scorecard by practice) plus a Codecov-style complexity hotspot SVG and a doc-navigability graph SVG (both colour-blind-safe). Ships complexity-treemap.py and doc-graph-svg.py so the agent runs them with no external setup. Filters build artifacts and generated code by default (opt-out with --include-artifacts). Warns when one file dominates LOC. Offers to install optional scc for repos heavy in markdown/JSON/YAML. Generated PRs include a self-install footer so reviewers can adopt the plugin.
/huddle Multi-perspective deliberation with Six Thinking Hats and a Fibonacci team size (solo -> debate -> huddle -> panel -> board). Three execution modes: solo flat-parallel, phased sub-agent (default fallback), and team mode (needs Agent Teams capability flag).
/deslop Detects and removes the telltale signs of AI-written text: puffery, the rule of three, "not X but Y", filler diction, chatbot leakage, fabricated citations. Two modes: a silent quality gate while you write prose, or an explicit de-slop/audit pass. /deslop --plain adds plain-language rules on top (sentence limits, one instruction per sentence, active voice, a fixed glossary) from references/plain-language-rules.yaml. Ships a references/full-checklist.md A-F catalog from Wikipedia's "Signs of AI writing" (revision of 15 November 2026). The skill flags itself for a new derivation if it goes stale, since the tells drift with model generations.
/reposync Bulk clone of every GitHub or GitLab repo you can access, kept in sync, without archived and empty ones; built for the day you join a new enterprise. On GitLab (--provider gitlab --host <host>), covers every group you belong to with nested subgroups and shared projects, laid out by path_with_namespace. --porcelain plus --from-list split discovery from the clone step, for hosts reachable only from another network. For an org, unions the repos reachable through your teams with the org's repo list (so direct-collaborator and public repos count). For a personal account, uses the account's repo list. Deduplicates, then clones new ones and fast-forward syncs current checkouts and their worktrees into a <repo>/<repo>-main + <repo>/worktree layout. Org defaults to the directory you run from. Never clobbers local work: it fetches an uncommitted or off-default-branch repo and does not pull it. Reports every exception in a summary. For analysis-only mirrors, --partial (--filter blob:none) and --shallow-since DATE shape new clones. --active-since DURATION keeps only repositories with a recent default-branch commit. --porcelain-json prints one JSON object of metadata per repository instead of a clone. Ships reposync.sh; needs gh + jq (or glab + jq for GitLab); supports GitHub Enterprise via GH_HOST.
/repostate Read-only org repo state report for GitHub or GitLab. Reuses the repo discovery of /reposync but, instead of a clone, queries each repo's remote state. On GitHub: open PRs, CI on the default branch, open security alerts (Dependabot / code-scanning / secret-scanning), and branch protection. On GitLab (--provider gitlab --host <host>, optionally --group <path>): open merge requests, the latest default-branch pipeline, open vulnerabilities and default-branch protection. Rolls it all into a terminal summary plus a timestamped markdown file. Reports endpoints that the token or tier cannot read as no-access / unknown, never as a clean zero. After the per-repo table, an org or group settings section reports two-factor enforcement, push rules, default-branch protection and rulesets. Needs gh + jq (or glab + jq for GitLab).
/fleet Runs the headless /assess signals (assess_signals.py) across every repository under a /reposync root or in a --from-list file. Each repository runs in its own process from a worker pool, and gets one counts-only JSON line in repos.jsonl (schema: repos.schema.json). It then rolls the rows up to one line per group in groups.jsonl (schema: groups.schema.json). That line holds repository counts, distinct shared CI sources and marketplaces, and the repostate group settings passed with --settings. It also holds each --levels maturity-model row's whole level (or unknown) with its aggregation rule. fleet_next_steps.py renders one Markdown page per group from that output. A page gives each row's level and the repositories that hold the group back. It lists the next level's unmet conditions as single-change steps with repository-native "done when" checks. heatmap.py renders that run as a leadership heat map SVG of groups by maturity-model rows, in ColorBrewer OrRd. It hatches unknown apart from level 0 and names the missing signal. With --compare, it shows change against an earlier run. A dated run history keeps each counts-only run, so --compare can show what moved since the last run. --delete-after deletes each clone after its scan to keep disk use flat. Deterministic: two runs over unchanged checkouts on the same day are byte-identical, except with --hash-paths and no --hash-salt. Never writes to a target. A repository that it cannot scan becomes a failed row with a reason token, and the run goes on. No model in the path. Optional --label step: a Haiku subagent labels each repository from its row (service, library, infrastructure, mirror, docs, other) into a separate labels.jsonl (schema); for display and filters only, never scored.
/doc-contradictions Finds documents that contradict each other or the code they describe. Clusters the doc set by the doc graph and shared subject code. Fans out one read-only Haiku comparer per cluster plus a cross-cluster pass over hub docs. Writes a Markdown report: one entry per contradiction, both sides cited as path:line, with a confidence. Excludes historical intent records (docs/design/, docs/superpowers/) by default. Plugin-only (needs subagents).
/semantic-compress Optimizes an LLM-directed document and preserves what it does, behind the A/B harness of the ab-equivalence library skill. Two transforms in one optimizer family. compress is a local core->pointer pass plus an A/B-validated distill loop that produces the smallest behaviourally-equivalent document. directive-clarity rewrites latent-action instructions (bare negations, facts-not-actions, vague pointers) into directives that name the action. A measured directness gain at zero regression validates it. Both rest on a cognitive-ergonomics frame whose claims are hypotheses that the harness measures and never asserts.
/skill-forge Hardens a skill or agent instruction file (CLAUDE.md, AGENTS.md, ...) through judge-panel refinement rounds until it clears a 3-tier promotion gate, then promotes it.

Claude Code also auto-discovers some skills that you don't invoke directly. These are the library skills marathon, pr-review-merge and ab-equivalence, and the /assess render-time helpers assess-findings and assess-followup.

User-invoked skills (slash-command only)

These set disable-model-invocation: true: Claude runs one only when you type it, never on its own. Full catalog: skills/README.md.

Portable:

Skill Description
/6hats <question> Solo Six Hats analysis; alias for /huddle at team size 1
/understand <thing> Deep understanding mode (nemawashi): gather all the context before you act

Workflow (personal setup, opt-in; see Adapt it for your workflow):

Skill Description
/issues GitHub-issue marathon. Triages open issues (tags agent-ready or posts clarifying questions), then runs agent-ready ones to merge with Agent Teams. /issues <number> takes one issue through implement, review or cleanup.
/refine [issue] Backlog refinement on demand. Checks open issues against the definition of ready and researches the ones that need judgement. Applies only the labels, sizes and blocked-by edges you confirm one by one. The same checks run as GitHub workflows: Use the refiner in your repository.
/marathon-config-example Reference configuration block to drop into a project's CLAUDE.md for marathon-mode /issues
/fix-pr Autonomous PR fix loop; iterates on CI failures and review comments until green
/fix-develop Autonomous fix loop for failed CI on the repo's default branch

/issues runs its queue through the marathon skill, the team orchestration engine (DAG analysis, waves, crash recovery, retrospective). /issues, /fix-pr and /fix-develop share the pr-review-merge skill (review-to-green loop + smart merge) as a single source of truth. A workflow says where its work comes from, and the library skills own the execution.

Agents (invoked by skills, or directly via Agent(subagent_type=...))

Full catalog: Map of Content, Agents.

The Six Hats team that /huddle and /6hats orchestrate:

Agent Role
white-hat Facts and evidence
red-hat Gut feelings and emotional drivers
black-hat Risks and critical analysis
yellow-hat Benefits and opportunities
green-hat Creative alternatives
blue-hat Synthesis and recommendation
scribe Structures hat output into actionable documentation

assess-layer-scorer scores a codebase against the /assess practices from run-context.json: Present/Partial/Missing per practice with evidence. /assess uses it.

Renamed in 5.0.0

Three skills have new names that do not assume GitHub. No stub remains under an old name.

Before 5.0.0 From 5.0.0
/ghsync /reposync
/ghreport /repostate
/assess-pr /assess-followup

The --reposync-root flag of assess_signals.py was --ghsync-root. The old flag still works as a deprecated alias, and warns you.

Why Six Hats?

It is a blind spot detector for high-stakes decisions, based on Edward de Bono's method.

Cost: 5-10x the tokens of a single prompt. Six parallel agents plus synthesis adds up.

Benefit: It catches the question you didn't know to ask. Black Hat might reveal your "performance optimization" is really about deployment fear. Green Hat might find the lazy solution that actually works.

Real example: /6hats review please reviewed an earlier draft of this README. Black Hat called it "a 13-point solution to a 2-point problem" with "rigged comparisons" and "zero evidence." That critique led to a rewrite. A single prompt wouldn't have been that harsh.

Use it for:

  • architecture decisions you can't easily reverse
  • "should we..." questions where you suspect you're asking the wrong question
  • decisions where a wrong answer costs 100x more than the analysis
  • times when you want pushback rather than validation

Skip it for: routine decisions, bug hunts, implementation details, anything you can reverse. For those, a single well-crafted prompt is enough:

Help me decide [X]. Be opinionated. If this is a bad idea, say so directly.
What am I not considering? What's the lazy solution that might work?

Adapt it for your workflow

You can reuse the framework pieces as-is: /assess, /huddle, /deslop, /skill-forge, /semantic-compress, /reposync, /repostate, /fleet, /doc-contradictions, /6hats, /understand and their agents. /reposync creates the <repo>/<repo>-main + worktree/ layout itself. The ROOT mode of /fleet reads that layout (or takes a --from-list file), so you need to adapt neither by hand. The workflow skills embed assumptions you will likely need to override:

  • Directory layout. skills/issues/SKILL.md, skills/fix-pr/SKILL.md and skills/fix-develop/SKILL.md all assume ~/dev/github.com/<org>/<repo>/<repo>-main/ + sibling worktree/. Edit the path patterns to match your structure.
  • Default branch. /fix-develop derives the branch via gh repo view --json defaultBranchRef. /issues reads the base branch from the ## Marathon Configuration section of CLAUDE.md. Other workflow skills may still say develop in prose. Check them before you rely on them on a main-default repo.
  • Required external tools. gh CLI for GitHub, and the optional Agent Teams capability flag ($CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS) for /issues marathon mode.
  • Review-bot conventions. The PR-loop logic in /issues, /fix-pr and /fix-develop distinguishes CodeRabbit, claude[bot], and human threads. Adjust it if your repo uses different bots.
  • CLAUDE.md. Make the directory structure that your global / project CLAUDE.md names match too.

Git workflow assumed by /issues, /fix-pr, /fix-develop

~/dev/github.com/<org>/<repo>/
├── <repo>-main/                    # SACRED - always on default branch, never modified
└── worktree/
    ├── issues/                     # /issues worktrees (nested)
    │   ├── 12--create-schema/      # One issue's worktree
    │   └── 14--add-api/            # Another issue's worktree
    └── fix-login-bug/              # A worktree made by hand (flat)

The key principle: never work directly on the default branch. <repo>-main/ stays on develop/main and clean, and all work happens in worktrees. The /issues command creates and removes its worktrees itself. To create one by hand:

cd ~/dev/github.com/<org>/<repo>/<repo>-main
git checkout develop && git pull origin develop
git branch fix-login-bug
git worktree add ../worktree/fix-login-bug fix-login-bug
cd ../worktree/fix-login-bug
# work, commit, push, create PR

Repository structure

ai-native-toolkit/
├── README.md
├── CONTRIBUTING.md                    # Set up a clone, run the checks, open a pull request
├── SECURITY.md                        # Report a vulnerability privately; supported versions and scope
├── CODE_OF_CONDUCT.md                 # Contributor Covenant 2.1, by reference
├── CHANGELOG.md                       # One section per GitHub release, linking its notes
├── CLAUDE.md                          # Contract for agents editing this repo
├── FLOOR.md                           # Constitutional floor of the acceptance-contract workflow
├── .file-size-ratchet.toml            # Line limits for Python files: 800 by default, recorded ceilings for larger files
├── action.yml                         # AI-Readiness Assess Gate composite action
├── Makefile                           # make setup (locked uv environments), make check (the required CI checks)
├── .claude-plugin/
│   ├── plugin.json                    # Plugin manifest (enables /plugin install)
│   └── marketplace.json               # Marketplace entry (enables /plugin marketplace add)
├── .github/workflows/                 # assess-gate, build-standalone-skills, claude-review, codeql, floor, mutation, pr-lint, tests
├── .assess/                           # This repo's own /assess wiki (report, heatmap, hotspots, log)
├── skills/                            # One directory per skill - catalog in skills/README.md
│   ├── assess/                        # SKILL.md, scripts/ (assess_core.py, lib/, renderers), references/, templates/, tests/
│   ├── assess-findings/ assess-followup/  # /assess render-time helpers
│   ├── huddle/ deslop/ skill-forge/ semantic-compress/
│   ├── reposync/ repostate/             # SKILL.md + scripts/*.sh
│   ├── fleet/                         # SKILL.md + scripts/fleet.py, heatmap.py, fleet_labels.py, fleet_next_steps.py, fleet_include_list.py, fleet_targets_import.py + references/{repos,groups,labels}.schema.json
│   ├── doc-contradictions/            # SKILL.md, tests/fixtures/ (eval inputs)
│   ├── 6hats/ understand/             # User-invoked framework skills
│   ├── issues/ refine/ fix-pr/ fix-develop/ marathon-config-example/   # User-invoked workflows
│   └── marathon/ pr-review-merge/ ab-equivalence/   # Library skills
├── evals/                             # `claude plugin eval` cases, one directory per skill (doc-contradictions/)
├── agents/                            # Six Hats team + assess-layer-scorer + doc-contradictions-comparer (agent files only; catalog in docs/index.md)
├── scripts/                           # Standalone ZIP build, floor checks, acceptance-contract gates
│   ├── transform_skill.py             # Marker-based SKILL.md transformer
│   ├── standalone_skill_config.py     # Per-skill config (names, descriptions, replacements)
│   ├── build-standalone-skills.sh     # Build orchestrator
│   ├── floor_check.py floor_anchor.py # Floor enforcement and self-anchor
│   ├── contract/ canaries/            # Acceptance-contract gates and canary harness
│   └── tests/                         # pytest suite for the above
├── tests/                             # Plugin contract tests, plus contract/ and canaries/
├── dist/                              # Generated ZIPs (gitignored; published via CI)
└── docs/
    ├── index.md                       # Map of Content - navigation index for the whole repo
    ├── testing-a-branch-locally.md    # Runbook: test an unmerged branch as a real plugin
    ├── windows.md                     # Windows setup: installs, PATH notes, make-free commands
    ├── floor-anchor-proof.md          # Why the floor checks cannot be silently disarmed
    ├── superpowers/                   # Design history: plans/ + specs/ behind the skills
    ├── design/                        # Modernization programme specs
    ├── huddle-explainer/              # Narrated skill explainer pipeline
    └── example-*.svg                  # Real /assess diagrams: heatmaps, doc graphs, Step ladder, waffle, package map, doc drift, review strip

The Map of Content links each subtree's entry doc. For skills that is skills/README.md. For agents/ it is the Map's own Agents section. The agents/ directory holds no README, because Claude Code would load one as an agent.

Contributing

Set up a clone with make setup. Run every merge-gating check with make check. CONTRIBUTING.md covers the pull request rules and links the detailed guides in docs/contributing/. Everyone who takes part follows the Code of Conduct. For what changed in each release, see CHANGELOG.md.

Security

Report a vulnerability privately through GitHub's private vulnerability reporting, never in a public issue. SECURITY.md gives the route, the supported versions and the scope.

Contributors

Thanks to @franklywatson for the standalone skill ZIP pipeline. It makes /assess and /huddle installable in Claude Desktop chat and Cowork (#24).

License

The project uses the Apache License, Version 2.0; see LICENSE for the full text.

  • The Six Thinking Hats method is the intellectual property of Edward de Bono. The license covers only this implementation, not the underlying methodology.

Ähnliche Projekte entdecken

Wird geladen…