xiaohongshu
xiaohongshu
Generates step instruction files and syncs slash commands from the job.yml specification. Use after job spec review passes.
Full skill instructions
Step 3/4 in deepwork_jobs workflow
Creates and manages multi-step AI workflows. Use when defining, implementing, or improving DeepWork jobs.
Before proceeding, confirm these steps are complete:
/deepwork_jobs.review_job_specGoal: Generates step instruction files and syncs slash commands from the job.yml specification. Use after job spec review passes.
Generate the DeepWork job directory structure and instruction files for each step based on the validated job.yml specification from the review_job_spec step.
Read the job.yml specification file and create all the necessary files to make the job functional, including directory structure and step instruction files. Then sync the commands to make them available.
Run the make_new_job.sh script to create the standard directory structure:
.deepwork/jobs/deepwork_jobs/make_new_job.sh [job_name]
This creates:
.deepwork/jobs/[job_name]/ - Main job directory.deepwork/jobs/[job_name]/steps/ - Step instruction files.deepwork/jobs/[job_name]/hooks/ - Custom validation scripts (with .gitkeep).deepwork/jobs/[job_name]/templates/ - Example file formats (with .gitkeep).deepwork/jobs/[job_name]/AGENTS.md - Job management guidanceNote: If the directory already exists (e.g., job.yml was created by define step), you can skip this step or manually create the additional directories:
mkdir -p .deepwork/jobs/[job_name]/hooks .deepwork/jobs/[job_name]/templates
touch .deepwork/jobs/[job_name]/hooks/.gitkeep .deepwork/jobs/[job_name]/templates/.gitkeep
Locate the job.yml file
.deepwork/jobs/[job_name]/job.yml from the review_job_spec stepValidate the specification
Extract key information
For each step in the job.yml, create a comprehensive instruction file at .deepwork/jobs/[job_name]/steps/[step_id].md.
Template reference: See .deepwork/jobs/deepwork_jobs/templates/step_instruction.md.template for the standard structure.
Complete example: See .deepwork/jobs/deepwork_jobs/templates/step_instruction.md.example for a fully worked example.
Available templates in .deepwork/jobs/deepwork_jobs/templates/:
job.yml.template - Job specification structurestep_instruction.md.template - Step instruction file structureagents.md.template - AGENTS.md file structurejob.yml.example - Complete job specification examplestep_instruction.md.example - Complete step instruction exampleGuidelines for generating instructions:
stop_hooks defined, ensure the quality criteria in the instruction file match the validation criteria in the hooksIf a step in the job.yml has stop_hooks defined, the generated instruction file should:
<promise>✓ Quality Criteria Met</promise> should be included when criteria are metExample: If the job.yml has:
- id: research_competitors
name: "Research Competitors"
stop_hooks:
- prompt: |
Verify the research meets criteria:
1. Each competitor has at least 3 data points
2. Sources are cited
3. Information is current (within last year)
The instruction file should include:
## Quality Criteria
- Each competitor has at least 3 distinct data points
- All information is sourced with citations
- Data is current (from within the last year)
- When all criteria are met, include `<promise>✓ Quality Criteria Met</promise>` in your response
This alignment ensures the AI agent knows exactly what will be validated and can self-check before completing.
Step instructions can include additional .md files in the steps/ directory for detailed examples, templates, or reference material. Reference them using the full path from the project root.
See .deepwork/jobs/deepwork_jobs/steps/supplemental_file_references.md for detailed documentation and examples.
Verify that job.yml is in the correct location at .deepwork/jobs/[job_name]/job.yml. The define and review_job_spec steps should have created and validated it. If for some reason it's not there, you may need to create or move it.
Run deepwork sync to generate the skills for this job:
deepwork sync
This will:
.claude/skills/ (or appropriate platform directory)After running deepwork sync, look at the "To use the new skills" section in the output. Relay these exact reload instructions to the user so they know how to pick up the new skills. Don't just reference the sync output - tell them directly what they need to do (e.g., "Type 'exit' then run 'claude --resume'" for Claude Code, or "Run '/memory refresh'" for Gemini CLI).
After implementing the job, consider whether there are rules that would help enforce quality or consistency when working with this job's domain.
What are rules?
Rules are automated guardrails stored as markdown files in .deepwork/rules/ that trigger when certain files change during an AI session. They help ensure:
When to suggest rules:
Think about the job you just implemented and ask:
Examples of rules that might make sense:
| Job Type | Potential Rule |
|---|---|
| API Design | "Update API docs when endpoint definitions change" |
| Database Schema | "Review migrations when schema files change" |
| Competitive Research | "Update strategy docs when competitor analysis changes" |
| Feature Development | "Update changelog when feature files change" |
| Configuration Management | "Update install guide when config files change" |
How to offer rule creation:
If you identify one or more rules that would benefit the user, explain:
Then ask the user:
"Would you like me to create this rule for you? I can run
/deepwork_rules.defineto set it up."
If the user agrees, invoke the /deepwork_rules.define command to guide them through creating the rule.
Example dialogue:
Based on the competitive_research job you just created, I noticed that when
competitor analysis files change, it would be helpful to remind you to update
your strategy documentation.
I'd suggest a rule like:
- **Name**: "Update strategy when competitor analysis changes"
- **Trigger**: `**/positioning_report.md`
- **Action**: Prompt to review and update `docs/strategy.md`
Would you like me to create this rule? I can run `/deepwork_rules.define` to set it up.
Note: Not every job needs rules. Only suggest them when they would genuinely help maintain consistency or quality. Don't force rules where they don't make sense.
For a complete worked example showing a job.yml and corresponding step instruction file, see:
.deepwork/jobs/deepwork_jobs/templates/job.yml.example.deepwork/jobs/deepwork_jobs/templates/step_instruction.md.exampleBefore running deepwork sync, verify:
job.yml is in placeBefore marking this step complete, ensure:
deepwork sync executed successfullydeepwork sync/deepwork_rules.defineCore commands for managing DeepWork jobs. These commands help you define new multi-step workflows and learn from running them.
The define command guides you through an interactive process to create a new job by
asking structured questions about your workflow, understanding each step's inputs and outputs,
and generating all necessary files.
The learn command reflects on conversations where DeepWork jobs were run, identifies
confusion or inefficiencies, and improves job instructions. It also captures bespoke
learnings specific to the current run into AGENTS.md files in the working folder.
Files from Previous Steps - Read these first:
job.yml (from review_job_spec)Use branch format: deepwork/deepwork_jobs-[instance]-YYYYMMDD
git checkout -b deepwork/deepwork_jobs-[instance]-$(date +%Y%m%d)Required outputs:
steps/ (directory)Stop hooks will automatically validate your work. The loop continues until all criteria pass.
Criteria (all must be satisfied):
.deepwork/jobs/[job_name]/ created correctly?deepwork sync been run successfully?.claude/commands/?/deepwork_rules.define? Not every job needs rules - only suggest when genuinely helpful.To complete: Include <promise>✓ Quality Criteria Met</promise> in your final response only after verifying ALL criteria are satisfied.
/deepwork_jobs.learnReference files: .deepwork/jobs/deepwork_jobs/job.yml, .deepwork/jobs/deepwork_jobs/steps/implement.md
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience