Skip to content

v7.0.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 16:14
· 162 commits to main since this release
Immutable release. Only release title and notes can be modified.
d811b33

[7.0.0] — 2026-10-30

Changed

  • The copy script is a real file, skills/scaffold/shared/tc-copy.sh, instead of a bash <<'TC_GUARD' heredoc in harness-kit.md Step 0 (and TC_TAIL in Step G). The agent runs it with TC_STACK=<stack> TC_PART=<part> [TC_CI=<host>] bash "<skill-dir>/shared/tc-copy.sh" "<target>" and never reads its body. The inputs carry a TC_ prefix so a caller's CI=true cannot reach it. It keeps every refusal, the .tmpl suffix stripping, the manifest modes and the STOP: line, follows a symlink to itself, refuses a non-bash shell, and refuses / and the home directory as a target. The seeded output is byte for byte what it was. TC_PART=tail appends the AGENTS.md tail, which migrate also runs from <skill-dir>/../scaffold/shared/tc-copy.sh. Scaffold load against v6.1.2 (count-load.sh --base v6.1.2): nextjs −55.5%, vite-react −54.4%, fastapi −52.9%, nestjs −52.3% (nestjs was −49.5% with the heredoc). check_copy_script_single requires exactly one copy script, bans every shell heredoc in the skills markdown and any other file carrying the copy loop; test-template-copy.sh and the CI shell-lint job run and shellcheck the real script.

Added

  • The skills lint finds template trees by directory name (template or template-*, wherever they sit under skills/), so a tree under skills/add/ or skills/migrate/ needs no lint edit: its template.manifest, symlink, empty-directory, SKILL.md.tmpl and content-scan checks apply the same as for scaffold trees. The duplicated IAM block check resolves a side that moved into a template file through its row in tests/golden/fences/moved.d/ (the index picks the fence, so moving one of several sibling fences does not shift the others), and the authz seed check also reads the leaf's template tree. A symlinked tree root fails, and so does a template.manifest with no tree beside it, even an empty or comment-only one. skills/CONVENTIONS.md §1 defines the layout.
  • Eval coverage for skills/add, skills/migrate and skills/standards. scripts/count-load.sh --entry SKILL:NAME[@STACK] reports the load of one invocation (SKILL.md, router, leaf and what the leaf cats) and --summary SKILL|all lists every leaf with its tokens, both with --base REF for a delta; the scaffold report is unchanged. scripts/check-fences.sh checks a checked-in sha256 snapshot (tests/golden/fences/) of every copy-verbatim fence in those skills, keyed by file, heading and index, and its --from-templates mode and the per-slice moved.d/*.tsv mappings (with an indent=N column for list-indented fences) prove byte identity once a fence moves (check-fences-frozen.sh fails a pull request that edits the snapshot unless it carries the fence-snapshot-change label) into a template*/ file. check-fences.test.sh breaks it on purpose; validate-skills.yml runs both.
  • The Vite + React scaffold files are real files, copied instead of read and re-typed. skills/scaffold/vite-react/template/ holds every config and source file the scaffold writes verbatim (including the vite-verify skill, stored as SKILL.md.tmpl), skills/scaffold/vite-react/template-agents/ holds AGENTS.md, skills/scaffold/vite-react/template-tail/ holds the task-management text, and skills/scaffold/vite-react/template.manifest lists each file with its mode, placeholders and seams. The copy is the same kit Step 0 script as for Next.js, run with STACK=vite-react and PART=stack, PART=base and PART=agents. Only package.json (__TC_PROJECT_NAME__) and AGENTS.md (__TC_PROJECT_TITLE__) carry placeholders. The seeded output is byte-identical to the 6.1.2 goldens, and docker-entrypoint.sh is now mode 755 in the template (it was 644 in the fence output; the Dockerfile runs chmod +x on it anyway). The scaffold steps moved: the package name edit is in Step 1, vite-verify is copied in Step 1 (7c is a note), PART=agents runs at Step 7, and Step 9 appends template-tail/task-management.md.
  • scripts/test-template-copy.sh covers the Vite + React trees: vite_react_manifest_matches_tree, placeholders_only_in_small_files, no_leftover_placeholders, copy_keeps_dotfiles, the refusals, and validate_configs on the Vite template files. lint-skills.test.sh fails each re-pointed check for Vite + React on an empty match and on a deleted anchor.
  • Template skill files ship as SKILL.md.tmpl (next-verify, next-migrate, skill-audit), so a skill loader that scans the plugin recursively for SKILL.md registers none of them. The manifests list the .tmpl source, the copy script and check-golden.sh drop the suffix, the project files and goldens are unchanged, and check_no_template_skill_md fails when a file named SKILL.md sits in a template tree.
  • The Next.js scaffold files are real files, copied instead of read and re-typed. skills/scaffold/nextjs/template/ holds every config and source file the scaffold writes verbatim, skills/scaffold/nextjs/template-agents/ holds AGENTS.md, and skills/scaffold/nextjs/template.manifest lists each file with its mode, its __TC_<NAME>__ placeholders and its [[post-harness]] seams. AGENTS.md sits in its own tree because the scaffold copies it after the verification gate: prettier would reformat it if it existed at pnpm format. Only package.json (__TC_PROJECT_NAME__) and AGENTS.md (__TC_PROJECT_TITLE__) carry placeholders; tests/golden/placeholders.env holds the values check-golden.sh --from-templates substitutes. docker-entrypoint.sh is mode 755 in the tree; the 6.x scaffold wrote it as 644 and the Dockerfile dev stage still runs chmod +x on it.
  • Every other copy-verbatim file the Next.js scaffold loads is a real file too, and the copy is one script. harness-kit.md Step 0 is the only copy script: Step B3 runs it with PART=ci, and CI=none removes the CI gate script (refusing on a symlink, a non-regular file, a file that differs from the template, or a failed rm). New parts: PART=settings (Step A) copies shared/template-settings-ts or template-settings-py (.claude/settings.json), and PART=late (Step C) copies shared/template-late (FUTURE.md, docs/CONSTITUTION.md, and the /skill-audit skill, which moved from Step B5 to Step C: it is created before Step E hashes it and prettier ignores .claude/). Both refuse until AGENTS.md exists, which keeps them behind the stack's verification gate and format pass in all four stacks. next-migrate and next-verify are in nextjs/template/.claude/skills/. The AGENTS.md tail (shared/template-tail/AGENTS-tail.md) and the task-management text (nextjs/template-tail/) are listed in the manifests but never copied as files; a fixed command appends them (the tail's typecheck command is fixed per stack in the script, and the append writes nothing when the read fails). A lint check keeps template-tail out of every SEL.
  • The copy guard takes PART=stack and PART=agents. Both read <skill-dir>/<STACK>/template.manifest and keep every refusal of the kit copy. The Next.js docs hold no copy of the script; check_copy_script_single pins that Step 0 holds the only copy script (any spelling of a second shell fence fails, apart from the one TC_TAIL AGENTS.md tail command in harness-kit-finalize.md), and a test pins that the PART=ci run is that script.
  • scripts/test-template-copy.sh covers the stack copy: nextjs_manifest_matches_tree, placeholders_only_in_small_files, no_leftover_placeholders, copy_keeps_dotfiles for the stack, and the refusals (symlink parent, existing file, unwritable and unsearchable directories, empty and missing manifest, unknown STACK, hostile target and skill-dir names).
  • The NestJS scaffold files are real files too. skills/scaffold/nestjs/template/ holds every config and source file the scaffold writes verbatim (including the nest-verify project skill as SKILL.md.tmpl), template-agents/ holds AGENTS.md, and nestjs/template.manifest lists each file with its mode, placeholders (__TC_PROJECT_NAME__ in package.json, __TC_PROJECT_TITLE__ in AGENTS.md) and seams. The scaffold copies them with kit Step 0 (PART=stack, then PART=agents), and check-golden.sh passes in both modes: the seeded project is unchanged. nestjs/config-files.md is gone; its notes live in nestjs/source-files.md, and the NestJS scaffold loads 49.5% fewer tokens than v6.1.2 (count-load.sh --base v6.1.2, with documentation-kit; 25360 tokens against 50217; the notes keep every constraint the old config and source files carried).
  • The scaffold harness files are real files, copied instead of read and re-typed. skills/scaffold/shared/template/ holds the two shared hooks (session-context.sh, skill-usage-log.sh), ci-gates.sh, verify-harness.sh, regen-harness.sh, the comment-hygiene patterns, .lefthook/commit-msg.sh and .gitleaks.toml; template-ts/ and template-py/ hold the per-stack hooks, user-prompt-guard and lefthook.yml; template-ci/ holds the GitHub (TS, FastAPI) and Azure CI files; template.manifest lists every file with its mode. harness-kit.md Step 0 copies them under the guard described in the "copy guard" bullet below. Every file is identical to its entry in tests/golden/. The comment-hygiene pattern list moved from skills/scaffold/shared/comment-hygiene-patterns.txt to skills/scaffold/shared/template/.claude/comment-hygiene-patterns.txt.
  • A lint-negative-tests CI job runs lint-skills.test.sh. The shell-lint job runs bash -n, shellcheck --severity=warning, py_compile and node --check over the template scripts, and the yaml lint check fails instead of skipping when CI=true and PyYAML is missing.
  • No gitleaks allowlist is added for the template trees: gitleaks reports no leaks without one, and the only AKIA strings are regexes in user-prompt-guard.
  • scripts/test-template-copy.sh runs the copy instructions from the kit markdown (copy_keeps_dotfiles, template_sh_executable, copy_refuses_existing_path, manifest_matches_tree, dist_keeps_templates). scripts/lint-skills.test.sh fails each re-pointed lint check on an empty match and on a deleted anchor. A new lint check, check_template_trees_complete, keeps the trees and the manifest in step.
  • The copy guard fails closed and writes only what the manifest lists. The one copy script (Step 0, run for Step B3 with PART=ci) takes STACK= (shipped empty, so a skipped edit refuses; PART=settings, late and ci with CI=github or azure also refuse unless the project's lefthook.yml is the one Step 0 copied for that stack), PART= and CI= (PART=ci only) as inputs and derive the template trees from them, so a wrong stack cannot copy another stack's hooks; each stack's source-files.md names its own value and lint checks it. The guard refuses a missing or empty manifest, a manifest that differs from the files in the trees (it names the files), an existing target file, a symlink or a non-directory where a directory is needed, an empty or unsubstituted path, and a symlink or empty directory inside a tree. It then creates only missing parent directories and copies each file with cp, setting the manifest mode, so the project root, existing directories and the user's own files keep their modes. Paths are read from quoted heredocs, so no character in a path is expanded or run; a path with a newline needs the agent to stop and ask. Before the first write it checks that every existing directory it needs is writable and every source file is readable, and relative paths are prefixed with ./. PART=ci with CI=none deletes ci-gates.sh only when it is a regular file, neither it nor .claude is a symlink, and it matches the template. Every refusal ends with a STOP: line. The TS stacks run Step 0 before pnpm install, so the prepare script finds lefthook.yml; FastAPI runs PART=stack at Step 1, PART=base at step 6b (before its lefthook install note) and PART=agents after its verification gate.
  • The FastAPI scaffold files are real files too, copied instead of read and re-typed. skills/scaffold/fastapi/template/ holds every config and source file the scaffold writes verbatim (the api-verify skill as SKILL.md.tmpl), template-agents/ holds AGENTS.md (the project title is the __TC_PROJECT_TITLE__ placeholder), template-tail/ holds the task-management section, and skills/scaffold/fastapi/template.manifest lists each file. fastapi/source-files.md runs kit Step 0 with STACK=fastapi for PART=stack (Step 1), PART=base (step 6b) and PART=agents (step 6, after the verification gate); fastapi/config-files.md is gone. The seeded project is byte for byte what the scaffold wrote before, so the golden manifests are unchanged. check_step0_before_install anchors the FastAPI PART=agents copy after its verification gate in place of the TS pnpm format line. The migrate docs that read the FastAPI fences (portal-frame-ancestors, nextjs-backend-extraction/fastapi) read the template files.
  • Deterministic scaffold eval harness. scripts/extract-fences.py extracts every copy-verbatim fence
    from the scaffold markdown; scripts/check-golden.sh compares that output for all eight
    stack × CI combinations with the sha256 manifests in tests/golden/;
    scripts/count-load.sh reports the tokens one scaffold run loads, with a delta against any git ref.
    All three run in validate-skills.yml; the token count is informational.
  • scaffold-verify.yml now runs .claude/verify-harness.sh and a golden-tree diff on the generated
    project, so its pass signal no longer rests on the agent's own report.

Changed

  • vite-react/config-files.md is gone and its notes live in vite-react/source-files.md; scaffold/SKILL.md Step 2 loads only source-files.md. The package name must match ^[a-z0-9][a-z0-9-]*$ and the AGENTS.md title must be one line, and the scaffold stops otherwise. lint-skills.sh lists vite-react in TEMPLATED_STACKS (tree and manifest checks, the PART=base copy before the first install, the PART=agents copy after pnpm format) and requires the Vite + React stack fences in the copy-instruction check.
  • migrate's portal frame-ancestors guide reads the Vite + React files from scaffold/vite-react/template/. validate-scaffold-configs.sh already checked every <stack>/template/ tree, so it now covers Vite + React; validate-skills.yml also requires a template script and an .mjs file there.
  • lint-skills.sh reads the Next.js trees: template_files includes them, check_template_trees_complete checks each templated stack's manifest against its trees, the copy-instruction check requires the Next.js stack fences, and check_ref_file_headers skips the shipped template files (and fails when it finds no reference file). The middleware.ts rule excludes scaffold/nextjs/template-agents/AGENTS.md instead of nextjs/source-files.md. Each re-pointed check has an empty-match and an anchor-deleted case in lint-skills.test.sh.
  • The Next.js config notes now live in nextjs/source-files.md; nextjs/config-files.md is gone. The package name must match ^[a-z0-9][a-z0-9-]*$ and the AGENTS.md title must be one line, and the scaffold stops otherwise. Lint requires the PART=base copy before the first install and the PART=agents copy after pnpm format, and rejects an exact dependency pin in a template package.json (eslint-plugin-sonarjs is exact by design).
  • validate-scaffold-configs.sh checks skills/scaffold/<stack>/template/**/*.json with jq and *.{js,mjs,cjs} with node --check, fails when it validated nothing, and scaffold-parse.yml triggers on the template trees.
  • migrate's portal frame-ancestors guide reads the Next.js files from scaffold/nextjs/template/.
  • migrate's portal frame-ancestors guide reads the NestJS files from scaffold/nestjs/template/, and the NestJS backend-extraction guide points at the template tree instead of config-files.md. lint-skills.sh treats nestjs as a templated stack, test-template-copy.sh and lint-skills.test.sh cover its trees (manifest match, placeholders, copy refusals, empty-match and deleted-anchor cases); with all four stacks templated, scaffold/SKILL.md Step 2 loads only source-files.md, validate-scaffold-configs.sh checks the template files only, and the repo's docs and workflows no longer mention config-files.md.
  • session-context.sh no longer prints head -30 AGENTS.md, which the @AGENTS.md import already loads. The saving is about 0.3k tokens per session in seeded projects, not in the plugin load. session_context_no_agents_head pins it.
  • migrate appends @AGENTS.md to an existing CLAUDE.md that lacks the import (a line outside a code fence equal to @AGENTS.md or @./AGENTS.md). The health check flags a missing import and its re-sync step offers the same append.
  • scripts/test-harness-kit.sh reads the hooks, gates and lefthook files from the template trees. The lint checks check_no_comment_narration, check_scaffold_seeds_complete_harness, check_migrate_hook_inventory_matches_kit, check_yaml_fences_parse and check_security_seeds_present read them there too and fail when a tree is missing or empty. check_hook_command_uses_args_array and check_skilldir_refs_resolve keep their anchors in the markdown that still holds settings.json and the copy instructions. Every scan() rule scans the template trees; none excludes them.
  • The kit markdown points at each template file in a single line that starts with its backticked path; extract-fences.py reads that line as the end of the heading before it (a pointer inside a bullet or split over two lines is not one).
  • check-golden.sh --tree also rejects a symlink in place of a golden file, reports extra files among the hooks and .lefthook/ (not hooks/local/), and fails when no golden path was compared.
  • check-golden.sh takes moved paths from the template trees and the rest from the fences; a path produced by both fails as DUPLICATE. --from-templates compares the paths the trees hold.
  • migrate (Phase 4 Step 4d, Phase 5 Step 5d) names the template files as the canonical source for a re-sync; the merge stays a model step. tc-audit audits the template files.
  • FUTURE.md roadmap §1 (phase-splitting) is marked superseded.

Fixed

  • AI PR Review fails loudly: it stops with a clear error when CLAUDE_CODE_OAUTH_TOKEN is
    empty, and prints Claude's own error text when the review run fails, instead of only
    is_error: true.