diff --git a/CLAUDE.md b/CLAUDE.md index 3405de9..2c93d0d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,7 +33,7 @@ for f in skills/*/SKILL.md; do head -5 "$f" | grep -q "^name:" && echo "ok: $f" # Version consistency: SKILL.md must match marketplace.json for skill in check design health hunt learn read think write; do - skill_ver=$(grep "version:" "skills/$skill/SKILL.md" | tr -d '"' | awk '{print $2}') + skill_ver=$(grep -m1 "version:" "skills/$skill/SKILL.md" | tr -d '"' | awk '{print $2}') market_ver=$(python3 -c "import json; d=json.load(open('.claude-plugin/marketplace.json')); print([p['version'] for p in d['plugins'] if p['name']=='$skill'][0])") [ "$skill_ver" = "$market_ver" ] && echo "ok: $skill $skill_ver" || echo "MISMATCH: $skill SKILL=$skill_ver MARKET=$market_ver" done diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..503d8bf --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Tw93 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/skills/check/scripts/check-destructive.sh b/skills/check/scripts/check-destructive.sh index 1712897..1cdc294 100755 --- a/skills/check/scripts/check-destructive.sh +++ b/skills/check/scripts/check-destructive.sh @@ -16,12 +16,12 @@ DESTRUCTIVE_PATTERNS=( 'TRUNCATE ' '--no-verify' 'git reset --hard' - 'git checkout \.' + 'git checkout .' 'git clean -f' ) for pattern in "${DESTRUCTIVE_PATTERNS[@]}"; do - if echo "$INPUT" | grep -qF "$pattern"; then + if echo "$INPUT" | grep -qF -- "$pattern"; then echo "BLOCK: Destructive command detected during /check review: $pattern" >&2 echo "Confirm with user before proceeding." >&2 exit 2 diff --git a/skills/read/SKILL.md b/skills/read/SKILL.md index 1302a45..ac9ea87 100644 --- a/skills/read/SKILL.md +++ b/skills/read/SKILL.md @@ -14,6 +14,7 @@ Convert any URL or local PDF to clean Markdown and save it. | Input | Method | |-------|--------| | `feishu.cn`, `larksuite.com` | Feishu API script | +| `mp.weixin.qq.com` | WeChat article script (Playwright fallback) | | `.pdf` URL or local PDF path | PDF extraction | | Everything else | Run `scripts/fetch.sh {url}` (proxy cascade with auto-fallback) |