
create-symlink
创建软链接(符号链接)支持 Windows、macOS 和 Linux 系统。根据当前操作系统自动选择正确的命令创建目录或文件的软链接。当用户需要创建软链接、符号链接或需要在不同位置共享文件/目录时使用此技能。
- Installs
- 53
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/steelan9199/wechat-publisher --skill create-symlink- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads create-symlink automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
创建软链接 (Create Symlink)
指令
当用户需要创建软链接时,首先检测操作系统类型,然后使用对应的命令:
1. 检测操作系统
AI 通过以下方式判断当前系统:
- 查看环境变量中的系统信息:如
process.platform(在 Node.js 环境中) - 分析用户提供的路径格式:
- Windows 路径:
C:\Users\...或D:\... - macOS 路径:
/Users/username/...或~/... - Linux 路径:
/home/username/...或~/...
- Windows 路径:
- 直接询问用户:当无法确定时,询问用户当前使用的操作系统
系统标识:
- Windows:
win32 - macOS:
darwin - Linux:
linux
2. 创建目录软链接
Windows (PowerShell):
New-Item -ItemType SymbolicLink -Path "目标路径" -Target "源路径"
Windows (CMD):
mklink /D "目标路径" "源路径"
macOS / Linux:
ln -s "源路径" "目标路径"
3. 创建文件软链接
Windows (PowerShell):
New-Item -ItemType SymbolicLink -Path "目标文件路径" -Target "源文件路径"
Windows (CMD):
mklink "目标文件路径" "源文件路径"
macOS / Linux:
ln -s "源文件路径" "目标文件路径"
4. 创建硬链接(文件)
Windows (CMD):
mklink /H "目标文件路径" "源文件路径"
macOS / Linux:
ln "源文件路径" "目标文件路径"
使用场景
使用此技能当用户:
- 需要在不同位置共享同一个目录或文件
- 想要创建快捷方式但保持原始路径引用
- 需要跨目录访问文件而不想复制
- 想要统一管理配置文件或资源
- 在开发环境中链接依赖目录
- 需要迁移大文件夹但保持原路径可用
注意事项
权限要求
- Windows: 创建软链接通常需要管理员权限(开发者模式可免除)
- macOS / Linux: 普通用户可以创建软链接,但可能需要权限才能链接到某些系统目录
路径格式
- Windows: 使用完整路径,如
C:\Users\name\folder或"C:\Users\name\folder" - macOS / Linux: 使用完整路径,如
/home/user/folder或~/folder - 避免使用相对路径,特别是在脚本中
目标存在
- 源路径必须存在才能创建软链接
- 目标路径不能已存在(文件或目录)
跨文件系统
- 软链接可以跨文件系统创建
- 硬链接不能跨文件系统创建
各平台示例
Windows 示例
创建目录软链接
New-Item -ItemType SymbolicLink -Path "D:\shared\tools" -Target "C:\tools"
创建文件软链接
New-Item -ItemType SymbolicLink -Path "C:\Users\Public\Desktop\config.json" -Target "D:\MyConfigs\main-config.json"
macOS 示例
创建目录软链接
ln -s /Users/username/Documents/work /Users/username/Desktop/work-link
创建文件软链接
ln -s ~/.config/app/settings.json ~/Desktop/settings-link.json
Linux 示例
创建目录软链接
ln -s /home/user/projects/myapp /var/www/myapp
创建文件软链接
ln -s /etc/nginx/sites-available/my-site /etc/nginx/sites-enabled/my-site
验证链接
Windows
# 查看链接详情
Get-ChildItem "链接路径"
# 查看是否为符号链接
(Get-Item "链接路径").Attributes
macOS / Linux
# 查看链接详情
ls -la "链接路径"
# 验证链接指向
readlink "链接路径"
# 查看链接和源文件
ls -la "链接路径" "源路径"
删除软链接
Windows
# 删除软链接(不要加 -Recurse,否则会删除源文件)
Remove-Item "链接路径"
macOS / Linux
# 删除软链接(不要加 -r,否则会删除源文件)
rm "链接路径"
# 或
unlink "链接路径"
使用指南
快速开始
查看 QUICK-REF.md 获取快速参考卡片
详细指南
详细的使用说明请参考 USAGE.md 文件,其中包含了:
- 各种触发关键词
- 完整的对话示例
- 常见使用场景
- 注意事项提醒
FAQ
What does the create-symlink skill do?
创建软链接(符号链接)支持 Windows、macOS 和 Linux 系统。根据当前操作系统自动选择正确的命令创建目录或文件的软链接。当用户需要创建软链接、符号链接或需要在不同位置共享文件/目录时使用此技能。
How do I install create-symlink?
Run npx skills add https://github.com/steelan9199/wechat-publisher --skill create-symlink in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/create-symlink/ (personal) or .claude/skills/create-symlink/ (project).
Which AI agents can use create-symlink?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is create-symlink safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains create-symlink?
It is published by steelan9199 in steelan9199/wechat-publisher. It has 53 recorded installs.
More from steelan9199/wechat-publisher
pyautogui-automation
steelan9199/wechat-publisher
基于 PyAutoGUI 的桌面自动化工具。支持截图、鼠标键盘控制、图像识别、颜色检测等操作。当用户需要自动化操作桌面应用、执行 UI 测试或重复性任务时触发。
wechat-publisher-yashu
steelan9199/wechat-publisher
Open the skill to read its SKILL.md instructions.
wechat-title-optimizer
steelan9199/wechat-publisher
公众号标题优化专家,专为技术/效率工具类内容创作者优化标题。当用户需要优化公众号文章标题、提升文章点击率、诊断标题问题或寻找爆款标题灵感时使用此技能。支持技术热词保护、多维度优化分析和场景化标题推荐。能够智能读取上下文中的文章内容,基于文章实际内容优化标题,确保标题与内容高度匹配。
wechat-content-optimizer
steelan9199/wechat-publisher
优化本地 Markdown 文件中的公众号文章内容,使其更适合16-50岁中国用户在微信公众平台阅读。支持优化文章结构、语言表达、排版格式,提升开头吸引力、段落节奏、结尾转化。当用户需要优化公众号文章、改进 Markdown 内容质量、提升文章阅读体验时使用此技能。
generate-cover-prompt
steelan9199/wechat-publisher
Open the skill to read its SKILL.md instructions.
Popular devops & cloud skills
microsoft-foundry
microsoft/azure-skills
Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure
azure-diagnostics
microsoft/azure-skills
Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.
azure-prepare
microsoft/azure-skills
Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
azure-deploy
microsoft/azure-skills
Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.
azure-validate
microsoft/azure-skills
Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.