branch-context-consumer
Skill1 starsChanged 56 days agoApache-2.0View on GitHub
Consume BranchContextPlugin injections in commands. Use when a command depends on an injected <branch-context> block for its scope.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- asking-questionsSkill
- broSkill
- browser-accessSkill
- browser-controlSkill
- changeset-scopeSkill
- check-skill-updatesSkill
- chillSkill
- cleanup-unnecessary-variablesSkill
- code-reviewSkill
- decision-modelsSkill
- diagnoseSkill
- effect-principlesSkill
- evidence-firstSkill
- gh-stackSkill
- git-contextSkill
- github-development-rulesetsSkill
- github-repository-setupSkill
- grillingSkill
- handoffSkill
- herdr-workflowsSkill
- home-assistant-frontendSkill
- home-assistant-lazy-contextSkill
- home-assistant-list-componentsSkill
- home-assistant-lit-renderingSkill
- human-step-guideSkill
- import-external-skillSkill
- lit-renderingSkill
- maintain-docsSkill
- opencode-effectSkill
- pitchfork-dev-serversSkill
- pkexec-rootSkill
- planSkill
- release-oxlint-rulesSkill
- remove-single-use-functionsSkill
- researchSkill
- retroSkill
- safe-process-signalsSkill
- session-coordinationSkill
- shared-workflowsSkill
- show-meSkill
- skill-prefixesSkill
- staged-implementationSkill
- task-focusSkill
- testingSkill
- to-questionnaireSkill
- types-enforce-tsSkill
- wranglerSkill
- writing-dot-skillsSkill
- writing-styleSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
If <branch-context> is absent, do not run git fallback commands.
- Distinctive: line 21
Use when the command only needs the changed-file scope.
- Very specific: line 23
Read the <work-scope> section in this order: unstaged, staged, then branch diff.
- Very specific: line 24
Use the changed-file and diff-stat entries in <work-scope> to identify the scope before reading specific files.
- Distinctive: line 28
Use when the command needs branch identity, status, PR state, or the full snapshot.
- Distinctive: line 30
Read all tagged sections when present, in this order:
- Distinctive: line 36
Prefer the precomputed entries from each section over reconstructing state with git or gh commands.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Branch Context Consumer
Standard contract for commands that depend on BranchContextPlugin injecting a <branch-context> block before execution.
Parse and validate
- Parse the injected
<branch-context>block. - If
<branch-context>is absent, do not run git fallback commands; stop and report thatBranchContextPlugindid not inject context for this command.
Modes
Work-scope mode
Use when the command only needs the changed-file scope.
- Read the
<work-scope>section in this order: unstaged, staged, then branch diff. - Use the changed-file and diff-stat entries in
<work-scope>to identify the scope before reading specific files.
Full-context mode
Use when the command needs branch identity, status, PR state, or the full snapshot.
- Read all tagged sections when present, in this order:
<branch-metadata><status><work-scope>(unstaged, staged, then branch diff)<pull-request><warnings>
- Prefer the precomputed entries from each section over reconstructing state with git or gh commands.
Reporting
Include scope source used (BranchContextPlugin context) in the command's final report.
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.

