Critical Rules
- NEVER interrupt the user's current task to suggest reporting. Only suggest recording AFTER the current task is complete.
- Only record skill-related issues — bad instructions, missing edge cases, wrong examples, outdated patterns. NOT environmental failures (network, permissions, missing tools), user typos, or out-of-scope requests.
- Reports must be portable: no absolute paths from the user's project, no machine-specific details. Focus on the skill's instructions and what they got wrong.
- One report per distinct issue. Combine related issues within a single session into one report.
When to Record
- Skill instructions led to incorrect output
- User had to correct behavior that the skill should have handled
- A skill's example or pattern was wrong or outdated
- Skill missed an edge case that caused failure
- Skill's description triggered activation in the wrong context
Do NOT record: user typos, environment issues, tool unavailability, out-of-scope requests, or problems unrelated to skill instructions.
Semi-Automatic Flow
This is the primary mode — Claude detects an issue during normal work.
- While working on a task, notice a skill instruction issue
- Continue the task — do NOT interrupt or mention it yet
- After task completion, suggest: "I noticed [skill] had an instruction issue: [brief description]. Want me to record it for improvement?"
- If user agrees, read the skill's SKILL.md to identify the relevant instructions
- Write the report using the template below
- Show the report file path
Manual Flow
User invokes /skill-report directly.
- If
$ARGUMENTS provided, use it as <skill-name>
- If no arguments, ask which skill to report on
- Ask user to describe the issue (or use conversation context if the issue was just discussed)
- Read the skill's SKILL.md to identify relevant instructions
- Write the report using the template below
- Show the report file path
Report Storage
Path pattern: $TMPDIR/skill-reports/<skill-name>/YYYY-MM-DD_<session-id-short>.md
$TMPDIR — OS-managed temporary directory (falls back to /tmp if unset)
<skill-name> — subdirectory per skill for easy browsing
YYYY-MM-DD — date prefix for sorting
<session-id-short> — first 8 characters of $CLAUDE_SESSION_ID (use unknown if unavailable)
- Create the directory with
mkdir -p before writing
- If a report already exists for this session, append a counter suffix (
_2, _3, etc.)
Report Template
# Skill Report: <skill-name>
Date: YYYY-MM-DD
Session: <full CLAUDE_SESSION_ID or "unknown">
## Context
What the skill was trying to accomplish and what task triggered it.
## Issue
What went wrong — the observable incorrect behavior.
## Root Cause
Which specific section, rule, or example in the skill's instructions
led to the incorrect behavior. Quote the relevant instruction.
## Expected Behavior
What the correct outcome should have been.
## Suggested Improvement
Concrete change to the skill's SKILL.md or references that would
prevent this issue. Be specific — name the section and describe the fix.
Fill every section. Quote the actual skill instruction that caused the issue in Root Cause. Be specific in Suggested Improvement — name the section and describe the exact change.
Reading Reports (for Skill Improvement)
When the user asks to review reports or improve a skill based on reports:
- List reports:
ls $TMPDIR/skill-reports/<skill-name>/
- Read each report
- Cross-reference with the skill's current SKILL.md
- Propose specific changes to the skill's instructions
- Group related issues if multiple reports point to the same root cause
Edge Cases
$TMPDIR not set → fall back to /tmp
$CLAUDE_SESSION_ID not available → use unknown as session ID
- Skill directory not found in repo → still write the report with available context, note the skill wasn't found
- Multiple distinct issues in one session → write separate reports, append counter suffix
- Report file already exists → append counter suffix (
_2, _3, etc.)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: enonic-ai-agents-skills-skill-report3description: Critical Rules4---56## Critical Rules781. **NEVER interrupt the user's current task** to suggest reporting. Only suggest recording AFTER the current task is complete.92. Only record **skill-related issues** — bad instructions, missing edge cases, wrong examples, outdated patterns. NOT environmental failures (network, permissions, missing tools), user typos, or out-of-scope requests.103. Reports must be **portable**: no absolute paths from the user's project, no machine-specific details. Focus on the skill's instructions and what they got wrong.114. One report per distinct issue. Combine related issues within a single session into one report.1213## When to Record1415- Skill instructions led to incorrect output16- User had to correct behavior that the skill should have handled17- A skill's example or pattern was wrong or outdated18- Skill missed an edge case that caused failure19- Skill's description triggered activation in the wrong context2021Do NOT record: user typos, environment issues, tool unavailability, out-of-scope requests, or problems unrelated to skill instructions.2223## Semi-Automatic Flow2425This is the primary mode — Claude detects an issue during normal work.26271. While working on a task, notice a skill instruction issue282. **Continue the task** — do NOT interrupt or mention it yet293. After task completion, suggest: _"I noticed [skill] had an instruction issue: [brief description]. Want me to record it for improvement?"_304. If user agrees, read the skill's SKILL.md to identify the relevant instructions315. Write the report using the template below326. Show the report file path3334## Manual Flow3536User invokes `/skill-report` directly.37381. If `$ARGUMENTS` provided, use it as `<skill-name>`392. If no arguments, ask which skill to report on403. Ask user to describe the issue (or use conversation context if the issue was just discussed)414. Read the skill's SKILL.md to identify relevant instructions425. Write the report using the template below436. Show the report file path4445## Report Storage4647**Path pattern:** `$TMPDIR/skill-reports/<skill-name>/YYYY-MM-DD_<session-id-short>.md`4849- `$TMPDIR` — OS-managed temporary directory (falls back to `/tmp` if unset)50- `<skill-name>` — subdirectory per skill for easy browsing51- `YYYY-MM-DD` — date prefix for sorting52- `<session-id-short>` — first 8 characters of `$CLAUDE_SESSION_ID` (use `unknown` if unavailable)53- Create the directory with `mkdir -p` before writing54- If a report already exists for this session, append a counter suffix (`_2`, `_3`, etc.)5556## Report Template5758```markdown59# Skill Report: <skill-name>6061Date: YYYY-MM-DD62Session: <full CLAUDE_SESSION_ID or "unknown">6364## Context65What the skill was trying to accomplish and what task triggered it.6667## Issue68What went wrong — the observable incorrect behavior.6970## Root Cause71Which specific section, rule, or example in the skill's instructions72led to the incorrect behavior. Quote the relevant instruction.7374## Expected Behavior75What the correct outcome should have been.7677## Suggested Improvement78Concrete change to the skill's SKILL.md or references that would79prevent this issue. Be specific — name the section and describe the fix.80```8182Fill every section. Quote the actual skill instruction that caused the issue in **Root Cause**. Be specific in **Suggested Improvement** — name the section and describe the exact change.8384## Reading Reports (for Skill Improvement)8586When the user asks to review reports or improve a skill based on reports:87881. List reports: `ls $TMPDIR/skill-reports/<skill-name>/`892. Read each report903. Cross-reference with the skill's current SKILL.md914. Propose specific changes to the skill's instructions925. Group related issues if multiple reports point to the same root cause9394## Edge Cases9596- `$TMPDIR` not set → fall back to `/tmp`97- `$CLAUDE_SESSION_ID` not available → use `unknown` as session ID98- Skill directory not found in repo → still write the report with available context, note the skill wasn't found99- Multiple distinct issues in one session → write separate reports, append counter suffix100- Report file already exists → append counter suffix (`_2`, `_3`, etc.)101102---103> Converted and distributed by [TomeVault](https://tomevault.io/claim/enonic) — claim your Tome and manage your conversions.104<!-- tomevault:4.0:skill_md:2026-04-15 -->