xiaohongshu
xiaohongshu
agency
Use Agency CLI to run parallel AI coding tasks in isolated Git worktrees. Invoke when user mentions "agency", "ag", parallel tasks, worktrees, or wants to run multiple coding agents simultaneously.
Full skill instructions
Agency is a command-line AI agent orchestrator that runs coding agents in isolated Git worktrees with tmux-managed sessions.
agency new <slug> # Create task, start session, attach immediately
ag new <slug> # Short alias
agency new <slug> -e # Open editor to write task description
agency new <slug> -f spec.pdf # Attach a file during creation
agency new <slug> -f a.png -f b.pdf # Attach multiple files
# Provide description inline (use heredoc for multi-line)
agency new <slug> <<'EOF'
Your task description here.
Can span multiple lines without escaping issues.
EOF
agency new --draft <slug> # Create task file only, no worktree or session
agency start <slug> # Start the draft (creates worktree and session)
Note: The "<slug>" should only contain alphanumerical characters and "-". You can keep it relatively short.
agency tasks # Show all tasks with status, commits, and changes
ag tasks # Short alias
Output columns: ID, SLUG, STATUS, UNCOMMITTED, COMMITS, BASE, AGENT
Status codes:
agency start)agency merge <slug> # Merge task branch into base, then cleanup
This command:
agency stop <slug> # Stop session, keep worktree and branch
agency rm --yes <slug> # Remove task file, worktree, and branch
agency reset <slug> # Reset worktree and branch, keep task file
Use rm when you want to completely delete a task without merging changes. Use reset if you want to start over but keep the task description.
Files can be attached to a task to provide additional context.
agency new <slug> -f path/to/file.pdf # Attach file during creation
agency files add <slug> path/to/file # Add file to existing task
agency files add <slug> --from-clipboard # Paste image from clipboard
agency files list <slug> # List attached files
agency files rm <slug> <file-id> # Remove a file
agency info # Show task context and files (inside session)
When files are attached, agents can run agency info to get the context. Files are accessible insie task worktrees via .agency/local/files/.
You SHOULD attach files when:
Example: If you created a markdown plan and want to delegate work to multiple agency tasks, attach that plan to each task so the spawned agents have the full context.
Only run tasks in parallel if they are truly independent. Tasks that modify the same files or depend on each other's output will cause merge conflicts or broken code.
Good candidates for parallel tasks:
Do NOT run in parallel:
When in doubt, run tasks sequentially. Merge conflicts are painful to resolve and waste more time than running tasks one after another.
# Create multiple parallel tasks
agency new --draft feature-auth <<'EOF'
Implement user authentication
EOF
agency new --draft feature-api <<'EOF'
Build REST API endpoints
EOF
agency new --draft fix-tests <<'EOF'
Fix failing unit tests
EOF
# Start all tasks
agency start --no-attach feature-auth
agency start --no-attach feature-api
agency start --no-attach fix-tests
# Or start tasks on creation
agency new --no-attach feature-auth <<'EOF'
Implement user authentication
EOF
agency new --no-attach feature-api <<'EOF'
Build REST API endpoints
EOF
agency new --no-attach fix-tests <<'EOF'
Fix failing unit tests
EOF
# Check status
agency tasks
# When done, merge back
agency merge feature-auth
CRITICAL: ALL agency commands MUST be run outside the sandbox.
If you are running in a sandbox you will get errors like run/agency-tmux.sock (Operation not permitted).
IMPORTANT: Despite the error message, this is not because the daemon is not started. It is because the sandbox cannot access the tmux socket file. You MUST run ALL agency commands outside the sandbox:
Run agency --help for the full command reference.
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