plugin/skills/context-load/SKILL.md
Use this skill when assembling a subagent prompt and you need its context kept small and on-topic (db-engineer gets DB sections, ui-ux-designer gets UI/UX sections, etc.) — to load a per-role slice of project context from CLAUDE.md / AGENTS.md / ARCHITECTURE.md / project memory and return Markdown ready to embed in a subagent prompt.
npx skillsauth add avav25/ai-assets context-loadInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Extract role-relevant excerpts from project documentation. Trim to a token budget. Wrap in <untrusted_content> envelope per G1. Output: paste-ready Markdown for subagent prompt assembly.
/feature-design Wave 1 — feed each agent its targeted context (vs full project dump)state_slice.related_artefactsReduces per-agent input tokens vs sending full CLAUDE.md to every subagent.
/context-load --for db-engineer
/context-load --for ui-ux-designer --max-tokens 2000
/context-load --for security-engineer --include-memory
| Flag | Default | Effect |
|---|---|---|
| --for <role> | required | One of the 26 plugin agent names |
| --max-tokens N | 2000 | Hard cap on output token count |
| --include-memory | off | Also include relevant L4 learnings.md excerpts |
| --include-architecture | on | Include ARCHITECTURE.md if exists |
--for <role> matches one of plugin/agents/<name>.md (else error with list of valid roles).untrusted-content-wrapping.md):
<repo>/CLAUDE.md — extract sections matching role keywords<repo>/AGENTS.md (if exists) — extract role-specific subsection<repo>/ARCHITECTURE.md (if exists, --include-architecture) — extract role-relevant partslearnings.md (if --include-memory) — entries tagged with role or with role-domain keywordsdb-engineer → sections matching database, schema, migration, query, index, transactionfrontend-engineer → frontend, UI, component, routing, bundler, accessibilitysecurity-engineer → auth, authentication, authorization, secrets, encryption, vulnerability, OWASPdevops-engineer → deploy, docker, kubernetes, helm, terraform, CI, pipeline--max-tokens:
# Project context for `<role>` (loaded by /context-load, ~N tokens)
## From CLAUDE.md
<wrapped excerpt>
## From AGENTS.md
<wrapped excerpt>
## From ARCHITECTURE.md
<wrapped excerpt>
## From L4 memory (if --include-memory)
<wrapped excerpt>
---
Sources: CLAUDE.md (lines X-Y), AGENTS.md (section "Z"), ARCHITECTURE.md (sections A,B), .ai-skills-memory/learnings.md (3 entries)
This skill is read-only — no memory writes.
<repo>/CLAUDE.md (L2), <repo>/AGENTS.md, <repo>/ARCHITECTURE.md, L4 learnings.md (if --include-memory)plugin/agents/*.md for role name lookupuntrusted-content-wrapping (G1 wrap on every source excerpt)/feature-design, /develop, /team-bugfix) — feeds state_slice of G7 spawn payloads/subagent-spawn (constructs full G7 payload using context-load output)plugin/docs/concepts/memory.md documents the L0–L5 layers (L0 Cowork host, L1 plugin templates, L2 CLAUDE.md, L3 session run-logs, L4 project memory, L5 user-global memory). This skill reads from L2 + L4.development
Use this skill when running the recurring (daily) knowledge-base rescan for a repo that already has knowledge/.knowledge-sync.yml — the main-thread dispatcher that reads the config, computes the git delta since last_scanned_sha, maps changed paths to affected doc areas, early-exits cheaply when nothing changed, then fans out one Agent(content-writer) per affected area, applies the propose/direct update policy, advances the baseline only on success, and writes an L4 run log — all with the G1 untrusted-content choke-point, secret-scan, deny-list, and budget controls woven in. For first-time setup use /knowledge-sync-init.
development
Use this skill when bootstrapping scheduled knowledge-base sync for a repo that has no knowledge/.knowledge-sync.yml yet — to run one-time setup that detects the knowledge_root from CLAUDE.md/AGENTS.md, maps doc areas to source globs, records opt-in external sources (Linear/Notion/WebFetch, all disabled by default), captures a baseline last_scanned_sha, sets the per-area update policy, generates or seeds knowledge/CONVENTIONS.md, provisions the L4 memory dir, and offers to register the daily routine. Routes ongoing recurring sync operations to /knowledge-sync.
tools
Use this skill when bootstrapping a target repository to be ai-skills-aware — on the first run of any ai-skills workflow in a fresh repo, when adopting the ai-skills plugin in an existing repo, or after upgrading to a plugin version that adds new memory paths or templates, including when the user does not say "init" but asks to "set up" or "onboard" the repo — to detect codebase type, create CLAUDE.md + AGENTS.md scaffolding, initialize the .ai-skills-memory/ directory tree from L1 templates, and configure .gitignore. Idempotent — safe to re-run. Accepts `--codebase-type <type>` and `--overwrite`. Not for re-initializing only memory — use `/memory-init` instead.
tools
Use this skill when extending, repairing, or improving plugin assets, when ingesting a `/feedback` report as a fix-cycle backlog, or when you do not remember which lower-level command is right for the job — the umbrella workflow for ai-skills plugin-asset authoring and maintenance: creating, auditing, fixing, improving, refactoring, and migrating skills, agents, rules, hooks, prompts, schemas, and rubrics inside the plugin. Auto-classifies the request, loads the right knowledge skills (`@prompt-engineering`, `@context-engineering`, `@team-protocols`), and spawns the right subagents (`prompt-engineer`, `system-architect`, `python-engineer`, `software-engineer`, `qa-engineer`, `eval-judge`) via the `Agent` tool.