agent-context ยท diff

git:20260928.7eea469 to git:20261024.50c112d

20 added, 61 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: agent-context
- description: Set up or review project agent instructions from an evidence-based context inventory. Use when adding or trimming files under .agnostic-ai/.
+ description: Set up or review project agent instructions for clear ownership, useful scope, and current commands.
---
# Agent Context
- Use this skill when setting up a root agent file or reviewing the context
- that reaches coding agents. It works in any project, with or without the
- specialist agents below. Work from the project source of truth. Do not edit
- generated entry points directly.
-
- ## Delegate deliberately
-
- Read the shared [context checklist](references/context-checklist.md) for every
- task. If the specialist agents are available and delegation helps, use them:
+ Review the context that reaches coding agents, then make the requested source changes. Keep a review-only request read-only. Use the project's canonical sources; never edit generated entry points.
- | Need | Delegate to |
- |---|---|
- | Create or replace a root agent setup | `agent-config-bootstrapper` |
- | Review existing agent context without edits | `agent-context-reviewer` |
- | Review and edit existing agent context | Reviewer, then bootstrapper with its findings |
+ ## Inventory and review
- If either agent is unavailable, do its part yourself using the steps below.
- Global sync installs skills but not agents, so this fallback is required for
- global use. The reviewer reports evidence; the bootstrapper makes source
- changes and validates them when delegated. Do not duplicate the checklist in
- either agent.
+ Read `.agnostic-ai/skills/agent-context/references/context-checklist.md`. Inventory only the requested scope and its dependencies. Inspect repository instructions, contributor guidance, source layout, and validation commands before recommending changes.
- ## Setup
+ Trace generated files to their sources. Report duplication, contradictions, stale commands, broad permissions, and unsupported claims with `path:line` evidence and the smallest useful correction. Preserve user-owned configuration and private material.
- 1. Inspect the repository before writing instructions. Read its existing
- agent files, contributor guidance, build commands, and source layout.
- 2. Identify whether the project uses agnostic-ai. When it does, place shared
- instructions in `.agnostic-ai/AGNOSTIC_AI.md`, rules in
- `.agnostic-ai/rules/`, and reusable workflows in `.agnostic-ai/skills/`.
- Use the root entry point only when the project has no generated source.
- 3. Write the smallest useful root context. State the project purpose, source
- of truth, required checks, code boundaries, and generated-file policy.
- Link to detailed documents instead of copying them.
- 4. Add rules only for stable constraints that apply repeatedly. Put task
- procedures in skills, not in the root context.
- 5. Run the project's validation and, for agnostic-ai projects,
- `agnostic-ai validate` followed by `agnostic-ai sync`.
+ When delegation helps, use `agent-context-reviewer` for findings and `agent-config-bootstrapper` for accepted edits. Give each a bounded scope, source paths, ownership, and validation budget. Keep independent edits disjoint and expensive checks with one coordinator. If those roles are unavailable, follow this procedure directly.
- ## Review
+ ## Edit
- 1. Build the inventory in [references/context-checklist.md](references/context-checklist.md).
- Record each file's owner, audience, scope, and whether it is generated.
- 2. Flag duplication, contradictions, stale commands, broad permissions, and
- instructions that cannot be verified from the repository.
- 3. Keep root context short. Move target-specific details into target fences,
- scoped rules, agents, or skills as appropriate.
- 4. Preserve user-owned and security-sensitive configuration. Never copy
- credentials, tokens, private URLs, or machine-specific paths into shared
- instructions.
- 5. For a review-only request, propose a focused edit. For a review-and-edit
- request, make focused source changes, regenerate outputs where applicable,
- and validate.
- Report which source files changed and which generated outputs followed.
+ 1. Put shared project context in `.agnostic-ai/AGNOSTIC_AI.md`, stable conventions in `rules/`, procedures in `skills/`, and delegated responsibilities in `agents/`. Check `agnostic-ai.yaml` for source overrides. Use a root native file only when the project has no generated source.
+ 2. Keep root context to project purpose, source of truth, validation routing, and boundaries. Link to existing detailed guidance instead of copying it.
+ 3. Keep each instruction with one owner. Preserve non-obvious safety and compatibility requirements when removing duplication. Read references only when the task needs them.
+ 4. Check referenced files and commands against the repository. Verify target-specific claims from current official documentation only when the recommendation depends on them.
+ 5. Follow the project's validation policy. In this repository, use `go run ./cmd/agnostic-ai validate`, `lint`, `sync`, and `sync --check`; `docs/internal/contributing.md#choose-checks-for-your-change` owns additional checks. Review tracked output changes and keep ignored outputs ignored.
- ## Decision guide
+ ## Placement
- | Need | Put it in |
+ | Need | Source |
|---|---|
- | A project-wide fact or non-negotiable convention | Root context or a rule |
- | A reusable multi-step workflow | Skill |
- | A delegated role with a clear responsibility | Agent |
- | A directory-specific convention | Scoped rule |
- | A tool-specific difference | Target fence or target override |
-
- ## Exit criteria
+ | Project-wide fact or boundary | Root context or a rule |
+ | Reusable procedure | Skill |
+ | Delegated responsibility | Agent |
+ | Directory-specific convention | Scoped rule |
+ | Tool-specific difference | Target fence or target override |
- - Every instruction has one owner and one source of truth.
- - The root context links to detail instead of repeating it.
- - Generated outputs match their source specs.
- - Validation commands are current and runnable from the repository root.
+ Finish with the source files changed, behavior clarified, checks and limits. Confirm that generated guidance matches its sources and that referenced resources remain reachable from each emitted location. A clean sync proves matching output, not useful instructions.