skill-share
npx skills add https://github.com/ing-la/agent-skills-share --skill skill-share
Agent 安装分布
Skill 文档
Skill Share – Daily Agent Skills Content Generator
Overview
Generate daily Xiaohongshu (å°çº¢ä¹¦) content about Agent Skills. Intelligently selects skills, generates copywriting, and optionally installs for deep technical analysis.
Workflow
Phase 0: Initialization (Smart Detection)
Before starting any workflow, ensure the working directory structure exists:
-
Check if
Agent-skills-share/directory exists:- If exists â continue to Phase 1
- If not exists â proceed to initialization
-
Initialize directory structure (if needed):
- Create
Agent-skills-share/directory - Create
Agent-skills-share/daily-posts/directory - Create
Agent-skills-share/templates/directory (if not exists) - Create
Agent-skills-share/daily-posts/RECORD.mdwith initial content:# Agent Skills åäº«è®°å½ > æ¬æä»¶è®°å½ææå·²å享çAgent Skill详ç»ä¿¡æ¯ï¼å æ¬ä¿¡æ¯æ¥æºãçææ¶é´ãæ´æ°è¯´æçã ## è®°å½æ ¼å¼ æ¯ä¸ªskillè®°å½å å«ï¼ - Skillåç§°å龿¥ - ç¶æï¼å·²å®æ/è¿è¡ä¸ï¼ - draft.mdçä¿¡æ¯æ¥æºå龿¥ï¼å¦æåå¨ï¼ - final.mdçä¿¡æ¯æ¥æºå龿¥ï¼å¦æåå¨ï¼ - technical-review.mdçä¿¡æ¯æ¥æºå龿¥ï¼å¦æåå¨ï¼ **注æ**ï¼å¦ææä¸ªææ¡£æªçææä¸åå¨ï¼è¯¥æ¡ç®å°ä¸ä¼åºç°å¨è®°å½ä¸ï¼åªååºå®é åå¨çææ¡£ï¼ã --- ## å·²å享Skills ï¼è®°å½å°èªå¨æ·»å å°è¿éï¼ - Create
Agent-skills-share/README.md(copy from skill template or create basic version) - Inform user: “å·²å建 Agent-skills-share ç®å½ç»æï¼å¯ä»¥å¼å§ä½¿ç¨äº”
- Create
-
Continue to Phase 1
Phase 1: Skill Selection
-
Recommend Direction:
- Read
Agent-skills-share/daily-posts/RECORD.mdto track history - Analyze recent posts for diversity:
- Last 3 popular â recommend niche/domain-specific
- Last 3 technical â recommend creative/design
- Default: popular skills
- Present: 1 recommended + 4 alternatives (A/B/C/D)
- CRITICAL: STOP and WAIT for user input (direct confirm, A/B/C/D, or custom direction)
- DO NOT proceed until user provides explicit choice
- Read
-
Search & Present:
- Fetch from https://skills.sh/ based on user’s selection
- Extract: name, description, install count
- Present top 3 matches with format:
1. [skill-name] - [core description] (å®è£ æ°: X.XK) - [key feature 1] - [key feature 2] - éå [target audience] - CRITICAL: STOP and WAIT for user to choose (1/2/3)
- DO NOT proceed until user selects one of the options
Phase 2: Draft Generation
-
Fetch Information:
- Get skill page from skills.sh:
https://skills.sh/<owner>/<repo>/<skill-name> - Extract: name, description, install count, GitHub link, owner/repo
- Note source clearly in draft frontmatter: “ä¿¡æ¯æ¥æº: skills.sh页颔
- Get skill page from skills.sh:
-
Select Template:
- Priority 1: Check
Agent-skills-share/templates/directory for available templates- If multiple templates found (e.g.,
xhs_template.md,xhs_template_minimal.md):- List available templates with brief descriptions
- CRITICAL: STOP and ASK user to choose (or use default
xhs_template.mdif user doesn’t respond) - DO NOT proceed until user selects a template or explicitly confirms default
- If only one template found â use it automatically
- If multiple templates found (e.g.,
- Priority 2: If no template in project directory, try to find skill’s default template:
- Check
.cursor/skills/skill-share/templates/xhs_template.md(if exists) - Or check
.agents/skills/skill-share/templates/xhs_template.md(if exists) - Use the first found template
- Check
- Priority 3: If still not found, inform user and proceed without template (generate from scratch)
- Priority order: Project templates > Skill default template (from installation directory)
- Priority 1: Check
-
Generate draft.md:
- Path:
Agent-skills-share/daily-posts/YYYY-MM-DD-<skill-name>/draft.md - Use selected template
- Add frontmatter:
--- ä¿¡æ¯æ¥æº: skills.shé¡µé¢ çææ¶é´: YYYY-MM-DD HH:MM:SS --- - Structure: Title, Opening, Functions, Audience, Installation command, Tags
- Length: 300-500 words, accessible style (not hardcore technical)
- Path:
Phase 3: Installation Decision
CRITICAL: STOP and ASK user: “æ¯å¦éè¦å®è£ 宿æ´è¯¦ç»çææ¯åæåä½éªåé¦ï¼” (æ¯/å¦)
- DO NOT proceed until user provides explicit answer (æ¯/å¦)
- DO NOT assume or proceed automatically
If “妔:
- Copy
draft.mdtofinal.md - Add frontmatter to final.md: “ä¿¡æ¯æ¥æº: draft.md (ç´æ¥å¤å¶), æ´æ°è¯´æ: æªè¿è¡å®è£ åææ¯åæ”
- Generate brief
technical-review.md(skills.sh info only, 50-200 words, note: “æªè¿è¡æ·±åº¦ä»£ç åæ”) - Update RECORD.md â End
If “比 â Phase 4
Phase 4: Installation
CRITICAL: STOP and ASK user: “ä½ èªå·±å®è£ è¿æ¯æå®è£ ï¼” (æèªå·±å®è£ /ä½ å®è£ )
- DO NOT proceed until user provides explicit choice
- DO NOT assume or proceed automatically
If “æèªå·±å®è£ ”:
- Provide command:
npx skills add <owner/repo> --skill <skill-name> - Brief guide: “å®è£ è¿ç¨ä¸ä¼è¯¢é®å®è£ å°åªäºagentï¼å¯ä»¥éæ©å¤ä¸ªæå ¨é¨”
- Say: “å®è£ 宿ååè¯æï¼æä¼ç»§ç»è¿è¡åæ”
- CRITICAL: STOP and WAIT for user confirmation – Wait for user to explicitly say “å®è£ 宿” or similar confirmation
- DO NOT proceed until user confirms installation is complete
- Verify: Check
.cursor/skills/<skill-name>/SKILL.mdexists - If verified â Phase 5, else ask user to confirm or proceed with web info only
If “ä½ å®è£ ”:
- Run:
npx skills add <owner/repo> --skill <skill-name> --agent cursor --yes - This installs to
.agents/skills/<skill-name>/ - Copy to target:
- Read
SKILL.mdcontent and write to.cursor/skills/<skill-name>/SKILL.md - If
scripts/exists: Copy recursively to.cursor/skills/<skill-name>/scripts/- Windows: Use PowerShell
Copy-Item -Recurse - Unix: Use
cp -r
- Windows: Use PowerShell
- Copy other files (README.md, etc.) if they exist
- Read
- Clean up: Remove
.agents/skills/<skill-name>/ - Verify: Check
.cursor/skills/<skill-name>/SKILL.mdexists - If successful â Phase 5, else inform user and proceed with web info only
Phase 5: Deep Analysis
-
Read & Analyze:
- Read
.cursor/skills/<skill-name>/SKILL.mdcompletely - Extract: name, description, workflow, usage instructions
- If
scripts/exists: List code files (.py, .js, .ts, .sh, etc.), analyze each:- Code volume, tech stack, implementation highlights, code quality
- Read
-
Generate technical-review.md:
- Path:
Agent-skills-share/daily-posts/YYYY-MM-DD-<skill-name>/technical-review.md - Add frontmatter: “ä¿¡æ¯æ¥æº: å·²å®è£ skillåæ (.cursor/skills//SKILL.md + scripts/)”
- Structure:
- Core Function (100-150 words)
- Design Philosophy (200-300 words)
- Technical Implementation (300-400 words)
- Use Cases & Limitations (100-150 words)
- Technical Evaluation (100-150 words)
- Developer Info (50 words, optional)
- Length: 800-1200 words, concise and professional
- Path:
-
CRITICAL: STOP and ASK user: “æ¯å¦è¦ä½éªè¿ä¸ªskillï¼” (æ¯/å¦)
- DO NOT proceed until user provides explicit answer
- DO NOT assume or proceed automatically
If “妔:
- Generate final.md: Enhance draft.md with technical-review.md insights:
- Read
draft.mdandtechnical-review.md - Add technical highlights from code analysis
- Refine function descriptions based on deeper understanding
- Update target audience if needed
- Enhance installation command section
- Important: final.md is still Xiaohongshu copywriting, not technical doc
- Maintain accessible style, supplement not merge
- Read
- Add frontmatter: “ä¿¡æ¯æ¥æº: draft.md + technical-review.mdææ¯åæ, æ´æ°è¯´æ: åºäºææ¯åæææ¡£æ´æ°ï¼æªè¿è¡å®é ä½éª”
- Update RECORD.md â End
If “比:
- Say: “ä½éªå®æååè¯æï¼æä¼æ¶éåé¦å¹¶æ´æ°ææ¡”
- CRITICAL: STOP and WAIT for user confirmation – Wait for user to explicitly say “ä½éªå®æ” or similar confirmation
- DO NOT proceed to Phase 6 until user confirms experience is complete
Phase 6: Feedback & Final Update
Context: technical-review.md exists, final.md does NOT exist yet
CRITICAL: STOP and ASK user: “æ¯å¦è¦æ´æ°ææ¡ï¼” (æ¯/å¦)
- DO NOT proceed until user provides explicit answer
- DO NOT assume or proceed automatically
If “妔:
- Generate final.md: Same enhancement logic as Phase 5 “妔 branch:
- Enhance draft.md with technical-review.md insights
- Add frontmatter: “ä¿¡æ¯æ¥æº: draft.md + technical-review.mdææ¯åæ, æ´æ°è¯´æ: åºäºææ¯åæææ¡£æ´æ°ï¼å·²ä½éªä½æªæ¶éå馔
- Update RECORD.md â End
If “比:
- Ensure final.md exists: If not, generate it (same as “妔 branch above)
- Collect feedback:
- CRITICAL: STOP and ASK user: “éæ©å馿¹å¼ï¼1) èªç±è¾å ¥ 2) åçé¢è®¾é®é¢”
- DO NOT proceed until user selects an option
- Option 1: User provides feedback freely
- Option 2: Ask one by one:
- “è¿ä¸ªskillæè®©ä½ æåçæ¯ä»ä¹ï¼”
- “æä»ä¹ä½¿ç¨ä¸ççç¹åï¼”
- “å®é 使ç¨åºæ¯æ¯ä»ä¹ï¼”
- Update final.md with feedback:
- Maintain original structure, update content
- Can add: actual usage experience, real scenarios, notes, improvement suggestions
- Update frontmatter: “ä¿¡æ¯æ¥æº: draft.md + technical-review.mdææ¯åæ + å®é ä½éªåé¦, æ´æ°è¯´æ: åºäºææ¯åæåå®é ä½éªæ´æ°”
- Update RECORD.md â End
Document Structure
Frontmatter format (all documents):
---
ä¿¡æ¯æ¥æº: [actual source]
çææ¶é´: YYYY-MM-DD HH:MM:SS
[æ´æ°è¯´æ: optional, context-specific]
---
RECORD.md update (at workflow end):
- File:
Agent-skills-share/daily-posts/RECORD.md - Check which files exist:
draft.md,final.md,technical-review.md - Add entry (only list existing files):
## YYYY-MM-DD - <skill-name> - **Skill**: [skill-name](https://skills.sh/owner/repo/skill-name) - **ç¶æ**: â 已宿 - **draft.mdä¿¡æ¯æ¥æº**: [source] | [龿¥](daily-posts/YYYY-MM-DD-skill-name/draft.md) - **final.mdä¿¡æ¯æ¥æº**: [source] | [龿¥](daily-posts/YYYY-MM-DD-skill-name/final.md) - **technical-review.mdä¿¡æ¯æ¥æº**: [source] | [龿¥](daily-posts/YYYY-MM-DD-skill-name/technical-review.md)
Key Principles
- CRITICAL: Always wait for user input: When asking questions or presenting options, STOP and WAIT for explicit user response. NEVER proceed automatically or assume user’s choice.
- Smooth workflow: No retries, use available info gracefully
- Accessibility first: Not always hardcore technical, focus on user-friendly content
- User control: User decides installation and experience – always wait for explicit confirmation
- Clear sources: Always note information source in frontmatter
- Flexible feedback: Support both free input and guided questions
- Explicit waits: Use phrases like “STOP and WAIT”, “DO NOT proceed”, “CRITICAL” to emphasize waiting points
Error Handling
- Installation fails: Inform user, proceed with web info only
- File read fails: Use web info, note limitation in technical-review.md
Usage
When user says /skill or requests daily skill content:
- Start Phase 1: Skill Selection
- Proceed through phases sequentially based on user choices
- Generate documents based on available information
- Update RECORD.md at workflow end
- Confirm completion with user