Skip to content
FunCoding

context-exclusion

Maintain .agent-no-read.md markers for approved generated directories using deterministic scripts. Use when configuring generated-code context exclusion or restoring markers after regeneration, not for ordinary ignore rules or OS permissions.

Star
2,823
License
MIT
Last commit
Nov 10, 2026

packages/agent-context-kit/skills/context-exclusion/SKILL.md

View on GitHub

Generated context exclusion

Use the packaged scripts/markers.mjs entry point to maintain .agent-no-read.md. Resolve that script relative to this skill directory; it uses the package's compiled CLI runtime (or source modules in a checkout), so keep the installed Agent Context Kit layout intact.

Run from the project root with an explicitly approved project-relative manifest:

agent-context-markers apply --manifest context-markers.json
agent-context-markers check --manifest context-markers.json
agent-context-markers generate --manifest context-markers.json

If the package bin is unavailable, invoke the resolved script with node and the same arguments. No cwd, target-directory, guidance-text or shell-command overrides are accepted. apply creates or updates markers, check performs no writes, and generate runs the manifest's fixed generator and restores snapshotted markers in finally, including after command failure or cancellation.

Use existing user/host authorization for the manifest and target directories; this skill does not authorize arbitrary configuration changes or removal of markers. Keep the manifest and Markdown guidance outside every generated output directory. Put stable interface locations, editable source locations and build/test guidance in the Markdown source. Do not copy implementation details into guidance.

In the dedicated Pi harness, call an already configured fixed build/generation operation that embeds this script or its SDK helper. This skill does not install a model-controlled maintenance tool, enable Bash, or bypass the tool allowlist. Treat maintenanceFailed as a failed operation even if generation succeeded; verify or repair the marker state through the authorized maintenance entry point before continuing model access. Do not manually read excluded source to diagnose failure.

Read the maintenance guide for manifest format, exit codes, regeneration limits and the runnable end-to-end example.

Similar Skills

ask-matt

MAmattpocock/skills336k5,004 new stars in the last 7 days

chief-of-staff

MAmattpocock/skills336k5,004 new stars in the last 7 days

setup-matt-pocock-skills

MAmattpocock/skills336k5,004 new stars in the last 7 days

subagent-driven-development

OBobra/superpowers331k5,757 new stars in the last 7 days

autonomous-loops

AFaffaan-m/ECC314k4,125 new stars in the last 7 days

agent-eval

AFaffaan-m/ECC314k4,125 new stars in the last 7 days