Agent skill

writing-skills

Use when creating new skills, editing existing skills, or verifying skills before deployment in Codex CLI.

Stars 127
Forks 12

Install this agent skill to your Project

npx add-skill https://github.com/6BNBN/FlowPilot/tree/main/兼容codex@cursor一键安装技能/codex一键安装技能/纯手动安装/skills/writing-skills

SKILL.md

Writing Skills

Overview

Writing skills is TDD for process documentation: establish a failing baseline, write the minimum skill content that fixes the behavior, then refine it until the workflow is reliable.

Personal skills live in ~/.codex/skills.

Core Principle

If you did not observe a realistic failure mode before writing the skill, you do not yet know what the skill needs to prevent.

What a Skill Is

A skill is a reusable guide for patterns, tools, or workflows that future Codex sessions should be able to discover and apply.

Skills are:

  • reusable workflows
  • decision guides
  • tool usage references
  • proven implementation patterns

Skills are not:

  • project-specific notes better suited for AGENTS.md
  • narratives about one past debugging session
  • mechanical rules better enforced by automation

Directory Structure

ext skills/ skill-name/ SKILL.md supporting-file.md

Use a flat namespace and keep supporting files only when the main file would otherwise become too heavy.

Required SKILL.md Frontmatter

  • Only ame and description

ame uses letters, numbers, and hyphens only

  • description starts with Use when...
  • description explains when to load the skill, not the whole workflow

Discovery Optimization

Future Codex sessions need to find the skill quickly. Optimize for that by:

  1. Naming the trigger conditions clearly
  2. Putting the highest-signal symptoms in the description
  3. Using the same vocabulary users will naturally type
  4. Keeping the first screen concise and actionable

Authoring Workflow

RED

  • Reproduce the failure mode without the skill
  • Capture the rationalizations or mistakes that appear

GREEN

  • Write the minimal skill content that closes those gaps
  • Include only the steps, examples, and warnings needed to fix the observed failures

REFACTOR

  • Test again under pressure
  • Add explicit counters for any new loopholes
  • Remove anything that does not help discovery or compliance

Quality Checklist

Mirror this checklist in update_plan when actively authoring a skill:

  • Validate the trigger description
  • Validate the frontmatter
  • Keep the overview concise
  • Include examples only when they improve execution
  • Test discovery and compliance with realistic prompts
  • Re-check for loopholes before deployment

Common Mistakes

Mistake Fix
Description explains what the skill does Rewrite it to explain when to load it
Frontmatter includes extra keys Keep only
ame and description
Long narrative examples Replace with compact reusable examples
Supporting docs loaded by default Move heavy references into separate files
No baseline failure observed Reproduce a realistic failing scenario first

Testing

Use subagents or realistic prompts to test:

  • discovery
  • compliance under pressure
  • resistance to shortcut rationalization

The goal is not just "looks good," but "changes behavior predictably."

Expand your agent's capabilities with these related and highly-rated skills.

6BNBN/FlowPilot

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

127 12
Explore
6BNBN/FlowPilot

test-driven-development

Use when implementing any feature or bugfix, before writing implementation code

127 12
Explore
6BNBN/FlowPilot

using-superpowers

Use when starting any conversation to discover relevant skills and open the right SKILL.md files before responding, including before clarifying questions.

127 12
Explore
6BNBN/FlowPilot

ui-ux-pro-max

UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.

127 12
Explore
6BNBN/FlowPilot

requesting-code-review

Use when completing tasks, implementing major features, or before merging to verify work meets requirements.

127 12
Explore
6BNBN/FlowPilot

superpowers

Use when starting any conversation to discover relevant skills and open the right SKILL.md files before responding, including before clarifying questions.

127 12
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results