ShenyuanNext/wepr-growth-skills / skills/dbs-skill-maker
dbs-skill-maker
Verified通过需求分析把反复出现的问题制作成可安装、可分级验证的单个 Skill。用户要求做 Skill、把问题沉淀成 Skill、检查或测试候选 Skill 时使用;只有用户明确要求分享或发布时,才准备 GitHub 仓库并验证 `npx skills add`。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.6 KB |
| agents/openai.yaml | config | 282 B |
| references/evaluation.md | markdown | 3.8 KB |
| references/github-publishing.md | markdown | 3.3 KB |
| references/problem-and-goal.md | markdown | 2.8 KB |
| references/skill-construction.md | markdown | 3.3 KB |
| references/theory-and-mechanism.md | markdown | 2.3 KB |
| scripts/init_skill_project.pyexecutable | script | 4.2 KB |
| scripts/prepare_github_repo.pyexecutable | script | 7.0 KB |
| scripts/validate_skill_project.pyexecutable | script | 8.2 KB |
| scripts/verify_npx_install.shexecutable | script | 2.4 KB |
scripts/verify_npx_install.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
if [[ $# -ne 3 ]]; then
echo "用法:$0 <owner/repo-or-local-path> <skill-name> <source-skill-directory>" >&2
exit 2
fi
source_locator="$1"
skill_name="$2"
source_skill_directory="$3"
skill_maker_npx="${SKILL_MAKER_NPX:-npx}"
temporary_root="$(mktemp -d)"
temporary_home="$temporary_root/home"
if [[ ! "$skill_name" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ ]]; then
echo "安装验证失败:Skill 名称格式无效" >&2
exit 2
fi
if [[ ! -f "$source_skill_directory/SKILL.md" ]]; then
echo "安装验证失败:源目录缺少 SKILL.md" >&2
exit 2
fi
if find "$source_skill_directory" -type l -print -quit | grep -q .; then
echo "安装验证失败:源 Skill 包含软链接" >&2
exit 2
fi
cleanup() {
rm -rf "$temporary_root"
}
trap cleanup EXIT
mkdir -p "$temporary_home"
HOME="$temporary_home" "$skill_maker_npx" -y skills add "$source_locator" -g --all
installed_skill=""
while IFS= read -r candidate; do
installed_skill="$candidate"
break
done < <(find "$temporary_home" -type f -path "*/skills/$skill_name/SKILL.md" -print)
if [[ -z "$installed_skill" ]]; then
echo "安装验证失败:未找到 $skill_name/SKILL.md" >&2
exit 1
fi
if ! grep -Eq "^name:[[:space:]]*['\"]?$skill_name['\"]?[[:space:]]*$" "$installed_skill"; then
echo "安装验证失败:frontmatter name 与 $skill_name 不一致" >&2
exit 1
fi
installed_root="$(dirname "$installed_skill")"
checked_count=0
for entry in SKILL.md agents references scripts assets; do
source_entry="$source_skill_directory/$entry"
[[ -e "$source_entry" ]] || continue
if [[ -f "$source_entry" ]]; then
source_files=("$source_entry")
else
source_files=()
while IFS= read -r source_file; do
source_files+=("$source_file")
done < <(find "$source_entry" -type f ! -name '.DS_Store' ! -name '*.pyc' -print)
fi
for source_file in "${source_files[@]}"; do
relative_path="${source_file#"$source_skill_directory/"}"
installed_file="$installed_root/$relative_path"
if [[ ! -f "$installed_file" ]]; then
echo "安装验证失败:缺少资源 $relative_path" >&2
exit 1
fi
if ! cmp -s "$source_file" "$installed_file"; then
echo "安装验证失败:资源内容不一致 $relative_path" >&2
exit 1
fi
checked_count=$((checked_count + 1))
done
done
echo "安装验证通过:${installed_skill}(已核对 ${checked_count} 个文件)"
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 |