Aitor_Skills
AGENTS.md4 starsChanged 10 months agoMITView on GitHub
This repo is a living library of agent skills (each skill lives in a <skill-name>/SKILL.md folder). This file tells agents how to work inside this repo so collaboration stays seamless and the skills improve over time. ## NON-NEGOTIABLE: LOG EVERY SKILL INVOCATION If skill usage is not logged, the feedback loop breaks. Logging is mandatory for every skill invocation in this repo. Do this every time: ensure session-derived logs are generated via scripts/backfill-skill-usage-from-sessions.ps1. Use scripts/log-skill-usage.ps1 only as a fallback if…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,843 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository71 other files it gives its agents.
- algorithmic-artSkill
- architecture-diagram-creatorSkill
- artifacts-builderSkill
- brainstormingSkill
- brand-guidelinesSkill
- canvas-designSkill
- changelog-generatorSkill
- code-auditorSkill
- codebase-documenterSkill
- code-executionSkill
- code-refactorSkill
- code-transferSkill
- content-research-writerSkill
- conversation-analyzerSkill
- csv-data-summarizerSkill
- dashboard-creatorSkill
- dev-graph-exportsSkill
- dispatching-parallel-agentsSkill
- doc-coauthoringSkill
- docker-helperSkill
- docxSkill
- ensemble-solvingSkill
- executing-plansSkill
- feature-planningSkill
- file-operationsSkill
- file-organizerSkill
- finishing-a-development-branchSkill
- flowchart-creatorSkill
- frontend-designSkill
- git-pushingSkill
- image-enhancerSkill
- imagenSkill
- internal-commsSkill
- markitdownSkill
- mcp-builderSkill
- pdfSkill
- pixel-detective-exportsSkill
- pptxSkill
- project-bootstrapperSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- review-implementingSkill
- rituals-guideSkill
- systematic-debuggingSkill
- scientific-visualizationSkill
- skill-creatorSkill
- skills-summarizerSkill
- skills-updaterSkill
- slack-gif-creatorSkill
- sprint-perspectivesSkill
- sprint-summary-pdfSkill
- start-dev-graphSkill
- start-pixel-detectiveSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tailored-resume-generatorSkill
- technical-doc-creatorSkill
- template-skillSkill
- test-driven-developmentSkill
- test-fixingSkill
- The first 60 shown.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
27 rules. About 0 are common, 21 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
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
- Distinctive: line 17
Treat skill usage as an opportunity to improve the library over time.
- Distinctive: line 18
Keep changes auditable via git history (branch + merge to main).
- Distinctive: line 29
Follow skill trigger rules: if a skill is named, or the request clearly matches a skill, use it.
- Distinctive: line 31
Ask one question at a time: when a skill instructs that (common for design/brainstorming workflows).
- Distinctive: line 32
Be explicit about permission points: before proposing or performing git changes.
- Distinctive: line 49
Write one JSONL line per skill invocation to:
- Distinctive: line 53
Create the directory path if it does not exist.
- Distinctive: line 61
If manual logging is missed, use the session log backfill script:
- Distinctive: line 70
If a Codex terminal stays open, the rollout file may remain empty (0 bytes) until the session ends.
- Distinctive: line 77
If legacy logs exist, normalize them to the session-derived schema with:
- Distinctive: line 83
Before writing any log entry, ensure:
- Distinctive: line 109
Do not log prompts, outputs, or any user-provided text.
- Distinctive: line 110
If logging fails (e.g., file system error), say so in the response and continue.
- Distinctive: line 146
When using the summary, the updater must return:
- Very specific: line 173
Do not interrupt the main task to edit skills mid-flight unless the user explicitly asks to stop and refactor the skill now.
- Very specific: line 174
Use the skills-updater skill to execute approved polish changes.
- Very specific: line 175
Use the skills-summarizer skill to digest usage logs and propose upkeep.
- Very specific: line 185
create a branch named skill-polish/<yyyy-mm-dd> (optionally with a short suffix),
- Distinctive: line 190
If permission is not granted, keep the checklist so the user can approve later.
- Distinctive: line 204
Do not push skill changes directly to main unless the user explicitly requests it for that specific change.
- Very specific: line 208
If the change is only repo meta / documentation (for example: AGENTS.md, README.md, or docs/) and the user asks to "commit and push", …
- Distinctive: line 210
commit directly on main
- Distinctive: line 217
When the user grants permission to apply "Skill polish candidates":
- Very specific: line 228
If using the git-pushing skill, prefer the repo-local script:
- Distinctive: line 232
If bash is not available in the environment, ask the user whether to proceed with manual git commands.
- Distinctive: line 237
Prefer small, local changes to the relevant skill over repo-wide rewrites.
- Distinctive: line 238
Keep skill instructions action-oriented, environment-aware, and easy to follow.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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.
Files
Agents Guide (Skills Repo)
This repo is a living library of agent skills (each skill lives in a <skill-name>/SKILL.md folder). This file tells agents how to work inside this repo so collaboration stays seamless and the skills improve over time.
NON-NEGOTIABLE: LOG EVERY SKILL INVOCATION
If skill usage is not logged, the feedback loop breaks. Logging is mandatory for every skill invocation in this repo.
Do this every time: ensure session-derived logs are generated via
scripts/backfill-skill-usage-from-sessions.ps1. Usescripts/log-skill-usage.ps1only as a fallback if extraction is blocked.Never skip it. If logging fails, say so in the response and continue.
Goals
- Make agent-user collaboration feel seamless and low-friction.
- Treat skill usage as an opportunity to improve the library over time.
- Keep changes auditable via git history (branch + merge to
main).
Scope
Applies to all files under C:/Users/aitor/.codex/skills, including:
*/SKILL.md- supporting
assets/,scripts/, and docs inside the repo
How To Use Skills (Behavior Rules)
- Follow skill trigger rules: if a skill is named, or the request clearly matches a skill, use it.
- Prefer the skill's workflow over improvisation; only deviate when blocked, then record a polish candidate.
- Ask one question at a time when a skill instructs that (common for design/brainstorming workflows).
- Be explicit about permission points before proposing or performing git changes.
Skill Usage Tracking (JSONL)
This repo uses session-derived usage logging to keep a lightweight, diffable record of skill usage without storing prompts or user data.
STOP: Logging is part of the task, not optional
If you are about to respond and have not logged the skill, you are not done.
Mandatory micro-checklist (do not skip):
- Identify the skill invoked.
- Ensure extraction is scheduled via
scripts/backfill-skill-usage-from-sessions.ps1.- If extraction is blocked, run
scripts/log-skill-usage.ps1with metadata only.- If logging fails, say so in the response and proceed.
Where To Log
Write one JSONL line per skill invocation to:
logs/skills/YYYY-MM/skill-usage-YYYY-MM-DD.jsonl
Create the directory path if it does not exist.
Canonical extractor: scripts/backfill-skill-usage-from-sessions.ps1
Fallback (manual): scripts/log-skill-usage.ps1
Auto-Backfill (Session Logs)
If manual logging is missed, use the session log backfill script:
scripts/backfill-skill-usage-from-sessions.ps1
This script only extracts skill names from assistant messages that follow the
Using \<skill>`` pattern and writes metadata-only entries. It must not write
user text, prompts, file contents, or secrets.
Edge case: long-running sessions
If a Codex terminal stays open, the rollout file may remain empty (0 bytes) until
the session ends. In that case, backfill will not see new data. Close the session
and rerun the backfill with a wider window (e.g. --days 3) to capture the full
session history.
Schema Migration (Legacy Logs)
If legacy logs exist, normalize them to the session-derived schema with:
scripts/migrate-skill-logs-to-session-schema.ps1
Data Hygiene (Non-Negotiable)
Before writing any log entry, ensure:
- No prompts or user text (ever).
- No file contents (even small snippets).
- No secrets or credentials (API keys, tokens, passwords).
- Notes are generic (metadata-only; keep them short).
Required Fields (Session-Derived Schema)
timestamp: ISO 8601 UTC timestamp (example:2026-01-17T18:24:03Z).session_id: session identifier from Codex session logs.event_index: integer sequence within the session file.skill_name: skill name as invoked.skill_version: from SKILL.md front matter when present, otherwiseunknown.status:success,failure, orretries.source:codex_session_log.event_type: log event type (event_msgorresponse_item).notes: short, safe metadata only; no user text, file contents, secrets, or PII.project_repo_root: nearest git repo root if detected, otherwisenull.project_cwd: current working directory.cli_originator: CLI originator from session meta (if present).cli_version: CLI version from session meta (if present).
Operational Rules
- Log immediately before responding, or immediately after if the response must be first.
- Do not log prompts, outputs, or any user-provided text.
- If logging fails (e.g., file system error), say so in the response and continue.
Session Close Checklist
- Close long-running Codex sessions to flush rollout logs.
- Run
scripts/backfill-skill-usage-from-sessions.ps1 --days 3to capture late logs. - Re-run summarizer after backfill to update the upkeep report.
Example JSONL Entry
{"timestamp":"2026-01-17T18:24:03Z","session_id":"019bcc90-64b0-78d3-9b36-dec0d5e5f3ab","event_index":120,"skill_name":"doc-coauthoring","skill_version":"unknown","status":"success","source":"codex_session_log","event_type":"event_msg","notes":"auto: extracted from codex session logs","project_repo_root":"C:/Users/aitor/.codex/skills","project_cwd":"C:/Users/aitor/.codex/skills","cli_originator":"codex_cli_rs","cli_version":"0.87.0"}
Telemetry-to-Improvement Chain (Handoff Contract)
This repo assumes a strict information chain so summaries and updates stay auditable.
Flow
- Logs capture metadata-only usage.
- Summarizer produces an overview + review prompts.
- Updater consumes the summary to produce insights and proposals.
Required Summary Fields (JSON)
Summaries written to docs/skill-upkeep/YYYY-MM/summary-YYYY-MM-DD.json must include:
summary_date: ISO 8601 date.window_days: integer (e.g., 7).totals: counts forinvocations,success,failure,retries.by_skill: array withskill_name,count,success_rate,top_notes.by_repo: array withproject_repo_root,skill_counts,notes.review_prompts: 3-7 questions for human-in-loop review.candidate_actions: optional list of potential improvements (no edits implied).
Updater Output Contract
When using the summary, the updater must return:
- Insights report: short narrative of usage patterns, gaps, and overlap.
- Proposals (if any): each with
why,where it helps,risk,test.
Skill Polish Loop (Proactive Improvement)
Intent
Skills are not static. When a skill doesn't work well for this user, the agent treats that as input to improve the skill so the next run is more seamless.
What Counts As A "Skill Gap"
Capture a "polish candidate" when any of the following happens while a skill is in use:
- Failure: the skill instructions lead to an error, dead-end, missing prerequisite, wrong path, or incompatible tooling.
- User correction: the user says the agent misunderstood intent, or restates the request in a way that implies the skill should have guided it better.
- Repeated nudge: the user asks for the same extra behavior 2+ times in the same session (e.g. “also do X every time”).
- Improvisation: the agent has to go outside the skill to succeed (ad-hoc steps, missing checks, missing decision points).
- Friction: the skill technically works but causes avoidable back-and-forth (too many questions, unclear exits, poor defaults).
How To Track Polish Candidates (During The Session)
Maintain an in-memory list named Skill polish candidates. Each entry is a single bullet:
<skill-name>: 1 sentence "gap", 1 sentence "proposed fix" (include file path(s) when obvious).
Do not interrupt the main task to edit skills mid-flight unless the user explicitly asks to stop and refactor the skill now.
Use the skills-updater skill to execute approved polish changes.
Use the skills-summarizer skill to digest usage logs and propose upkeep.
How To Propose Skill Updates (Final Message)
At the end of the session, include a short checklist titled Skill polish candidates. Keep it terse:
[ ] <skill-name>- proposed change summary (files:...)
Then explicitly ask permission to:
- create a branch named
skill-polish/<yyyy-mm-dd>(optionally with a short suffix), - implement the edits,
- commit, and
- push the branch to origin.
If permission is not granted, keep the checklist so the user can approve later.
Permissioned Git Workflow (Branch -> Commit -> Push)
Rule: Ask First
Any time the agent wants to change this repo (including polishing skills), it must ask permission before doing git actions that affect the remote:
- creating/pushing branches
- pushing
main
Branch Requirement For Skills
Any change under a skill folder (for example: */SKILL.md, */scripts/**, */references/**, */assets/**) must go through a branch.
Do not push skill changes directly to main unless the user explicitly requests it for that specific change.
Fast Path For Repo-Doc Changes (No Branch)
If the change is only repo meta / documentation (for example: AGENTS.md, README.md, or docs/**) and the user asks to "commit and push", prefer the simplest flow:
- commit directly on
main - push
main
Still ask permission before the push.
Default Flow For Skill Polishing
When the user grants permission to apply "Skill polish candidates":
- Create a single branch for all polish changes made in the session:
skill-polish/<yyyy-mm-dd>(or a short topic suffix). - Make the edits (update
SKILL.md, scripts, READMEs, etc.). - Commit with a conventional message (example:
chore(skills): polish skill workflows). - Push the branch to origin.
- Provide PR-ready notes in the final message: a short "why" and a short "what changed" list (the user can paste into a PR).
- Merge into
mainonly after explicit permission (keep history via the merge commit / PR link).
Tooling Convention
If using the git-pushing skill, prefer the repo-local script:
bash git-pushing/scripts/smart_commit.sh "chore(skills): polish skill workflows"
If bash is not available in the environment, ask the user whether to proceed with manual git commands.
Quality Bar
- Updates should reduce user friction in the next run (fewer clarifications, fewer dead-ends).
- Prefer small, local changes to the relevant skill over repo-wide rewrites.
- Keep skill instructions action-oriented, environment-aware, and easy to follow.
"Seamless Collaboration" Definition
- The agent reliably infers when to use a skill, asks minimal clarifying questions, and avoids repeating mistakes across sessions by polishing skills when gaps are found.
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
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.

