Install
$ agentstack add skill-mdsakalu-agent-plugins-reflecting-on-skills ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Reflecting on Skills
This skill is automatically triggered after any other skill completes (via a PostToolUse hook).
Platform Compatibility
> Claude Code Only: This skill uses PostToolUse hooks and the Task tool for > background subagent execution. These features are specific to Claude Code and > not available in Claude apps or via the API.
For the cross-platform Agent Skills specification, see agentskills.io.
Instructions
When invoked after another skill completes:
- Identify the skill - Determine which skill was just used from conversation context
- Launch background analysis - Use the Task tool:
`` Task tool with: subagent_type: "general-purpose" run_in_background: true prompt: [see below] ``
- Subagent prompt template:
``` Analyze the skill that was just used in this conversation.
- Read the skill's SKILL.md file at: ~/.claude/skills/[skill-name]/SKILL.md
- Review the conversation to identify:
- Errors or exceptions encountered
- Unclear or missing instructions that caused confusion
- Edge cases the skill didn't handle
- Inefficiencies or unnecessary steps
- Deviations from the skill's guidance (may indicate gaps)
- If issues found, draft SPECIFIC improvements:
- Exact text to add/change in SKILL.md
- Keep changes minimal and focused
- Only address observed issues, not hypotheticals
- If improvements warranted, use AskUserQuestion:
- Present the issue observed
- Show the proposed change
- Ask: "Apply this improvement to [skill-name]?"
- If approved, use Edit tool to update the skill's SKILL.md
If no issues observed, complete silently without prompting. ```
- Continue conversation - Don't wait for reflection to complete
Hook Configuration
This skill is triggered by a PostToolUse hook in ~/.claude/settings.json:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Skill",
"hooks": [
{
"type": "command",
"command": "python3 ~/.claude/hooks/post-skill-reflect.py"
}
]
}
]
}
}
The hook script at ~/.claude/hooks/post-skill-reflect.py excludes this skill to prevent infinite loops.
What Makes a Good Suggestion
Good (observed issue):
- "User got FileNotFoundError - add note about checking file exists"
- "Instructions said X but user needed Y - clarify the step"
Bad (hypothetical):
- "Might be nice to add error handling for edge cases"
- "Could improve by adding more examples"
Complete Example
After managing-jira skill completes with an error:
- Observed: User tried
acli jira workitem create --type Epicand got "Capitalize field required" - Read: SKILL.md already has Epic limitation in Known Limitations ✓
- Analysis: Limitation exists but user still hit it - maybe needs better visibility
- Proposal: Move Epic limitation to a "Common Pitfalls" callout box
- Ask user: "The Epic creation limitation is documented but easy to miss. Add a Common Pitfalls callout at the top of the Create section?"
- If approved: Edit SKILL.md to add the callout
When NOT to Suggest Changes
- Skill worked correctly (user error, not skill gap)
- Issue is one-off edge case unlikely to recur
- Fix would add complexity without clear benefit
- The issue is already documented (unless visibility is the problem)
- User explicitly deviated from skill guidance
Refusal and Escalation
Refuse (do not suggest changes):
- Changes would alter security-sensitive code without explicit user review
- The skill involves credentials, API keys, or authentication logic
- Proposed changes affect multiple skills simultaneously
- User has explicitly disabled skill reflection for the session
Escalate (always ask before proceeding):
- The proposed change is substantial (more than 10 lines)
- The change affects the skill's core behavior
- Multiple alternative improvements are possible
Evaluation Checklist
Before proposing a change, verify:
- [ ] Issue was actually observed (not hypothetical)
- [ ] Root cause identified (not just symptoms)
- [ ] Proposed change is minimal and focused
- [ ] Change follows existing skill patterns
- [ ] Change maintains backward compatibility
- [ ] Similar issue not already documented elsewhere
Troubleshooting
- Hook not triggering: Check
~/.claude/settings.jsonhas the PostToolUse hook configured per Hook Configuration section - Infinite loop: Ensure
post-skill-reflect.pyexcludes "reflecting-on-skills" - Subagent not finding skill: Verify skill path uses
~/.claude/skills/[skill-name]/SKILL.mdformat - No improvements suggested: This is expected when skills work correctly - silence is success
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: mdsakalu
- Source: mdsakalu/agent-plugins
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.