Skip to content

chore(skills): reorganize for npx skills compatibility#102

Merged
allmonday merged 2 commits into
masterfrom
chore/skills-npx-compat
Jul 6, 2026
Merged

chore(skills): reorganize for npx skills compatibility#102
allmonday merged 2 commits into
masterfrom
chore/skills-npx-compat

Conversation

@allmonday

Copy link
Copy Markdown
Collaborator

摘要

  • skill/ 迁移到 skills/nexusx-4phase/,符合 npx skills 的扫描约定(识别 skills/<name>/SKILL.md
  • template/ 添加独立 .gitignore,让 skill 生成的新项目自带 Python / venv / 缓存忽略规则,无需继承仓库根的 .gitignore
  • SKILL.md 中所有相对路径引用(phases/spec-management.mdtemplate/)保持有效,无需改动

迁移后,任何人都可以通过以下命令安装此 skill:

# Claude Code 项目级安装
npx skills add KLR-Pattern/nexusx -s nexusx-4phase -a claude-code

# 全局安装
npx skills add KLR-Pattern/nexusx -s nexusx-4phase -a claude-code -g

# 不安装直接用
npx skills use KLR-Pattern/nexusx --skill nexusx-4phase --agent claude-code

Test plan

  • npx skills add ./ --list 能识别 nexusx-4phase
  • npx skills add ./ -a claude-code -s nexusx-4phase -y 安装到 .claude/skills/ 成功
  • 重启 Claude Code 后 /nexusx-4phase skill 正常加载
  • 用 skill 生成的新项目能正确忽略 .venv/__pycache__/.pytest_cache/

🤖 Generated with Claude Code

allmonday and others added 2 commits July 6, 2026 11:52
- Move skill/ → skills/nexusx-4phase/ to match `npx skills` discovery
  conventions (it scans skills/<name>/SKILL.md).
- Add template/.gitignore so generated projects ignore .venv, __pycache__,
  .pytest_cache without inheriting from repo root.

All in-skill relative paths (phases/, spec-management.md, template/)
remain valid after the move. Enables:
  npx skills add KLR-Pattern/nexusx -s nexusx-4phase -a claude-code

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Follow-up to the skill/ → skills/nexusx-4phase/ migration. The CI
template-guard and docs still referenced the old skill/template path,
causing CI to fail on PR #102.

Updated references in:
- .github/workflows/ci.yml (template-guard job)
- scripts/check-ci.sh (local CI mirror)
- docs/clean-architecture-comparison.md / .zh.md (path + install command)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@allmonday allmonday merged commit 618c262 into master Jul 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant