मुख्य सामग्री पर जाएँ
Skillpedia
प्रॉम्प्ट और LLM311k · #99

writing-skills

यह क्या करती है

यह बताती है कि AI एजेंट के लिए स्किल कैसे बनाएं या बदलें, और उस पर भरोसा करने से पहले उसके काम करने की पुष्टि कैसे करें। यह उन लोगों के लिए है जो एजेंट स्किल बनाते या सुधारते हैं।

कब इस्तेमाल करें

  • ✓जब आप अपने एजेंट के लिए शून्य से नई स्किल बनाना चाहते हों।
  • ✓जब आपको मौजूदा स्किल बदलनी हो और पक्का करना हो कि वह अब भी काम करती है।
  • ✓जब आप स्किल तैनात करने से पहले जांचना चाहते हों कि वह काम करती है।

Skill का लिंक

https://github.com/obra/superpowers/blob/main/skills/writing-skills/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/obra/superpowers/blob/main/skills/writing-skills/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं अपने AI सहायक के लिए एक नई स्किल लिखना चाहता हूं, और पक्का करना चाहता हूं कि वह सच में काम करती है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह हर स्किल को एक टेस्ट की तरह मानती है। एजेंट पहले स्किल के बिना काम को असफल होते देखता है, फिर स्किल लिखता है, फिर पुष्टि करता है कि एजेंट उसका पालन करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Writing Skills

Overview

Writing skills IS Test-Driven Development applied to process documentation.

Personal skills live in your runtime's skills directory (~/.claude/skills/ on Claude Code) — see codex-tools.md or gemini-tools.md for the path on those runtimes. Codex, Copilot CLI, and Gemini CLI all also recognize ~/.agents/skills/ as a cross-runtime alias.

You write test cases (pressure scenarios with subagents), watch them fail (baseline behavior), write the skill (documentation), watch tests pass (agents comply), and refactor (close loopholes).

Core principle: If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.

REQUIRED BACKGROUND: You MUST understand superpowers:test-driven-development before using this skill. That skill defines the fundamental RED-GREEN-REFACTOR cycle. This skill adapts TDD to documentation.

Official guidance: For Anthropic's official skill authoring best practices, see references/anthropic-best-practices.md. This document provides additional patterns and guidelines that complement the TDD-focused approach in this skill.

What is a Skill?

A skill is a reference guide for proven techniques, patterns, or tools. Skills help future agents find and apply effective approaches.

Skills are: Reusable techniques, patterns, tools, reference guides

Skills are NOT: Narratives about how you solved a problem once

TDD Mapping for Skills

TDD Concept Skill Creation
Test case Pressure scenario with subagent
Production code Skill document (SKILL.md)
Test fails (RED) Agent violates rule without skill (baseline)
Test passes (GREEN) Agent complies with skill present
Refactor Close loopholes while maintaining compliance
Write test first Run baseline scenario BEFORE writing skill
Watch it fail Document exact rationalizations agent uses
Minimal code Write skill addressing those specific violations
Watch it pass Verify agent now complies
Refactor cycle Find new rationalizations → plug → re-verify

The entire skill creation process follows RED-GREEN-REFACTOR.

When to Create a Skill

Create when:

  • Technique wasn't intuitively obvious to you
  • You'd reference this again across projects
  • Pattern applies broadly (not project-specific)
  • Others would benefit

Don't create for:

  • One-off solutions
  • Standard practices well-documented elsewhere
  • Project-specific conventions (put in your instructions file)
  • Mechanical constraints (if it's enforceable with regex/validation, automate it—save documentation for judgment calls)

Skill Types

Technique

Concrete method with steps to follow (condition-based-waiting, root-cause-tracing)

Pattern

Way of thinking about problems (flatten-with-flags, test-invariants)

Reference

API docs, syntax guides, tool documentation (office docs)

Directory Structure

skills/
  skill-name/
    SKILL.md              # Main reference (required)
    supporting-file.*     # Only if needed

Flat namespace - all skills in one searchable namespace

Separate files for:

  1. Heavy reference (100+ lines) - API docs, comprehensive syntax
  2. Reusable tools - Scripts, utilities, templates

Keep inline:

  • Principles and concepts
  • Code patterns (< 50 lines)
  • Everything else

Writing SKILL.md

A skill's description says only when to use it: triggering conditions and symptoms, starting with "Use when...". It never summarizes the skill's workflow, because an agent that reads a workflow summary follows it instead of reading the skill.

When you write or change a skill's frontmatter, name or description, or need to cut its size, read references/discovery.md: the SKILL.md template, description and keyword guidance, naming, token budgets, and cross-referencing other skills.

Flowcharts

When you add or change a flowchart in a skill, read references/flowcharts.md first: when a flowchart earns its place, the graphviz conventions, and how to render one.

Code Examples

One excellent example beats many mediocre ones

Choose most relevant language:

  • Testing techniques → TypeScript/JavaScript
  • System debugging → Shell/Python
  • Data processing → Python
अक्सर पूछे जाने वाले सवाल

क्या इस स्किल के लिए प्रोग्रामिंग जानना ज़रूरी है?

ज़रूरी नहीं। स्किल सादे टेक्स्ट निर्देश हैं, इसलिए यह उन लोगों के लिए लिखी गई है जो साफ़ चरण लिख सकते हैं।

क्या यह स्किल बताती है कि स्किल का टेस्ट कैसे करें?

हां। यह कहती है कि स्किल के साथ और बिना, दोनों तरह से एजेंट चलाकर नतीजों की तुलना करें, फिर खत्म करें।

निजी स्किल कहां सेव होनी चाहिए?

स्किल कहती है कि निजी स्किल रनटाइम के skills फ़ोल्डर में जाएं, जैसे Claude Code सेटिंग्स के तहत skills फ़ोल्डर।

जानकारी

लेखक का मूल विवरण

Use when creating new skills, editing existing skills, or verifying skills work before deployment

repo: obra/superpowers

लोकप्रियता

GitHub स्टार
311k
रैंकिंग में स्थान
#99
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

brainstorming

311k

यह आपके एजेंट को केंद्रित सवाल पूछकर और साफ़ विकल्प रखकर, कुछ भी नया बनाने से पहले यह समझने में मदद करती है कि आप असल में क्या चाहते हैं।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

executing-plans

311k

यह आपके एजेंट को मौजूदा सेशन में लिखी इम्प्लीमेंटेशन योजना को चरण-दर-चरण पूरा करने में मदद करती है, हर चरण के बाद अगला शुरू करने से पहले उसकी जांच करके।

कोडिंगसामान्य कोडिंग

finishing-a-development-branch

311k

यह आपके एजेंट को तैयार कोड को टेस्ट चलाकर समेटने में मदद करती है, फिर merge करने, pull request खोलने या branch रखने के साफ़ विकल्प देती है।

कोडिंगसामान्य कोडिंग

receiving-code-review

311k

यह आपके एजेंट को कोड समीक्षा की टिप्पणियों को ध्यान से परखने में मदद करती है, कुछ भी बदलने से पहले हर बिंदु को कोड से मिलाकर।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills