The article’s central argument is that effective agent skills are not exhaustive procedures or prompt scripts. They are compact capsules of institutional knowledge that help agents avoid repeatedly making the same mistakes. citeturn0search0
1. Write skills from observed failures
Don’t begin by imagining every situation an agent might encounter. Let the agent perform the task, observe where it struggles, and create a skill to address recurring failures, wasted effort, or inconsistent decisions.
2. Capture goals and constraints—not every step
A good skill should explain:
The desired outcome
Important constraints and guardrails
Non-obvious context the agent could not infer from the repository or conversation
It should generally avoid prescribing every implementation step. Agents need room to adapt their approach to the specific task.
3. Keep skills short and durable
Overly detailed skills become brittle. File paths, tool commands, and process steps change; once a skill is outdated, it can actively mislead the agent. Focus on knowledge that is likely to remain useful over time.
4. Use progressive disclosure
Put the essential guidance first. Keep advanced details, edge cases, and optional context available only when relevant. This reduces cognitive and context-window overhead.
5. Treat skills as living documentation
Skills should evolve based on how agents actually behave. Review where agents fail or spend unnecessary tokens, then refine the relevant skill rather than adding instructions indiscriminately.
6. Be selective about creating skills
Not every repeated task deserves a skill. A skill is most valuable when:
The problem occurs frequently
The underlying guidance is stable
The cost of agent mistakes is meaningful
The knowledge is not already clear in code, tests, or documentation
For rapidly changing processes, ordinary documentation, tooling, or automated checks may be better.
Bottom line
A useful skill is a focused, reusable memory of durable goals, constraints, and hard-won context—not a giant instruction manual. Start with real agent failure modes, encode only what the agent cannot reliably infer, and keep iterating based on results.
User
Use scouts to review skills in this pi extension against the above points. Mark each skill against the 6 rubrics
Assistant
Skills review
Scouts reviewed all 14 packaged skills against the six article-derived rubrics. Ratings are 1–5:
Observed failures — grounded in real failure modes or recurring pain
Goals / constraints — states outcomes and guardrails instead of prescribing every step
Short / durable — compact and focused on enduring knowledge
Progressive disclosure — essentials first, details when relevant
Living documentation — includes verification, feedback, or iteration mechanisms
Selective creation — avoids unnecessary actions, mutations, or over-automation
The observed-failure rating is based on evidence in the files, not repository history or agent-session data. It should be treated as inferred provenance.
Skill
Failures
Goals / constraints
Short / durable
Progressive disclosure
Living docs
Selective creation
background-terminals
2
4
5
4
3
5
browser
3
4
2
4
2
5
database-query
4
5
2
4
2
4
exe-dev
3
4
1
3
2
User
Use a worker to implement improvements for these 3
exe-dev: apply the feedback, we can remove the lifecycle commands
fly-io: remove the command level detail
stripe-projects: remove the classic stripe CLI material
Assistant
Implemented by a worker.
Changes
skills/exe-dev/SKILL.md
Reduced from 370 to 66 lines.
Removed lifecycle command tables, exhaustive flags, and deploy command recipes.
Preserved:
Lobby vs. direct VM SSH distinction
Authentication and host-key guidance
Deployment decision framework
HTTPS, sharing, domains, integrations, and API concepts
Safety constraints and official documentation links
skills/fly-io/SKILL.md
Reduced from 360 to 76 lines.
Removed command-level recipes and detailed command tables.
Preserved:
Authentication and targeting rules
Stripe Projects macaroon-token distinctions
Deployment decision flow
MPG, volumes, secrets, networking, regions, and safety guidance
Recurring Fly.io failure modes and reference links
skills/stripe-projects/SKILL.md
Removed the classic Stripe CLI section, including webhooks, resource CRUD, logs, raw API, and fixtures.
Removed classic CLI references from the reference section.
Updated the frontmatter description to cover only Stripe Projects.
README.md
Updated all three skill descriptions to match their reduced scopes.
Removed the classic Stripe CLI claim from the Stripe Projects entry.
Validation
git diff --check passed.
Confirmed no classic Stripe CLI material remains in skills/stripe-projects/SKILL.md or README.md.
No unrelated skills were modified.
Changes are uncommitted.
User
weekly-planning - what do you have in mind here?
Assistant
I’d treat weekly-planning differently from the infrastructure skills. Its length is partly justified because it contains valuable personal operating knowledge and lessons from previous planning cycles. I would not simply delete the detail.
The goal would be to turn it from a 417-line monolith into a concise skill with progressively disclosed references.
Proposed structure
1. Keep SKILL.md as the compact entry point
The main file would retain:
When to trigger Monday planning versus Friday retro
The overall objective:
Three project-anchored objectives by default
Reduce to two when capacity is constrained
Every objective links to one or more Tasks
The key database boundaries:
Projects = quarterly anchors
Tasks = weekly progress
Daily Work = execution records
The calendar-screenshot requirement and confirmation gate
The approval gates before creating Tasks or Daily Work rows
The most important safety rules:
Don’t overcommit capacity
Don’t blur the databases
Don’t auto-drop calendar events
Carry over non-complete work by default
A short Monday/Friday phase outline
Links to the detailed references
This would probably bring the core skill down to roughly 100–150 lines.
2. Move stable reference material into separate files
Move the longer examples and situational patterns:
Requests
Scheduling
Apologies and delays
Disagreement and pushback
Decisions
Follow-ups
Technical explanations
Executive/stakeholder messages
Recruiter replies
Support resolutions
The core skill could say: “Read message-patterns.md when the message has a specific situational pattern.”
editing-and-review.md
Move:
The existing-draft rewrite sequence
The final review checklist
Rules for preserving facts, names, links, and commitments
Guidance on keeping necessary warmth and political judgment
language-guide.md
Move:
Preferred phrases
User
use a worker to implement the changes
Assistant
Implemented the write-like-me refactor.
Changes
skills/write-like-me/SKILL.md
Reduced from approximately 303 to 62 lines.
Retains the core voice, durable writing rules, output behavior, and quality gate.
Directs the agent to load relevant references progressively.
Adds explicit guidance for updating the skill when preferences recur.
Added references/message-patterns.md
Request
Scheduling
Apology/delay
Disagreement/pushback
Decisions
Follow-ups
Technical explanations
Executive/stakeholder messages
Recruiter/opportunity replies
Support resolutions
Added references/editing-and-review.md
Existing-draft rewrite process
Fact and political-judgment preservation
Detailed final review checklist
Added references/language-guide.md
Greetings and sign-offs
Preferred language
Avoided phrases and patterns
Validation
git diff --check passed.
All relative Markdown links resolve.
Confirmed all ten situational patterns remain present.
Confirmed key preferences remain present, including no em dashes/emoji, limited acknowledgments, constructive disagreement, political judgment, and draft-only output.
Now I want to capture the key principles that make for good skills in a README inside the skills folder. Use a worker to write it up and a reviewer to verify the content
User
Task: You are a delegated subagent running from a fork of the parent session. Treat the inherited conversation as reference-only context, not a live thread to continue. Do not continue or answer prior messages as if they are waiting for a reply. Your sole job is to execute the task below and return a focused result for that task using your tools.
Task:
Create skills/README.md in /Users/sofianebebert/workspace/sof-pi. It should capture the key principles for writing good pi skills, based on the article takeaways and the actual refactors in this repository. Write practical guidance for this package's maintainers, including: start from observed agent failures; encode goals, constraints, and non-obvious context rather than exhaustive procedures; keep the always-loaded SKILL.md short and durable; use progressive disclosure with references; make skills living documentation with an explicit update loop; create skills selectively; preserve safety/approval/verification gates where relevant; distinguish principles from volatile command-level detail; and explain a useful review checklist. Mention examples from this repo (weekly-planning, tldraw-offline, database-query, exe-dev/fly-io/stripe-projects, write-like-me) without inventing facts. Keep it concise, clear, and actionable. Do not modify other files and do not commit. Validate Markdown basics and report the file and line count.
Acceptance Contract
Acceptance level: checked
Completion is not accepted from prose alone. End with a structured acceptance report.
Criteria:
criterion-1: Implement the requested change without widening scope
Finish with a fenced JSON block tagged acceptance-report in this shape:
Use empty arrays when no items apply; array fields contain strings unless object entries are shown.
Empty-string entries ([""]) are ignored; use [] when nothing applies.
criteriaSatisfied[].status must be exactly one of: satisfied, not-satisfied, not-applicable.
commandsRun[].result must be exactly one of: passed, failed, not-run.
manualNotes and notes are optional strings; an empty string means no note and does not satisfy manual-notes evidence.
acceptance-report
Assistant
Created skills/README.md with concise, actionable guidance for maintainers.
Changed files:
skills/README.md
The README covers:
Starting from observed agent failures
Goals, constraints, and non-obvious context
Short, durable always-loaded SKILL.md files
Progressive disclosure through references
Living documentation and update loops
Selective skill creation
Safety, approval, and verification gates
Separating principles from volatile command details
A maintainer review checklist
Repository examples: weekly-planning, write-like-me, tldraw-offline, database-query, exe-dev, fly-io, and stripe-projects
Validation:
Markdown content checks passed.
Relative-link checks passed.
git diff --check passed.
File length: 120 lines.
No other files modified.
No files staged or committed.
acceptance-report
{
"criteriaSatisfied": [
{
"id": "criterion-1",
"status": "satisfied",
"evidence": "Created only skills/README.md with the requested principles, repository examples, and actionable maintainer checklist."
}
],
"changedFiles": [
"skills/README.md"
],
"testsAddedOrUpdated": [],
"commandsRun": [
{
"command": "git diff --check",
"result": "passed",
"summary": "No whitespace errors."
},
{
"command": "wc -l skills/README.md",
"result": "passed",
"summary": "README contains 120 lines."
},
{
"command": "Python Markdown content and relative-link checks",
"result": "passed",
"summary": "Required sections, repository examples, and relative links were verified."
},
{
"command": "git status --porcelain=v1",
"result": "passed",
"summary": "Only the requested untracked file is present; no staged files."
}
],
"validationOutput": [
"Markdown content and relative-link checks passed.",
"skills/README.md is 120 lines.",
"No other files were modified."
],
"residualRisks": [],
"noStagedFiles": true,
"diffSummary": "Added a maintainer README documenting principles for concise, durable, safe, progressively disclosed, evidence-based pi skills.",
"reviewFindings": [
"No blockers found."
],
"manualNotes": "The requested reviewer verification should be performed by the parent reviewer workflow."
}
tldraw-offline is the strongest overall operational skill. It documents concrete failures, establishes clear safety constraints, uses excellent progressive disclosure, and emphasizes verification and non-destructive behavior.
weekly-planning has the strongest failure history and iteration model. It explicitly captures lessons from previous planning cycles and preserves feedback through snapshots, retrospectives, carryover, and approval gates.
database-query is particularly strong on goals, safety, and failure-aware guidance.
mise does a good job distinguishing similar concepts—global versus project configuration, installation versus activation—and encourages inspection before mutation.
Main systemic weakness: size
The biggest issue across the extension is that several skills are closer to complete operational manuals than compact knowledge capsules.
Highest-priority candidates for reduction:
weekly-planning — 417 lines
exe-dev — 370 lines
fly-io — 360 lines
write-like-me — 303 lines
google-workspace — 298 lines
stripe-projects — 262 lines
browser — 238 lines
These skills often contain useful material, but the core guidance should be separated from command catalogs, detailed recipes, and rarely used edge cases.
Weakest rubric: living documentation
Most skills provide static guidance but do not explain how to improve themselves based on future usage. Only weekly-planning and, to a lesser extent, tldraw-offline have explicit feedback or verification loops.
Potential additions for other skills:
A short “When to update this skill” section
Common failure symptoms that should trigger a documentation update
A verification step after risky operations
A lightweight record of newly discovered CLI/API behavior
Skills needing the most attention
exe-dev — useful but very long and procedural; should lead with the lobby/VM model and move lifecycle command details elsewhere.
fly-io — strong constraints and failure knowledge, but too much command-level detail is loaded upfront.
stripe-projects — strong safety knowledge, but the catalog and classic Stripe CLI material dilute the core skill.
weekly-planning — excellent institutional memory, but the monolithic prompt should be split into a compact core plus phase-specific references.
write-like-me — strong goals and voice constraints, but 303 lines risks encoding preferences too rigidly and should distinguish durable voice principles from situational examples.
Overall assessment
The extension is strongest on:
Explicit goals and safety constraints
Capturing operational gotchas
Avoiding unnecessary mutation in most technical skills
It is weakest on:
Keeping skills compact
Separating core guidance from reference material
Recording how future failures should feed back into skill revisions
No files were changed as part of this review.
calendar-and-daily-work.md
Time-icon heuristic
Importance/urgency rules
Area inference
Bank holiday handling
The skill would instruct the agent to read the relevant reference only after identifying whether this is a Monday or Friday workflow.
3. Preserve the institutional memory
I would keep the strongest failure-derived rules, especially:
Calendar colour is not a reliable scope filter
Always confirm screenshot parsing before planning
No calendar access means a screenshot is required
Don’t collapse an objective into one “anchor task”
Don’t confuse Projects, Tasks, and Daily Work
Account for bank holidays and actual focus capacity
Don’t duplicate carryover rows
Monday snapshots enable Friday diffs
Include all in-progress Projects in the retro, not only selected objectives
These are exactly the sort of durable, non-obvious context the article recommends preserving.
4. Make the iteration loop explicit
The current skill already has a strong living-documentation mechanism. I’d make that more visible with a short section such as:
When this skill needs updating: if calendar parsing, capacity calculation, Notion schema, carryover behavior, or objective/task linking fails during a planning or retro session, record the failure in the relevant reference file and increment the metadata version.
That turns the existing snapshots and retrospectives into an explicit feedback loop.
What I would remove or consolidate
Repeated explanations of the same phase gates
Long command-level Notion instructions that are already covered by notion-cli
Duplicate descriptions of the database model
Repeated wording around approval and removal
Large inline output templates where a compact reference template would suffice
Exact examples that don’t encode a reusable rule
I would not remove:
The Wheel of Life model
The calendar confirmation gate
The capacity formula
The objective-to-Task requirement
The carryover policy
The Monday snapshot / Friday diff mechanism
The time-icon and Area heuristics
Expected result
The result would be:
A smaller always-loaded skill
Same planning behavior and safeguards
Better progressive disclosure
Easier updates when Notion schemas or planning preferences change
Clearer separation between durable principles and workflow-specific mechanics
The main tradeoff is that the agent would need to read one additional reference file during a planning session. That seems worthwhile here because the current cost is loading all Monday, Friday, schema, calendar, and retro details every time.
Phrases to avoid
Greeting and sign-off rules
Corporate filler and generic AI language
Preserve the important personal details
I would not flatten this into generic “professional writing” advice. These are valuable personal preferences and should remain prominent:
Hi [Name], as the default
Hey [Name], for informal contacts
No more than one acknowledgment sentence
Best, Best regards, or Thanks depending on context
No em dashes or emoji
Avoid excessive polish, enthusiasm, apologies, or hedging
Be clear when disagreeing
Preserve political judgment rather than making everything blunt
Return the finished draft without a style explanation
Make the iteration loop explicit
The current skill captures observed failure patterns such as:
AI-sounding filler
Over-polished language
Weak disagreement
Excessive apologies
Generic closings
I’d add a short section like:
When to update this skill: if Sofiane repeatedly edits out a phrase, changes a formality rule, prefers a different sign-off, or rejects a recurring pattern, update the relevant reference with the durable preference. Do not encode a one-off rewrite as a general rule.
That would make it clearer how the skill should evolve without turning every individual edit into a new instruction.
What I would not do
I would not remove the examples entirely. They are useful for voice imitation. I’d move them behind progressive disclosure so every writing task does not load all nine situational patterns and every phrase rule upfront.
The result would be a smaller core skill with the same voice, fewer rigid instructions, and detailed examples available only when the message type requires them.