AI Agent Skills · token efficiency · 30 min
Designing AI Agent Skills with Functional Thinking
Single Responsibility · Composable · Side-Effect Free
// opening · the problem
Too many skills, docs are too long to read. The one you find needs tweaking before it works.
Skills feel complex and mysterious. But they're really just structured prompts.
Downloaded skills always miss something. In many cases, writing your own is faster.
Each bad skill attempt = wasted tokens. Low quality → repeated tasks → wasted tokens.
// part 01 · demystify
Write once, use everywhere. Maintain in one place — every consumer benefits from updates.
Encapsulate domain knowledge → others load it → works out of the box. No more everyone writing their own version.
A 20-line skill is still a skill. Solve your smallest pain point first, iterate from there.
// part 02 · functional thinking
A function does one thing, and does it well.
→ One skill covers one domain, and does it well.
A "do-everything" skill = hard to maintain, reuse, compose
Complex behavior emerges from composing simple functions.
→ Two simple skills composed = a more powerful skill
AI automatically infers which skills to load for a given task
"Write your skills like pure functions
— single responsibility, composable, side-effect free"
// part 02 · case study
One "mega" code review skill:
Switch to GitHub? Rewrite. Change review strategy? Rewrite.
Split into three independent skills:
Switch to GitHub? Swap Bitbucket CLI for GitHub CLI. Switch to Python? Swap review strategy skill. Other skills: zero changes.
💡 AI inference is the key — it sees "review this Java PR" and automatically loads using-bitbucket-cli + java-best-practices + requesting-code-review
// part 03 · daily skills · token & coding
caveman — Cuts ~75% of output tokens while keeping full technical accuracy. My default for every conversation.
simplify — Refactor recently written code for clarity and consistency without changing functionality.
clonedeps — inspect dependency source code locally.
// part 03 · daily skills · context & harness
Give your agent the ability to pull context from internal systems — the more declarative, the higher the ceiling.
using-bitbucket-cli
using-gh-cli
One CLI per platform. Composable.
using-jira-cli
using-confluence-cli
using-mst-cli
Pull tickets, docs & messages as context.
creating-agents-md
Generate AGENTS.md files that follow best practices. Make your project AI-ready in one skill.
// part 03 · daily skills · knowledge
understand-anything
Generate knowledge graphs from codebases & docs. Make sense of complex domains.
using-memvid-cli
Per-project compressed memory. Project-specific context on demand.
using-light-rag
Cross-project, cross-domain knowledge retrieval. Recall how similar problems were solved elsewhere.
Three layers: deep understanding → project memory → cross-domain retrieval
// part 03 · daily skills · authoring
Meta-skills: skills that create and validate other skills. The Ouroboros of skill engineering.
// part 03 · composable workflows
// closing
"Use your skills like
pure functions"
Single Responsibility
Composable
Side-Effect Free
Back to the original question: skills aren't mysterious. Start simple, decompose with functional thinking, compose for power.
// bonus tips
Don't wait for the AI Agent to manage it for you.
You know better which information is critical and which can be discarded. Proactively compress, trim, curate.
Not a brain replacement.
AI should help you think better — gather info, compare options, execute. But thinking itself? Always your job.
Don't nuke every task with the most expensive model.
~80% of tasks don't need Opus + thinking. Defaulting to max = massive budget waste.
Q & A