xiaohongshu
xiaohongshu
automation-builder
Analyze codebases and generate Claude Code automation infrastructure including commands, scripts, and templates for systematic task execution. Use when the user wants to create reusable automation workflows, generate .claude/commands files, create supporting bash/python scripts, build markdown te...
Full skill instructions
Generate Claude Code automation infrastructure: commands (.claude/commands/*.md), scripts (.claude/scripts/bash/*.sh), and templates (.claude/templates/*.md).
Discovery → Design → Generate → Validate → Integrate
First, understand the project structure:
# Identify project type and existing automation
find . -name "package.json" -o -name "pyproject.toml" -o -name "Cargo.toml" 2>/dev/null | head -5
ls -la .claude/ 2>/dev/null || echo "No .claude directory"
find . -name "*.sh" -path "*/scripts/*" 2>/dev/null | head -10
Look for:
.claude/ structureAsk these targeted questions based on what the user needs:
Task Scope:
Execution Model:
Integration:
| Need | Component | Location |
|---|---|---|
| Interactive workflow with decisions | Command | .claude/commands/task.md |
| Deterministic automation | Script | .claude/scripts/bash/task.sh |
| Structured output format | Template | .claude/templates/output.md |
Command-First (interactive): Command calls scripts, uses templates
Script-First (automation): Script generates output from templates
Hybrid (orchestrated): Command coordinates multiple scripts with checkpoints
Commands in .claude/commands/*.md:
---
description: One-line description for command discovery
handoffs:
- label: Next Step
agent: target-command
prompt: Context for handoff
---
## User Input
```text
$ARGUMENTS
[Parse user arguments here]
[What this command does and when to use it]
See `references/command-patterns.md` for detailed examples.
### Script Structure
Scripts in `.claude/scripts/bash/*.sh`:
```bash
#!/usr/bin/env bash
# Description of what script does
#
# Usage: ./script.sh [OPTIONS] [ARGS]
#
# OPTIONS:
# --json Output JSON for command parsing
# --help Show help
set -e
# Parse arguments
JSON_MODE=false
for arg in "$@"; do
case "$arg" in
--json) JSON_MODE=true ;;
--help|-h) sed -n '2,/^[^#]/p' "$0" | sed 's/^# \?//'; exit 0 ;;
esac
done
# Main logic here
# Output results
if $JSON_MODE; then
echo '{"status":"success","data":{}}'
else
echo "Results..."
fi
See references/script-patterns.md for detailed examples.
Templates in .claude/templates/*.md:
# Template Title
<!--
Purpose: What this template is for
Updated by: Which command/script populates this
-->
**Last Updated**: [TIMESTAMP]
**Status**: [STATUS]
---
## Section
| Field | Value |
|-------|-------|
| Item | [PLACEHOLDER] |
<!-- Guidance for complex sections -->
See references/template-patterns.md for detailed examples.
After generating, validate:
bash -n script.sh or shellcheck script.shConnect commands in YAML frontmatter:
handoffs:
- label: "Continue"
agent: next-command
prompt: "Context message"
send: true # Auto-execute
Reference scripts from commands:
Run `.claude/scripts/bash/check.sh --json` from project root.
Parse response:
```json
{"status":"success|error","data":{}}
### Memory/State Files
For persistent state across command runs:
.claude/memory/ ├── status.md # Progress tracking └── decisions.md # Decision log
## Directory Layout
.claude/ ├── commands/ │ ├── task.md │ └── task-subtask.md ├── scripts/ │ ├── bash/ │ │ ├── common.sh │ │ ├── setup-.sh │ │ └── check-.sh │ └── python/ │ └── helpers.py ├── templates/ │ └── *-template.md └── memory/ └── *.md
## Resources
### References
- `references/command-patterns.md` - Command authoring patterns
- `references/script-patterns.md` - Bash/Python script patterns
- `references/template-patterns.md` - Template design patterns
### Scripts
- `scripts/init-automation.sh` - Initialize .claude/ structure
- `scripts/validate-automation.sh` - Validate generated artifacts
### Assets
- `assets/command-template.md` - Starter command template
- `assets/script-template.sh` - Starter script template
- `assets/output-template.md` - Starter output template
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