AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Reflecting On Skills

skill-mdsakalu-agent-plugins-reflecting-on-skills · by mdsakalu

Analyzes skill usage and suggests improvements. Automatically invoked after other skills via PostToolUse hook. Enables continuous improvement through self-reflection on errors, inefficiencies, and gaps.

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-mdsakalu-agent-plugins-reflecting-on-skills

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mdsakalu-agent-plugins-reflecting-on-skills)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Reflecting On Skills? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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:

  1. Identify the skill - Determine which skill was just used from conversation context
  1. Launch background analysis - Use the Task tool:

`` Task tool with: subagent_type: "general-purpose" run_in_background: true prompt: [see below] ``

  1. Subagent prompt template:

``` Analyze the skill that was just used in this conversation.

  1. Read the skill's SKILL.md file at: ~/.claude/skills/[skill-name]/SKILL.md
  2. 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)
  1. 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
  1. If improvements warranted, use AskUserQuestion:
  • Present the issue observed
  • Show the proposed change
  • Ask: "Apply this improvement to [skill-name]?"
  1. If approved, use Edit tool to update the skill's SKILL.md

If no issues observed, complete silently without prompting. ```

  1. 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:

  1. Observed: User tried acli jira workitem create --type Epic and got "Capitalize field required"
  2. Read: SKILL.md already has Epic limitation in Known Limitations ✓
  3. Analysis: Limitation exists but user still hit it - maybe needs better visibility
  4. Proposal: Move Epic limitation to a "Common Pitfalls" callout box
  5. Ask user: "The Epic creation limitation is documented but easy to miss. Add a Common Pitfalls callout at the top of the Create section?"
  6. 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.json has the PostToolUse hook configured per Hook Configuration section
  • Infinite loop: Ensure post-skill-reflect.py excludes "reflecting-on-skills"
  • Subagent not finding skill: Verify skill path uses ~/.claude/skills/[skill-name]/SKILL.md format
  • 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.