project-context-adapter
Skill7 starsChanged 21 days agoApache-2.0View on GitHub
Refresh local project/** facts and frontend path indexes after project or tooling changes. Excludes Kit version upgrades and reusable skill authoring.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-rules-skill-authorSkill
- agent-self-improvementSkill
- design-screenshot-specSkill
- execution-plan-managerSkill
- frontend-architecture-plannerSkill
- frontend-bugfix-debuggerSkill
- frontend-design-directorSkill
- frontend-design-intelligenceSkill
- frontend-layout-implementerSkill
- frontend-linter-managerSkill
- frontend-prototype-explorerSkill
- frontend-quality-reviewerSkill
- frontend-refactor-surgeonSkill
- frontend-visual-qaSkill
- goal-plannerSkill
- greenfield-project-builderSkill
- loop-workflow-plannerSkill
- mcp-toolchain-managerSkill
- pattern-library-managerSkill
- project-onboarding-adapterSkill
- webdev-feedbackSkill
- webdev-kit-updaterSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 66
Read AGENTS.md when shipped, or the native plugin's generated runtime prelude.
- Very specific: line 70
Read existing project/ overlays.
- Very specific: line 75
Read common/project-fact-provenance-rules.md.
- Very specific: line 77
Read targeted README sections only when the refresh concerns project intent, setup guidance, or documentation drift.
- Distinctive: line 81
Use Project Context MCP when available.
- Distinctive: line 82
Use filesystem reads and targeted search when Project Context MCP is unavailable.
- Very specific: line 84
Use context7 and MDN only when refreshing official documentation choices or stack-specific pattern notes that depend on current external …
- Distinctive: line 87
Do not use Figma MCP.
- Distinctive: line 94
Update only affected overlays or path indexes.
- Very specific: line 101
Keep graph frontmatter current with publishable: false and local_only: true.
- Very specific: line 103
Keep host-project facts out of AGENTS.md, README.md, common/, manifests, and reusable skills/.
- Distinctive: line 105
Verify updated facts against actual files or official documentation sources.
- Very specific: line 122
When product terms affect the task, read common/domain-glossary-rules.md.
- Very specific: line 167
When relevant client version, authentication mode, configuration, role paths or model availability changes, mark affected local …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Context Adapter
Purpose
Refresh factual host-project context in project/** so reusable skills can
implement screenshot-derived specs without scanning the whole repository.
When To Use
- Project structure, routes, entrypoints, styling systems, assets, or verification commands changed.
- A new frontend stack fact was discovered during implementation.
- Current skill capability declarations, available providers, or official documentation choices changed.
- Design-reference boundaries, approved patterns, or anti-patterns changed.
- Path indexes no longer match actual source files.
When Not To Use
- Upgrading the installed Kit version: use
webdev-kit-updater; refresh only facts its changed contracts invalidate. - First-time full onboarding in Plan Mode. Use
project-onboarding-adapter. - Reusable skill authoring. Use
agent-rules-skill-author. - Screenshot spec writing or implementation unless project facts changed.
Required Context
- Read
AGENTS.mdwhen shipped, or the native plugin's generated runtime prelude. Resolve local overlays under host.agents/project/, not inside a shared plugin installation. - Confirm the classified task is
project-context-refreshor a project context cache update required by another task. - Read
common/documentation-maintenance.md. - Read existing
project/**overlays. - Inspect relevant manifests, configs, entrypoints, routes, components,
styles, assets,
tool-capabilities-manifest.json, and verification scripts. - Read
references/extraction-checklist.md. - Read
references/sync-procedure.md. - Read
common/project-fact-provenance-rules.md; preserve unrefreshed dates and mark unexecuted checksnot-run.
Read targeted README sections only when the refresh concerns project intent, setup guidance, or documentation drift. Use common/readme-policy.md and confirm cached technical facts through higher evidence.
Tool Contract
- Use Project Context MCP when available.
- Use filesystem reads and targeted search when Project Context MCP is unavailable.
- Use
context7and MDN only when refreshing official documentation choices or stack-specific pattern notes that depend on current external docs. - Activate
openai_platform_docsonly when refreshed project facts depend on current OpenAI or Codex behavior. - Do not use Figma MCP.
- Edit only
project/**unless the user also requests bundle skill or policy changes.
Workflow
- Determine which project facts changed.
- Update only affected overlays or path indexes.
- Refresh
project/mcp-profile.mdwhen skill capabilities, validated providers servers, official docs choices, or verification capabilities changed. - Refresh
project/design-reference-profile.mdwhen screenshot, exported asset, copied inspect, or design-source boundaries changed. - Refresh
project/approved-patterns.mdandproject/anti-patterns.mdonly from real project code or official documentation for the detected stack. - Keep graph frontmatter current with
publishable: falseandlocal_only: true. - Keep host-project facts out of
AGENTS.md,README.md,common/**, manifests, and reusableskills/**. - Verify updated facts against actual files or official documentation sources.
Output Contract
Final response: return only facts that affect the user's understanding, confidence, or next action. Omit empty fields and workflow narration.
Report:
- overlays updated;
- source facts used;
- official documentation or MCP facts refreshed;
- project paths indexed or changed;
- verification performed;
- any project facts that remain unknown.
Product Language Context
When product terms affect the task, read common/domain-glossary-rules.md.
Reuse a confirmed host glossary or maintain a populated local-only
project/domain-glossary.md; do not create one during read-only planning.
Record consequential reasons in the existing decision log and load only the
relevant domain. Glossary maintenance never renames code or edits host docs.
Validation Gates
project/**files must remain local-only.- Path indexes must point to existing files or explicitly mark missing owners.
project/mcp-profile.mdmust match active declarations intool-capabilities-manifest.jsonwhen it is touched; provider config alone must not be recorded as availability.project/design-reference-profile.mdmust distinguish successful live reads from image evidence and unverified historical access; preserve source/state IDs.- Patterns and anti-patterns must cite real local code facts or official documentation choices, not generic preferences.
- Reusable skills must not receive host-specific facts.
- README claims must not become project facts without confirmation from source, config, CI, package scripts, lockfiles, official documentation, or real results.
- Context refresh must not edit README unless the current user explicitly requests that README change.
- Context refresh records design evidence; live acquisition belongs to
design-screenshot-spec, and canvas/whiteboard writes remain outside refresh.
Trigger Evals
Should trigger:
- "Refresh project context after this layout change."
- "Update .agents/project path indexes."
- "The styling profile is stale; sync it with the repo."
Should not trigger:
- "Create a design implementation spec from screenshots."
- "Implement this screen."
- "Plan first-time onboarding for a new project."
Reference Map
references/extraction-checklist.mdreferences/sync-procedure.mdcommon/readme-policy.md
Model Routing Drift
When relevant client version, authentication mode, configuration, role paths or
model availability changes, mark affected local model-routing evidence stale.
Preserve project/model-routing-profile.md, request/state files and backups;
do not refresh their model bindings automatically. Approved reconfiguration
belongs to project-onboarding-adapter and its client-specific bootstrap reference.
For Claude, mark affected .agents/project/claude-agent-profile.md bindings stale
when plugin, model, auth or native-tool evidence changes; preserve existing roles
and do not rerun canaries during ordinary context refresh.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

