sidecar-auth-context
Skill119 starsChanged 5 months agoMITView on GitHub
Working on resolver plugins, the fixed access plugin contract, mapping resolver outputs into ExecutionContext, or protected-node filtering. Primary task is tasks/0006-sidecar-auth-context.md.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-reviewSkill
- code-reviewSkill
- documentationSkill
- git-workflowSkill
- mcp-toolsSkill
- project-architectureSkill
- prompt-renderingSkill
- refactoringSkill
- runtime-engineSkill
- senior-python-engineeringSkill
- skill-authoringSkill
- testingSkill
- vercel-react-best-practicesSkill
- yaml-schemaSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Do not edit this file directly.
- Very specific: line 18
Use this when working on resolver plugins, the fixed access plugin contract, mapping resolver outputs into ExecutionContext, or …
- Very specific: line 42
Call resolver plugin methods declared in top-level resolvers.
- Very specific: line 43
If any node has protected: true, require plugins/access.py with AccessResolver.can_access(ctx, node_id) -> bool.
- Very specific: line 45
Keep plugin instances shared where appropriate.
≈ “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
<!--
This file is generated by tools/skills.
Do not edit this file directly.
Edit .ai/skills/sidecar-auth-context.md and run `make generate-ai`.
-->Skill: Plugin Context & Access
When to use this skill
Use this when working on resolver plugins, the fixed access plugin contract,
mapping resolver outputs into ExecutionContext, or protected-node filtering.
Primary task: tasks/0006-sidecar-auth-context.md.
Files to read first
AGENTS.mddocs/SIDECAR_CONTEXT_AUTH.mddocs/ARCHITECTURE.mddocs/PROMPT_RENDERING.md
Architecture rules
- The runtime contains no customer-specific auth/business logic.
- Resolver plugins fill prompt variables before a node runs.
- Tool plugins are separate and run during LLM execution.
- Protected nodes are hidden from routers unless the access plugin allows them.
- Access failures fail closed.
- Secrets are redacted in traces.
Implementation rules
- Implement plugin integration in
src/agentplatform/context. - Build
ctxfrom request headers and request data. - Call resolver plugin methods declared in top-level
resolvers. - If any node has
protected: true, requireplugins/access.pywithAccessResolver.can_access(ctx, node_id) -> bool. - Keep plugin instances shared where appropriate; keep request data on
ExecutionContext.
Validation checklist
- No customer-specific logic in the runtime.
- Resolver outputs are request-scoped.
- Protected nodes are filtered before routing.
- Deny/error cases fail closed and are traced.
- Secrets redacted in traces.
- Tests use fake plugins covering allow/deny/error.
make checkpasses.
Common mistakes to avoid
- Implementing auth/tenant/business rules inside the engine.
- Failing open when access plugin raises.
- Exposing resolver plugins to the LLM as tools.
- Logging raw tokens/secrets in the trace.
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.

