一键导入
create-local-skill
Create project-local skills for Cursor and Claude Code when users ask to create, add, or update reusable repo instructions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create project-local skills for Cursor and Claude Code when users ask to create, add, or update reusable repo instructions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validate uncommitted changes in this skills repo before committing. Use when the user invokes /check-local-changes, asks to check, review, or validate local/uncommitted/pending changes, or before committing a new or modified skill.
Execute a remote agent skill from a skills.sh or GitHub URL without installing it on the system. Use when the user invokes /run-skill <url>, shares a skills.sh link, points to a SKILL.md on GitHub, or asks to run/try/test a skill one-off without adding it to their machine.
Automate browserless/Puppeteer headless Chrome for screenshots, PDFs, HTML/text extraction, status checks, Lighthouse audits, and browser pipelines.
Retrieve normalized HTML from URLs with fetch or headless prerender for JS pages, absolute URL rewriting, and metadata extraction pipelines.
Tune Kubernetes HPA, topology spread, requests, and scale-down behavior for cluster cost audits, incidents, replica/node issues, and over-reservation.
Build @keyvhq/core key-value caches with TTL, namespaces, memoization, cache-aside patterns, and Redis/Mongo/MySQL/PostgreSQL/SQLite adapters.
| name | create-local-skill |
| description | Create project-local skills for Cursor and Claude Code when users ask to create, add, or update reusable repo instructions. |
Create a project-local skill that works in both Claude Code and Cursor. The canonical location is .agents/skills/, with a symlink from .claude/commands so Claude Code picks it up.
Ask the user what the skill should do if not already clear. Derive a kebab-case name from the task (e.g., sync-providers, deploy-staging).
mkdir -p .agents/skills/<skill-name>
Create .agents/skills/<skill-name>/SKILL.md following the create-skill skill guidelines. Read its references as needed for structure, best practices, and examples.
If .claude/commands does not exist or is not already a symlink to .agents/skills:
mkdir -p .claude
ln -s ../.agents/skills .claude/commands
If .claude/commands already exists as a regular directory with other content, warn the user and ask how to proceed rather than overwriting.
ls -la .claude/commands/ # should show symlink → ../.agents/skills
ls .claude/commands/<skill-name>/ # should list SKILL.md
Check .gitignore — ensure neither .agents/ nor .claude/ is ignored. Both should be committed so the skill is shared with collaborators.
../.agents/skills) so it works regardless of where the repo is cloned.