| name | applying-feedback |
| description | Use when reviewing and applying accumulated feedback from backlogs across PAS artifacts. Invoked by the PAS router when user mentions feedback, upgrade, or improvement. |
Applying Feedback
Review and apply accumulated feedback signals from backlogs across all PAS artifacts. Feedback signals are written by agents during self-evaluation and routed to artifact backlogs by the feedback routing hook.
Workflow
1. Survey Backlogs
Recursively scan for pending feedback:
Under the marketplace-authoritative model (PAS ≥ 1.4.0), backlogs live inside the marketplace clone — the writable git clone Claude Code maintains at ~/.claude/plugins/marketplaces/<marketplace>/. For this repo (the PAS marketplace itself), the paths below are under plugins/pas/:
<marketplace>/plugins/<plugin>/processes/*/feedback/backlog/ — process-level signals
<marketplace>/plugins/<plugin>/processes/*/agents/*/feedback/backlog/ — agent-level signals
<marketplace>/plugins/<plugin>/processes/*/agents/*/skills/*/feedback/backlog/ — skill-level signals
<marketplace>/plugins/<plugin>/library/*/feedback/backlog/ — library skill signals
Legacy consumer-side .pas/processes/*/... backlogs still exist for any project carrying pre-1.4.0 process copies; treat them the same way until migrated.
List all directories containing .md files (pending signals).
2. Present Accumulation Summary
Show the user a prioritized overview:
| Artifact | Signals | Highest Priority | Signal Types |
|---|
| {path} | {count} | {HIGH/MEDIUM/LOW} | {PPU, OQI, etc.} |
If targeted (user specified an artifact): focus on that artifact only.
If untargeted: recommend where to start based on signal volume and severity.
3. Ask User Preference
Use the AskUserQuestion tool to present these options. Do not ask in plain text — the structured prompt makes the choice unambiguous and the user's response routable. Options:
- Apply all + remember — apply all signals for this artifact, remember this preference for future sessions
- Apply all once — apply all signals for this artifact this time only
- Just this — let me pick which signals to apply one at a time
- Review first — show me each signal before deciding
4. Sanity Checks
For each signal, verify:
- Target validation: does the target artifact exist? Is the path correct?
- Signal quality: is the evidence specific enough to act on? Is the fix clear?
- Duplicate detection: is this signal saying the same thing as another signal already processed?
- STA conflict: would this change affect behavior protected by a Stability Anchor?
Skip signals that fail sanity checks. Log why they were skipped.
5. Pattern Analysis
Look for patterns across signals:
- 3+ reports pointing to the same issue = strong pattern, high confidence to act
- 2 HIGH priority signals on the same artifact = moderate pattern, worth acting on
- Single LOW signal = weak, apply only if the fix is obvious and low-risk
6. Resolve Contradictions
When signals conflict with each other:
- Most recent wins: later sessions have more context
- Highest frequency wins: repeated observations beat one-offs
- Context-conditional merge: both might be right in different contexts (add conditional logic)
- Escalate to user: if contradictions cannot be resolved mechanically
7. Evaluate Definitiveness
Is the feedback clear enough to act on?
- Apply Occam's razor: choose the fix with the fewest assumptions
- If ambiguous: ask the user to clarify before changing anything
- Never guess at what the user wants. Better to ask than to apply a wrong fix.
8. Apply with Consolidation-First Approach
Prefer tightening existing instructions over adding new ones:
- Can an existing rule be made more specific? Do that instead of adding a new rule.
- Can two related rules be merged? Do that instead of keeping both.
- Only add new instructions when the feedback describes behavior not covered by existing instructions.
9. Check STAs
Before finalizing changes, scan for Stability Anchors on the target artifact:
- If the change would affect anchored behavior: warn the user explicitly
- Show the STA, explain the conflict, and ask for confirmation
- STAs exist to prevent regression. Overriding them requires explicit user approval.
10. Present Diff
Show the user exactly what will change:
- Before/after for each modified section
- Highlight what was added, removed, or changed
- Explain why each change is being made (link to triggering signals)
11. Write Changelog Entry
After user approves the changes, write a dated entry to the artifact's changelog.md:
## {YYYY-MM-DD} — {Brief description of change}
Triggered by: {signal-id} ({workspace-slug}), {signal-id} ({workspace-slug})
Pattern: {what the signals had in common}
Change: {what was actually changed in the artifact}
12. Clear and Commit
- Remove processed signals from
feedback/backlog/
- Stage modified artifact and changelog
- Commit with message:
"Apply feedback: {artifact-path} — {brief description}"
13. Where Do Changes Go?
Two routes exist; the wrong route will file PAS-internal changes onto the user's product repo. Always:
- Marketplace-resident artifacts (under
plugins/<plugin>/, or legacy .pas/processes/ / .pas/library/ copies) — apply edits in-repo as direct file changes. No GitHub issue.
framework:pas signals routed to GitHub — filed ONLY on the PAS framework repo (ZoranSpirkovski/PAS, enforced by route-feedback.sh framework_signal_repo). Never on the host project's repo. The hook handles this; this skill does not call gh issue create.
- Process / agent / skill signals — stay local in the artifact's
feedback/backlog/ until an applying-feedback session processes them. They NEVER become GitHub issues anywhere.
If you are about to call gh issue create from this skill, stop. The hook routes framework signals; this skill applies signals — it does not file them.
Quality Tests
Apply these tests to evaluate whether a change is worth making:
| Test | Question |
|---|
| Efficiency | Does this change reduce wasted effort or tokens? |
| Accuracy | Does this change prevent factual or structural errors? |
| Alignment | Does this change better match user preferences? |
| UX | Does this change improve the user's experience? |
A change should pass at least one test. If it passes none, reconsider whether it is worth applying.