work-on-issue

द्वारा huggingface

Start work on a GitHub issue. Extracts requirements, creates worktree, sets up TDD workflow.

npx skills add https://github.com/huggingface/openenv --skill work-on-issue

/work-on-issue

Start focused work on a GitHub issue using TDD workflow.

EXECUTE THESE STEPS NOW

When this skill is invoked, you MUST execute these steps immediately. Do NOT just describe what will happen - actually do it.

Step 1: Parse Issue Number

Extract the issue number from $ARGUMENTS:

  • Remove # prefix if present
  • The issue number is: $ARGUMENTS

Step 2: Spawn Issue Worker Agent

Use the Task tool to spawn the issue-worker agent:

Task tool:
  subagent_type: issue-worker
  prompt: "Read GitHub issue #<NUMBER> and extract:
    1. Goal - what the user wants to achieve
    2. Acceptance criteria - specific testable requirements
    3. Edge cases and constraints
    4. Suggested PR split if complex"

Wait for the agent to return requirements.

Step 3: Create Worktree

After receiving requirements, run this command:

.claude/scripts/worktree-create.sh issue-<NUMBER>-<short-description>

Where <short-description> is 2-3 words from the goal (e.g., add-mcp-tools).

Step 4: Activate TDD Enforcement

Activate TDD enforcement in the new worktree. This uses tdd-state.sh's direct-execution mode so it works in a single Bash call:

cd .worktrees/issue-<NUMBER>-<short-description> && bash .claude/hooks/tdd-state.sh activate <NUMBER>

This writes .tdd-session.json to the worktree root, which all hooks check. Without this step, hooks would not block direct edits.

Step 5: Create Todos

Use TodoWrite to create a todo for EACH acceptance criterion:

TodoWrite:
  todos:
    - content: "Test: <acceptance criterion 1>"
      status: pending
      activeForm: "Testing <criterion 1>"
    - content: "Test: <acceptance criterion 2>"
      status: pending
      activeForm: "Testing <criterion 2>"
    ...

Step 6: Begin TDD Cycle

Immediately invoke /write-tests for the first todo.

DO NOT stop and wait for user input. Start the TDD cycle now.


When to Use

  • Starting work on a GitHub issue
  • You want TDD enforcement (opt-in via this skill)
  • You want isolated work (no branch switching)

When NOT to Use

  • Quick exploration (just stay in main repo)
  • Already in a worktree for this issue
  • Issue doesn't exist in GitHub

Workflow Overview

/work-on-issue #42
    ↓
Step 1: Parse "42" from arguments
    ↓
Step 2: Spawn issue-worker → get requirements
    ↓
Step 3: Create worktree issue-42-<name>
    ↓
Step 4: Activate TDD enforcement (.tdd-session.json)
    ↓
Step 5: Create todos from acceptance criteria
    ↓
Step 6: Invoke /write-tests → begin TDD cycle

Important

This skill runs in the MAIN conversation context (not forked) because it needs to:

  1. Spawn the issue-worker agent and receive its results
  2. Run worktree-create.sh script
  3. Create todos that persist in the conversation
  4. Invoke /write-tests to continue the workflow

The issue-worker agent runs in a forked context and returns requirements.

huggingface की और Skills

cpu-kernels
huggingface
C++ CPU कर्नेल लिखने, अनुकूलित करने और बेंचमार्क करने के लिए मार्गदर्शन प्रदान करता है, जिसमें Hugging Face कर्नेल इकोसिस्टम के लिए SIMD इंट्रिन्सिक्स (AVX2/AVX512) शामिल हैं। इसमें…
official
generate-openenv-env
huggingface
एक ठोस उपयोग मामले से OpenEnv वातावरण उत्पन्न करें (उदाहरण के लिए, "लाइब्रेरी textarena के लिए एक env उत्पन्न करें")। जब किसी नए को डिज़ाइन या कार्यान्वित करने के लिए कहा जाए तो इसका उपयोग करें…
official
hf-mcp
huggingface
Hugging Face Hub का उपयोग MCP सर्वर टूल्स के माध्यम से करें। मॉडल, डेटासेट, Spaces, पेपर्स खोजें। रिपॉजिटरी विवरण प्राप्त करें, दस्तावेज़ीकरण लाएं, कंप्यूट जॉब चलाएं, और Gradio का उपयोग करें…
official
trl-training
huggingface
ट्रांसफॉर्मर भाषा मॉडल को TRL (ट्रांसफॉर्मर्स रीइन्फोर्समेंट लर्निंग) का उपयोग करके प्रशिक्षित और फाइन-ट्यून करें। SFT, DPO, GRPO, KTO, RLOO और रिवॉर्ड मॉडल प्रशिक्षण का समर्थन करता है…
official
deploy-hf
huggingface
OpenEnv वातावरण को Hugging Face Spaces पर तैनात करें। जब तैनात करने, Hugging Face पर पुश करने, या स्पेस अपडेट करने के लिए कहा जाए तो इसका उपयोग करें।
official
hf-space-recovery
huggingface
Diagnose and recover failing or stuck Hugging Face Space deployments for OpenEnv environments. Use when deploying envs from `envs/` to the Hub (`openenv`…
official
pre-submit-pr
huggingface
पुल रिक्वेस्ट सबमिट करने से पहले बदलावों को मान्य करें। लिंट, टेस्ट, संरेखण समीक्षा और आरएफसी विश्लेषण सहित व्यापक जांच चलाएं। इसका उपयोग बनाने से पहले करें...
official
example-skill
huggingface
एक्शन स्मोक टेस्ट के लिए उदाहरण फिक्स्चर स्किल
official