ShenyuanNext/wepr-growth-skills / skills/dbs-install-skill
dbs-install-skill
Verified将单个 Skill 或 Skill 集合安装到通用 Agents、Claude Code、Codex、WorkBuddy、Grok、Hermes Agent、Kiro、Qwen Code、Cline 等 Agent。用户要求跨 Agent 安装、同步、查看、去重或卸载 Skill 时使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.5 KB |
| agents/openai.yaml | config | 224 B |
| scripts/install-skill.shexecutable | script | 20.7 KB |
| scripts/windows-junction.ps1 | script | 3.7 KB |
scripts/windows-junction.ps1
View on GitHubparam(
[Parameter(Mandatory = $true)]
[ValidateSet("create", "target", "remove", "test", "list", "same", "under")]
[string]$Action,
[Parameter(Mandatory = $true)]
[string]$Path,
[string]$Target
)
$ErrorActionPreference = "Stop"
function Get-ManagedLink([string]$LiteralPath) {
$item = Get-Item -LiteralPath $LiteralPath -Force -ErrorAction SilentlyContinue
if ($null -eq $item) {
return $null
}
if ($item.LinkType -in @("Junction", "SymbolicLink")) {
return $item
}
$isReparsePoint = ($item.Attributes -band [System.IO.FileAttributes]::ReparsePoint) -ne 0
if ($isReparsePoint -and $item.PSIsContainer) {
return $item
}
return $null
}
function Get-ManagedLinkTarget($Item) {
$linkTarget = @($Item.Target)[0]
if (-not [string]::IsNullOrWhiteSpace($linkTarget)) {
if (-not [System.IO.Path]::IsPathRooted($linkTarget)) {
$linkTarget = Join-Path $Item.Parent.FullName $linkTarget
}
return [System.IO.Path]::GetFullPath($linkTarget)
}
$resolveMethod = $Item.GetType().GetMethod("ResolveLinkTarget", [type[]]@([bool]))
if ($null -ne $resolveMethod) {
$resolved = $Item.ResolveLinkTarget($false)
if ($null -ne $resolved) {
return $resolved.FullName
}
}
return $null
}
function Get-ComparableFullName([string]$LiteralPath) {
$item = Get-Item -LiteralPath $LiteralPath -Force -ErrorAction SilentlyContinue
if ($null -eq $item) {
return $null
}
return $item.FullName.TrimEnd(
[System.IO.Path]::DirectorySeparatorChar,
[System.IO.Path]::AltDirectorySeparatorChar
)
}
switch ($Action) {
"create" {
if ([string]::IsNullOrWhiteSpace($Target)) {
throw "create 操作缺少 Target"
}
if (Test-Path -LiteralPath $Path -PathType Any) {
throw "目标已经存在:$Path"
}
New-Item -ItemType Junction -Path $Path -Target $Target | Out-Null
$item = Get-ManagedLink $Path
if ($null -eq $item) {
throw "Junction 创建后校验失败:$Path"
}
}
"target" {
$item = Get-ManagedLink $Path
if ($null -eq $item) {
exit 1
}
$linkTarget = Get-ManagedLinkTarget $item
if ([string]::IsNullOrWhiteSpace($linkTarget)) {
exit 1
}
$linkTarget
}
"remove" {
$item = Get-ManagedLink $Path
if ($null -eq $item) {
throw "拒绝删除非 Junction/SymbolicLink 路径:$Path"
}
$item.Delete()
}
"test" {
if ($null -eq (Get-ManagedLink $Path)) {
exit 1
}
}
"list" {
if (-not (Test-Path -LiteralPath $Path -PathType Container)) {
exit 0
}
Get-ChildItem -LiteralPath $Path -Force |
Where-Object {
$_.LinkType -in @("Junction", "SymbolicLink") -or
(($_.Attributes -band [System.IO.FileAttributes]::ReparsePoint) -ne 0 -and $_.PSIsContainer)
} |
ForEach-Object { $_.FullName }
}
"same" {
if ([string]::IsNullOrWhiteSpace($Target)) {
exit 1
}
$left = Get-ComparableFullName $Path
$right = Get-ComparableFullName $Target
if ($null -eq $left -or $null -eq $right) {
exit 1
}
if (-not [string]::Equals($left, $right, [System.StringComparison]::OrdinalIgnoreCase)) {
exit 1
}
}
"under" {
if ([string]::IsNullOrWhiteSpace($Target)) {
exit 1
}
$child = Get-ComparableFullName $Path
$root = Get-ComparableFullName $Target
if ($null -eq $child -or $null -eq $root) {
exit 1
}
$prefix = $root + [System.IO.Path]::DirectorySeparatorChar
$same = [string]::Equals($child, $root, [System.StringComparison]::OrdinalIgnoreCase)
$nested = $child.StartsWith($prefix, [System.StringComparison]::OrdinalIgnoreCase)
if (-not ($same -or $nested)) {
exit 1
}
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |