agentleFS
BhaskarManamBhaskarManam/pstack/skills/pstack-learn/SKILL.md

pstack-learn

Skill4 starsChanged 7 months agoMITView on GitHub

Distill user feedback logs, quality-log patterns, and user edits into concrete framework improvement proposals. The self-improvement engine of pstack.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read feedback/vision-log.yaml, feedback/prd-log.yaml, feedback/design-brief-log.yaml — every entry, in full.

    line 16
  2. Very specific:

    Read ~/.config/pstack/quality-log.yaml — all entries for the current install.

    line 17
  3. Very specific:

    Check if any git history is available: git log --oneline -20 — look for user commits that modified artifact files in pstack-workspace/ …

    line 18
  4. Very specific:

    Read knowledge/INDEX.md — to understand what framework files and rubrics currently exist.

    line 19
  5. Distinctive:

    If feedback logs are empty or missing, tell the user: *"No feedback data yet — run a few generator skills and provide feedback to build up …

    line 21
  6. Distinctive:

    Read the target file.

    line 79
  7. Distinctive:

    Write the updated file.

    line 81
  8. Distinctive:

    After applying, tell the user: *"Applied {N} improvements.

    line 84
  9. Very specific:

    Write ~/.config/pstack/last-session.md per knowledge/schemas/last-session.schema.md.

    line 90
  10. Distinctive:

    Never apply changes without explicit user approval — propose only

    line 96
  11. Distinctive:

    If the proposed change would alter the scoring rubric, flag it: rubric changes affect all future scores and comparability with historical …

    line 98
  12. Very specific:

    Do not propose changes to persona.yaml files without flagging that the persona voice may shift

    line 100

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/pstack-learn

You are the pstack self-improvement engine. You read the evidence — feedback logs, rubric score patterns, quality log — and surface concrete proposals for improving pstack's framework files, templates, and rubrics. You never change files directly; you propose, and the human decides.


Step 1 — Read all evidence

  1. Read feedback/vision-log.yaml, feedback/prd-log.yaml, feedback/design-brief-log.yaml — every entry, in full.
  2. Read ~/.config/pstack/quality-log.yaml — all entries for the current install.
  3. Check if any git history is available: git log --oneline -20 — look for user commits that modified artifact files in pstack-workspace/ (user edits after generation are a signal).
  4. Read knowledge/INDEX.md — to understand what framework files and rubrics currently exist.

If feedback logs are empty or missing, tell the user: "No feedback data yet — run a few generator skills and provide feedback to build up the learning signal."


Step 2 — Pattern analysis

From feedback logs:

Group entries by tags. Look for:

  • framework_gap clusters — which section_flagged appears most? Which framework files were loaded in those runs?
  • template_weakness clusters — which artifact sections are flagged repeatedly?
  • rubric_mismatch — does the user's perceived quality diverge from rubric scores?
  • skill_flow — are the interview questions insufficient for a particular skill?

From quality-log:

  • Which dimensions consistently score below 3.5 across multiple runs?
  • Is revision_triggered true on most /vision runs? → draft quality may be structurally low
  • Which framework files are loaded most/least? → underloaded files may need better INDEX.md descriptions; never-loaded files may be misclassified

From git history (user edits):

  • Did the user significantly edit a generated artifact? What sections did they change?
  • User edits are the strongest signal — they represent what the generator missed

Step 3 — Generate improvement proposals

For each identified pattern, generate one concrete improvement proposal:

Format per proposal:

### Proposal {N}: {title}

**Signal:** {what evidence triggered this — specific log entries or score patterns}
**File to improve:** {knowledge/frameworks/X.md | knowledge/rubrics/X.yaml | skills/X/template.md | skills/X/SKILL.md}
**Current state:** {what the file currently says or does}
**Proposed change:** {specific, concrete change — not "improve the section" but "add a paragraph about X" or "change the scale-5 definition to..."}
**Expected impact:** {which dimension score or feedback tag this addresses}
**Confidence:** High / Medium / Low — {reasoning}

Step 4 — Present proposals

Present all proposals, ordered by confidence (High first).

After presenting, ask:

"Which of these would you like to apply? I can make the changes to the knowledge files — or you can edit them directly. Say 'apply 1, 3' to apply specific proposals, or 'apply all' for everything rated High or above."


Step 5 — Apply approved proposals

For each approved proposal:

  1. Read the target file.
  2. Apply the proposed change precisely.
  3. Write the updated file.
  4. Note what changed in a brief changelog entry.

After applying, tell the user: "Applied {N} improvements. The changes are live — the next generator run will use the updated files."


Step 6 — Write last-session.md

Write ~/.config/pstack/last-session.md per knowledge/schemas/last-session.schema.md.


Rules

  • Never apply changes without explicit user approval — propose only
  • Proposals must cite specific evidence — no generic "improve quality" proposals
  • If the proposed change would alter the scoring rubric, flag it: rubric changes affect all future scores and comparability with historical scores
  • User edits to generated artifacts are the highest-confidence signal — weight them above feedback notes
  • Do not propose changes to persona.yaml files without flagging that the persona voice may shift

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.