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
Manually reproduce what the github-app plugin's SessionStart hook does to make a GitHub App installation token usable in the current session — materialize the PEM, generate the token, isolate GH_CONFIG_DIR, write the runtime env file, and wire CLAUDE_ENV_FILE so every Bash call sees GH_TOKEN/GITHUB_TOKEN. Use when the hook did not run, the token is missing from the environment, or a shell/teammate needs the token wired up by hand. <example>GH_TOKEN isn't set even though github-app is configured</example> <example>the github-app SessionStart hook didn't run, set up the token manually</example> <example>wire the github app token into CLAUDE_ENV_FILE</example> <example>gh keeps falling back to the wrong account, isolate GH_CONFIG_DIR</example>
tools
Manually configure the GitHub App bot git identity the way the github-app plugin's SessionStart hook does — resolve the app slug and bot user ID, build the <slug>[bot] name and noreply email, set GIT_AUTHOR_*/GIT_COMMITTER_* env vars, and write an isolated GIT_CONFIG_GLOBAL with the gh auth git-credential helper. Use when commits are attributed to the wrong account, "Author identity unknown" appears, or git identity must be set up by hand. <example>my commits are showing up as the handler, not the bot</example> <example>git says Author identity unknown after the github-app hook ran</example> <example>configure the github app bot git identity manually</example> <example>set up the gh credential helper for git push</example>
tools
Manages spec files for requirements capture and validation
tools
# Bash Chaining Alternatives This skill teaches you how to work around the bash command chaining restriction enforced by this plugin. ## Why Chaining is Blocked The `bash-command-rejection` plugin blocks these operators: | Operator | Name | Why Blocked | | -------- | ---------- | ----------------------------------------------------------------------------------- | | `&&` | AND chain | Runs cmd2 only if cmd1 su