instinct-promotion
Skill0 starsChanged 5 months agoMITView on GitHub
Promote an observed pattern to a governed instinct in the zone-segmented ledger (knowledge/instincts/corporate or hsa). Enforces human approval, a minimum confidence score, and a documentation citation for compliance items via the learning-promotion-gate. Triggers on: instinct promote, promote pattern, governed instinct, instinct ledger, learning promotion, /instinct-promote.
In this repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ansible-patternsSkill
- ansible-testingSkill
- change-documentationSkill
- ci-pipeline-debuggingSkill
- drift-detectionSkill
- gitlab-cicd-pipelineSkill
- hsa-infrastructureSkill
- iac-sast-scanningSkill
- iac-tooling-selectionSkill
- incident-responseSkill
- instinct-rollbackSkill
- knowledge-curationSkill
- multi-env-promotionSkill
- octopus-releaseSkill
- pci-cp-complianceSkill
- pci-dss-complianceSkill
- pci-pin-awarenessSkill
- perso-change-controlSkill
- perso-complianceSkill
- pre-commit-and-secret-scanningSkill
- rollback-and-runbooksSkill
- secrets-vaultSkill
- supply-chain-and-sbomSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Use this skill when a pattern observed by the observe-runner hook (recorded in the State Store) has proven itself and should become a …
- Distinctive: line 93
Never promote an instinct that encodes access to PAN, keys, PINs, or HSM config.
- Distinctive: line 100
Before proposing an instinct for promotion, verify all of the following:
- Distinctive: line 110
Write instinct content as a rule a future agent can apply without needing the original context:
≈ “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
Instinct Promotion Skill
When to Use
Use this skill when a pattern observed by the observe-runner hook (recorded in the
State Store) has proven itself and should become a governed instinct — a durable,
versioned, evidence-cited rule the agent applies going forward. Reach for it on
prompts like "promote this pattern", "make this an instinct", or /instinct-promote.
A pattern is promotable only when all of these hold (otherwise it is noise):
- it recurs across multiple observations (not a one-off),
- it has a clear, statable rule and a measurable benefit,
- its blast radius is understood (what it changes about future behavior),
- for compliance-related rules, it is backed by a specific documentation citation (doc + section/revision — not "best practices").
How It Works
Promotion is governed: the agent never writes the ledger directly. The flow is
observe-runner → candidate → /instinct-promote → learning-promotion-gate
→ (HSA only) dual-control-promotion-gate → instinct-ledger writes the entry
→ governance event recorded in the unified State StoreThe learning-promotion-gate enforces, and denies the promotion unless:
- Human approval — an
--approveridentifier is present. - Minimum confidence —
>= 0.7(recommended>= 0.85). - Documentation citation — required when the content is compliance-related (mentions pci/dss/pin/chd/card-production/hsm/cpsa).
- Valid zone —
corporate(PCI DSS) orhsa(PCI CP + PIN). HSA promotions must run in the HSA zone (INFRA_HSA_ZONE=1) and additionally pass dual control (two distinct approvers) viadual-control-promotion-gate.
On success the entry is written to knowledge/instincts/<zone>/<id>.yml with
status: active, and the attempt (allow or deny) is logged to the State Store
governanceEvents collection. Zone tokens corpor/in-zone are accepted as legacy
aliases for corporate/hsa.
Examples
Promote a corporate-zone instinct
node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/learning-promotion-gate.js" --promote \
--id fqcn-001 --zone corporate \
--content "Author Ansible modules with their FQCN to stay version-stable." \
--confidence 0.9 --approver senior-op-1 --evidence obs-001,obs-005
# → writes knowledge/instincts/corporate/fqcn-001.yml ; exits non-zero on denialValidate without writing (dry run)
node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/learning-promotion-gate.js" --promote \
--id tls-min --zone corporate --content "Enforce TLS 1.2+ on all services." \
--confidence 0.9 --approver op1 --citation "PCI DSS v4.0.1 Req 4.2.1" --dry-runA compliance-related content string (here it mentions TLS/PCI) is denied without a
--citation — and the citation must be specific ("PCI DSS v4.0.1 Req 4.2.1"), not
vague ("best practices").
HSA-zone instinct (requires dual control first)
node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/dual-control-promotion-gate.js" --check \
--id perso-x --zone hsa --approvers senior-op-1,cpsa-assessor \
--citation "PCI CP Logical Security v3.0 §X"
# then, in-zone (INFRA_HSA_ZONE=1):
INFRA_HSA_ZONE=1 node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/learning-promotion-gate.js" \
--promote --id perso-x --zone hsa --content "…" --confidence 0.9 \
--approver senior-op-1 --citation "PCI CP Logical Security v3.0 §X"Trust boundary
- The agent proposes; a human approves. No silent self-promotion.
- Never promote an instinct that encodes access to PAN, keys, PINs, or HSM config.
- Rollback/deactivation is governed too — see the
instinct-rollbackskill.
Deep Reference
Instinct Quality Checklist
Before proposing an instinct for promotion, verify all of the following:
- Confidence ≥ 0.85 (0.7 is the gate floor; 0.85 is recommended)
- At least two independent observations support the pattern
- A documentation citation exists (required for compliance items; strongly recommended for all)
- The pattern is zone-correct (corporate instincts must not encode HSA assumptions)
- A human approver has been identified who was not involved in originating the observation
Instinct Content Guidelines
Write instinct content as a rule a future agent can apply without needing the original context:
# GOOD — actionable, self-contained, zone-correct
content: >
Always use FQCN for Ansible module calls in this codebase. Short-form names
(e.g., `copy:` instead of `ansible.builtin.copy:`) are rejected by ansible-lint
and cause ambiguity when multiple collections are installed.
# BAD — vague, not actionable
content: >
Use FQCN.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.

