plugins/agentic-behavior/skills/incident-tracker/SKILL.md
Use this skill when the user wants to log a behavioral incident, document a correction in a structured incident report, or maintain learned rules with footnote references back to source incidents. Trigger phrases include "log an incident", "log this incident", "track an incident", "behavioral incident", "document this correction as an incident", "create incident report", "file an incident", or when the user explicitly asks for a structured incident record with severity classification and rule derivation.
npx skillsauth add nsheaps/ai-mktpl incident-trackerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Track behavioral incidents with structured incident files, derive reusable rules, and maintain footnote references between rules and the incidents that produced them.
correct-behaviorBoth skills handle behavior corrections. They are complementary:
agentic-behavior:correct-behavior — broader corrective workflow
(reflect, scope, search, derive rule, edit rules/skills/plugins/hooks). Use
when the goal is fixing the behavior across the system.agentic-behavior:incident-tracker — structured incident log format
(severity, tags, footnoted rules). Use when the goal is producing a durable
audit trail of what happened, in addition to or instead of fixing the
behavior in code.When in doubt, prefer correct-behavior for active fixes and add an incident
record via this skill if the handler asks for one explicitly or if the
incident is significant enough to deserve a permanent record.
When given a behavioral correction:
Do not continue with the previous task. Acknowledge the correction first.
Capture, in your own words:
The rules file is where derived rules get appended (with footnote references back to the incident file). Discover it in this order:
CLAUDE.md exists at the repo root, use that.AGENTS.md exists at the repo root, use that.agentic-behavior.rulesFile is configured in
~/.claude/plugins.settings.yaml or project-level
.claude/plugins.settings.yaml, use that.AGENTS.md at the repo root and use that. Tell the user
you created it so they aren't surprised.Do not silently overwrite an existing rules file you didn't discover — ask the handler before clobbering anything unexpected.
Place it under incidents/behavioral/ at the repo root. Naming pattern:
YYYY-MM-DD--short-description.md
Use the structured template at
references/incident-template.md — copy it as the starting point, then fill
in every section. Do not leave placeholder text in the file.
Under a ## Learned Behaviors section in the rules file (create the section
if it doesn't exist), add the rule using this format:
N. **<Rule title>** — <Rule description>. [^rule-N]
[^rule-N]: [YYYY-MM-DD -- Incident Title](incidents/behavioral/YYYY-MM-DD--short-description.md)
Number rules sequentially within the file. Footnote IDs (^rule-N) must be
unique within the file. The footnote definition can live at the bottom of
the file with the other footnote definitions.
Before resuming any other work, confirm:
If the user disagrees, edit the incident file and rule before continuing.
| Level | When to Use |
| -------- | ------------------------------------------------------ |
| low | Minor inconvenience, no lasting impact |
| medium | Affected user workflow, required correction |
| high | Data loss, security issue, or significant trust impact |
Pick the most accurate severity based on impact, not on how badly you feel about the mistake. If the user explicitly classifies it differently, use their classification.
git push --force" is a rule.references/incident-template.md — structured template for incident filesagentic-behavior:correct-behavior — broader behavior-correction skill
for fixing the behavior in rules/skills/plugins/hookstools
Reference material for Claude Code internals — the on-disk layout under ~/.claude and project-scope .claude, the plugin cache, session-env propagation, and the full hook lifecycle. Auto-recall when working on Claude-Code-related tasks: writing or debugging hooks, authoring plugins, inspecting session state, troubleshooting why an env var is or isn't visible to a Bash tool call, or when paths under ~/.claude or ~/.claude/plugins/ come up.
development
Manage GitHub App installation tokens in Claude Code sessions. Use when tokens expire, auth errors occur in long-running sessions, or when setting up GitHub App credentials for agent teams. <example>my github token expired</example> <example>refresh the github app token</example> <example>check token status</example> <example>set up github app authentication for this session</example>
tools
Auto-detect project formatting tools and configure edit-utils settings
tools
Use this skill when the user asks about 1Password, secrets management, retrieving credentials, using op CLI, service accounts, secret references, vault operations, or any task involving the 1Password CLI (op). Also use when needing to inject secrets into environment variables, read passwords or API keys from 1Password, or manage 1Password items from the command line.