Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By DEFRAv0.1.0In 1 marketplace
Cross-cutting Defra standards as installable skills and guardrail hooks: branching, commit messages, code-quality gates, security & PII handling, and accessibility. Referenced by every other Defra plugin so cross-cutting standards live in one place. No agent — skills + hooks only.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Copilot CLI / Claude Code plugin that ships Defra's cross-cutting standards as installable skills and guardrail hooks. Every other Defra plugin references these skills by name in its system prompt and inherits these hooks by default — so the cross-cutting rules live in one place and stay consistent across the v1 set.
Five skills (the standards, written for an agent to read):
defra-branching — no commits to main / master; feature-branch + pull-request workflow.defra-commit-messages — provisional Conventional Commits format (subject ≤ 72 chars, imperative, no trailing period).defra-quality-gates — lint, format, test, and ≥ 80% coverage all pass before commit.defra-security-pii — no hard-coded secrets, no PII in logs, no unsafe template patterns.defra-accessibility — WCAG 2.2 AA for code-generating roles; semantic markup for documentation roles.Five hooks (the guardrails, enforced by the host CLI on tool use):
| Hook | Event | Sync? | What it does |
|---|---|---|---|
branch-guard | PreToolUse on Bash | sync (blocks) | Refuses git commit / git push while HEAD is on main / master, and refuses any git push -f / --force / --force-with-lease whose args mention main / master from any branch. |
commit-message-format | PreToolUse on Bash | sync (blocks) | Validates the Conventional Commits subject on git commit -m / --message. Refuses -F / --file / --template / -C / --reuse-message / --fixup / --squash and editor-driven commits. Allows --amend --no-edit. |
secret-scan | PreToolUse on Edit|Write | sync (blocks) | Refuses writes containing AWS keys, private-key blocks, GitHub / Slack tokens, Anthropic / OpenAI / Stripe / Google API keys, JWTs, or apiKey: "…"-shaped credentials (including base64 values). |
pii-scan | PostToolUse on Edit|Write | async (warns) | Warns when a file contains UK NI numbers, NHS numbers (Mod-11 validated), postcodes, or dd/mm/yyyy DoBs. Paths under */eval-fixture/fixtures/* are skipped. |
coverage-floor | PostToolUse on Bash | async (warns) | Parses test runner output and warns when coverage falls below 80% (override via COVERAGE_FLOOR). |
No agent — see why
Unlike every other plugin in the v1 set,
defra-shareddoes not ship anagents/directory. That is deliberate, not an oversight. This plugin's role is to be the single source of truth for the cross-cutting standards; any agent (the role-specific plugins, ad-hoc Copilot / Claude Code sessions) can reference its skills by name. Adding an agent here would either duplicate the role-specific plugins (against the design indocs/design/shared_skills.mdOption A "inline duplication") or create a vague meta-agent that owns nothing in particular.The skills and hooks are inherited by reference: when a role plugin's system prompt says "see skill
defra-commit-messages", the host CLI resolves it from any installed plugin — so installingdefra-sharedalongside the role plugin is enough. Ifdefra-sharedis not installed, role plugins fall back to short inline restatements; the soft-handoff principle (perdocs/requirements/non_goals.md) keeps this graceful.
From the marketplace:
copilot plugin marketplace add DEFRA/defra-ai-plugins
copilot plugin install defra-shared@defra-ai-plugins
For Claude Code, run these inside an interactive session (they are slash commands, not shell commands):
/plugin marketplace add DEFRA/defra-ai-plugins
/plugin install defra-shared@defra-ai-plugins
From a local checkout (for development):
copilot plugin install ./plugins/defra-shared
Once installed, the skills are discoverable to any other agent on the same host CLI; the hooks fire automatically on the matching tool use.
npx claudepluginhub defra/defra-ai-plugins --plugin defra-sharedPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.