xiaohongshu
xiaohongshu
migrate-to-skills
Convert legacy subagents, slash commands, and rules to the unified Agent Skills format. Use when migrating agent resources, consolidating legacy directories, or standardizing across Claude Code, Cursor, Copilot, Codex, and Open Code.
Full skill instructions
Convert legacy agent resources to the unified Agent Skills format.
Execute these phases in order. Always get user approval before making changes.
Search for legacy resources. Run these searches immediately:
# Subagents
find . -path "*/.claude/agents/*.md" -o -path "*/.cursor/agents/*.md" -o -path "*/.codex/agents/*.md" 2>/dev/null
# Commands
find . -path "*/.claude/commands/*.md" -o -path "*/.cursor/commands/*.md" -o -path "*/.codex/commands/*.md" 2>/dev/null
# Rules
find . -path "*/.claude/rules/*.md" -o -path "*/.cursor/rules/*.mdc" -o -path "*/.cursor/rules/*.md" 2>/dev/null
# Custom Prompts (Codex)
find . -path "*/.codex/prompts/*.md" 2>/dev/null
# AGENTS.md files
find . -name "AGENTS.md" 2>/dev/null
If $1 specifies a path, only scan that location.
Read each discovered file and classify it. Present findings as:
## Discovery Results
### Subagents (X found)
| File | Name | Recommended Action |
|------|------|-------------------|
| .claude/agents/reviewer.md | reviewer | Convert to skill |
### Commands (X found)
| File | Name | Recommended Action |
|------|------|-------------------|
| .claude/commands/test.md | test | Convert to skill |
### Rules (X found)
| File | Name | Type | Recommended Action |
|------|------|------|-------------------|
| .cursor/rules/style.mdc | style | always-apply | Import to CLAUDE.md |
| .cursor/rules/react.mdc | react | glob-scoped | Keep as rule |
| .claude/rules/security.md | security | knowledge | Convert to skill |
### Already Skills (No Action)
- .claude/skills/existing/ ✓
### Needs Manual Review
- [file]: [reason]
Rule classification logic:
alwaysApply: true → Import to CLAUDE.md via @importglobs pattern → Keep as rule (skills don't support glob activation)Ask user:
"Found X resources to convert. Proceed with conversion? [Y/n/customize]"
If "customize": Let user select specific items or modify actions.
For each approved conversion, apply the appropriate mapping:
Subagent → Skill:
context: fork (required for subagent behavior)allowed-toolsCommand → Skill:
disable-model-invocation: trueargument-hint$ARGUMENTS, $1, $2 usageRule → Skill (knowledge type only):
disable-model-invocation (allow auto-activation)Rule → CLAUDE.md (always-apply):
@import path/to/rule.md to CLAUDE.mdCreate skill structure:
.claude/skills/{name}/
├── SKILL.md
├── scripts/ # If original has executables
├── references/ # If original has docs
└── assets/ # If original has templates
After conversion, run:
# List created skills
ls -la .claude/skills/
# Verify frontmatter
for skill in .claude/skills/*/SKILL.md; do
echo "=== $skill ===" && head -20 "$skill"
done
Present summary:
## Conversion Complete
### Created Skills
| Skill | Location | Source |
|-------|----------|--------|
| reviewer | .claude/skills/reviewer/ | .claude/agents/reviewer.md |
### Updated Files
- CLAUDE.md: Added 2 @import statements
### Verification
- [x] All skills have valid frontmatter
- [x] Names match directory names
- [x] No duplicate skills
Ask user:
"Delete original files? [y/N/archive]"
.claude/archive/| Source Type | Target | Key Addition |
|---|---|---|
| Subagent | Skill | context: fork |
| Command | Skill | disable-model-invocation: true |
| Rule (knowledge) | Skill | Trigger keywords in description |
| Rule (always-apply) | CLAUDE.md | @import statement |
| Rule (glob-scoped) | Keep as rule | No conversion needed |
| Legacy | Skills |
|---|---|
claude-opus-4-* | opus |
claude-sonnet-4-* | sonnet |
claude-3-5-haiku-* | haiku |
inherit / omitted | (omit) |
| Variations | Standard |
|---|---|
| read, ReadFile, file_read | Read |
| write, WriteFile | Write |
| bash, Terminal, Shell | Bash |
| grep, Search | Grep |
| glob, Find, list_files | Glob |
For detailed specifications, read these on-demand:
references/spec-reference.md - Full Agent Skills specificationreferences/field-mappings.md - Complete field conversion tablesreferences/examples.md - Before/after conversion examples| Issue | Solution |
|---|---|
| Skill not discovered | Check: name matches directory, valid YAML frontmatter |
| Triggers too often | Add disable-model-invocation: true |
| Doesn't auto-trigger | Remove disable-model-invocation, add keywords to description |
| Subagent behavior changed | Ensure context: fork is present |
| Hooks not working | Requires Claude Code 2.1+ |
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