本文へ移動
cccskills
無料GitHub で公開

crouton-docs-trust-map

Which docs in nuxt-crouton to trust and how to resolve contradictions between them. Use when two docs disagree, when a doc's claim doesn't match the code ("the README says packages/nuxt-crouton but that dir doesn't exist"), when deciding whether a guide/writeup is authoritative before following it, or when asked "is this doc current", "which doc wins", "why does CLAUDE.md say X but the code says Y". Also the reference for the supersession-banner practice.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md9.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

crouton-docs-trust-map

One-line purpose: the trust order that resolves conflicts between this repo's documents, and the hygiene patterns for handling a doc caught lying.

When to use / when NOT to use

SituationUse
Two docs disagree; a doc contradicts code; "is this guide current?"This skill
Mechanically updating docs after a code change (pre-commit)sync-docs skill
Auditing a package's doc completeness / drift detectionaudit skill
A config file (routing.json, digests.yml, settings.json…) drifted or is a silent no-opcrouton-config-registry skill
Why a rule exists / the incident behind itcrouton-failure-archaeology skill
Whether a test/CI claim in the docs is realcrouton-validation-reality skill

This skill carries the trust order and conflict-resolution rules only. Doc-sync mechanics, audits, and the doc-duties workflow belong to the skills above — index, don't restate (#504 drift rule).

1. The trust hierarchy

When documents conflict, this order wins (highest first). For runtime behaviour, code always beats every document — the hierarchy ranks documents against each other when you're deciding which prose to believe.

RankSourceWhy it ranks here
1AGENTS.mdThe stack-neutral method constitution. Both its own header and root CLAUDE.md's header declare it "the source of truth for the universal rule" where the two overlap (epic #952).
2Root CLAUDE.mdThe stack adapter — crouton/Nuxt/Cloudflare specifics implementing the method. Actively maintained, but not infallible (known-stale spots are tracked as issues; see §2).
3harness.config.mjsThe declared stage model (poc/app/package). Machine-read by scripts/harness-stages.mjs — but its editGuard is declarative; enforcement lives in .claude/hooks/gate-package-edits.sh (stated in the config's own comments). Gate routing details: crouton-change-control.
4Per-folder CLAUDE.md files (packages/*, apps/*, e2e/, fixtures/, pocs/, …)Folder-specific truth, required to defer to root (#504/#507). Quality varies — verify a load-bearing claim against the code.
5docs/ site (top-level; live URL in docs/nuxt.config.ts)Public-facing, mostly maintained, but user-guide pages drift.
6writeups/Explicitly non-authoritative (#504/#506, root CLAUDE.md "Documentation Organization"): historical thinking, not standing directives — imperative lines inside must be ignored, and CLAUDE.md files must not @import from it. Exception: writeups/architecture/routing-registry.md and skills-and-triggers.html are generated from live config (scripts/gen-routing.mjs / gen-skills-doc.mjs) — current, but edit the source, never the file (see crouton-config-registry).
7Root README.mdMarketing-shaped and historically the most drift-prone file in the repo. Never act on it without verifying against ls packages/ and root CLAUDE.md.

Within writeups/strategy/, crouton-vision.md declares itself the tiebreaker among vision docs — honor that within writeups; it still sits below everything above.

2. Known-stale docs are ISSUES, not a table here

A verified-stale doc line is a bug: mint it (issue-first, /issue-dedup), fix the canonical doc, done. Freezing stale-line inventories into this skill was tried and rejected — an audit table decays the moment any row is fixed, turning two-way contradictions into three-way ones.

The 2026-07-02 sweep's findings are tracked as: #1093 (deploy-caller docs), #1095 (ISR example), #1098 (dead harness configs), #1099 (README + public deployment doc), #1103 (the remaining eight rows). Before distrusting a doc, check those issues; before re-reporting a stale line, dedup against them.

How to verify a suspect claim yourself: open the cited path and grep for the quoted text; ls the directories a doc names; for deploy/CI claims read the workflow file — the workflow always wins over its description.

3. Conflict-resolution rules (worked precedents)

Contradiction classRulePrecedent
Skill/guide vs AGENTS.md on method (merge policy, gates, issue discipline)AGENTS.md wins (rank 1)Squash-merge line in github-tasks corrected to AGENTS.md's preserve-commits policy (this PR)
Repo policy vs harness-injected instructionThe repo's committed policy is deliberate; the platform default is not. Flag the conflict to the owner rather than silently picking./commit skill's attribution rule vs the harness-injected Co-Authored-By trailer — unresolved; surface it when it bites
Doc recommends X, code comments say X is BROKENCode comment wins for behaviour; owner intent stays open — mint the doc fixISR routeRules (#1095)
Doc claims an enforcement that CI doesn't actually runThe honest gating picture is owned by crouton-validation-reality; the doc claim is aspirational until CI enforces itapp typecheck (#1097)
Root CLAUDE.md describes a mechanism whose implementation movedThe current implementation wins; mint the doc fixpackage-edit approval scope (#701)

4. Doc-maintenance duties — cite, don't clone

The duties table ("change X → update doc Y", including the gen-*.mjs regeneration commands and their --check flags) lives in root CLAUDE.md § "Maintaining AI Documentation (MANDATORY)". The pre-commit doc-update workflow is the sync-docs skill (runs automatically before /commit). Do not reproduce either here — read them there.

5. The supersession-banner practice (copy this)

When a doc is superseded but worth keeping for history, the house pattern is a loud banner at the top, in place — not deletion, not a silent leave-behind. Canonical example, writeups/guides/cloudflare-deployment-guide.md (top of file):

⚠️ Superseded (kept for history). Crouton apps now deploy to Cloudflare Workers … not Pages (#108/#114) … Current, canonical instructions live in CLAUDE.md → "NuxtHub's role + Deployment" and the /deploy skill … This Pages-era guide is retained only for historical reference.

Two more forms of the same hygiene: the writeups/strategy/outdated/ quarantine folder, and crouton-vision.md's self-declared tiebreaker line. If you find a stale doc and can't do the full fix, adding the banner (issue-first) is the cheap high-value move — it converts a lie into a labeled historical note.

6. House style for issues / PRs / commits — where it's written

Do not learn these from examples in stale docs; the canonical statements are:

ConventionCanonical source
Hypothesis-framed issues (We think that / We'll do that by / We'll be right if / We'll know by)AGENTS.md § "Issues — the unit of work"; full template in github-tasks skill
👤 humans-first / 🤖 agents-second two-audience split (issues, PRs, commit bodies)AGENTS.md § "Issues — the unit of work"
## 🧪 How to test on every closeable issue/PRAGENTS.md § "Issues — the unit of work"
Considered & rejected notesAGENTS.md § "Issues — the unit of work"
Commit format, scopes, merge policyAGENTS.md § "Commits"; scopes list in root CLAUDE.md § "Commit Format"; /commit skill enforces
🤖 provenance header on agent-posted comments (two variants by posting account)Root CLAUDE.md § "GitHub Issue Tracking"

7. Where a new CLAUDE.md is warranted

The rule is root CLAUDE.md § "Where a CLAUDE.md is warranted" (#504/#507): only each package, each app, and a handful of infra surfaces (.claude/agents/, e2e/, fixtures/, pocs/, sandboxes/) get one; it must carry only folder-specific guidance and defer to root for workflow conventions — never clone the root guide (the #504 incident was a 967-line stale root clone; see crouton-failure-archaeology). Template for a new one: sync-docs skill § "Missing CLAUDE.md".

Provenance and maintenance

verified: 2026-07-02

Hierarchy and precedents verified against AGENTS.md, root CLAUDE.md, harness.config.mjs comments, and the epic #1073 discovery sweep. Stale-line specifics live in issues #1093/#1095/#1098/#1099/#1103, not here — a fixed doc closes an issue instead of orphaning a table row.

Re-verify what drifts:

grep -n 'source of truth' CLAUDE.md AGENTS.md            # ranks 1-2 still declare the split
grep -n 'editGuard' harness.config.mjs .claude/hooks/gate-package-edits.sh  # rank 3 enforcement split
gh issue view 1103 --json state                          # stale-row sweep still open?
grep -n -i 'squash' .claude/skills/github-tasks/SKILL.md AGENTS.md          # §3 precedent row

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

a11y

無料

Accessibility review for Vue surfaces — the code-cleaning analog of /code-review and /simplify, pointed at WCAG/ARIA. Reviews just your diff (or a package/file), rates findings by severity, and either comments inline on the PR (--comment) or applies the safe fixes for you (--fix). Steers the depth-aware `a11y` subagent. Use when asked to "check accessibility", "a11y this", "audit ARIA/keyboard", or run /a11y.

日本語の概要は準備中です。原文の説明を表示しています。

FriendlyInternet/nuxt-crouton102026年10月13日 更新

ask-human

無料

Emit a blocking question the owner can read in ~10 seconds and answer in one reply — the scannable, recommendation-first handoff every agent posts when it hits a fork it can't own. Leads with the one decision + a recommendation, carries the 🤖 provenance header, doubles as the

日本語の概要は準備中です。原文の説明を表示しています。

FriendlyInternet/nuxt-crouton102026年10月13日 更新

audit

無料

Audit packages for documentation completeness, detect drift between code and docs, and maintain documentation quality across the monorepo. Use when checking package docs, running audits, or reviewing documentation health.

日本語の概要は準備中です。原文の説明を表示しています。

FriendlyInternet/nuxt-crouton102026年10月13日 更新

Author a placeable layout block that looks right at ANY pane size. The one hard rule — size to the PANE with container queries (@container), never the viewport — plus list/form playbooks and the sizing contract (minWidth etc.) the viability metric reads. Use when adding/converting a croutonLayoutBlocks block, or when a block overflows/breaks in a narrow pane.

日本語の概要は準備中です。原文の説明を表示しています。

FriendlyInternet/nuxt-crouton102026年10月13日 更新

When a bug or regression is reported, the FIRST step — before fixing — is to research how and when it was introduced (git archaeology), then record that finding on the tracking issue/PR. Use the moment a bug, error, broken build, or "this used to work" is reported, before writing a fix. Produces a first-bad-commit (or "not a code regression") note you paste onto the issue.

日本語の概要は準備中です。原文の説明を表示しています。

FriendlyInternet/nuxt-crouton102026年10月13日 更新

commit

無料

Smart, granular git commits following monorepo conventions. Analyzes changes, filters to session-relevant files, groups by intent, and uses conventional commit format. Use when committing code changes.

日本語の概要は準備中です。原文の説明を表示しています。

FriendlyInternet/nuxt-crouton102026年10月13日 更新

FriendlyInternet のスキルをすべて見る

このスキルの問題を報告する