From 688b6f6f4d438cbac01b833f457707c4a6a02987 Mon Sep 17 00:00:00 2001 From: Baiheng Xie <874256269@qq.com> Date: Mon, 2 Feb 2026 15:53:16 +0800 Subject: [PATCH 1/2] fix: correct structure for claude to auto discover --- .../skills/{backend-patterns.md => backend-patterns/SKILL.md} | 0 .../skills/{pytest-patterns.md => pytest-patterns/SKILL.md} | 0 CLAUDE.md | 4 +--- 3 files changed, 1 insertion(+), 3 deletions(-) rename .claude/skills/{backend-patterns.md => backend-patterns/SKILL.md} (100%) rename .claude/skills/{pytest-patterns.md => pytest-patterns/SKILL.md} (100%) diff --git a/.claude/skills/backend-patterns.md b/.claude/skills/backend-patterns/SKILL.md similarity index 100% rename from .claude/skills/backend-patterns.md rename to .claude/skills/backend-patterns/SKILL.md diff --git a/.claude/skills/pytest-patterns.md b/.claude/skills/pytest-patterns/SKILL.md similarity index 100% rename from .claude/skills/pytest-patterns.md rename to .claude/skills/pytest-patterns/SKILL.md diff --git a/CLAUDE.md b/CLAUDE.md index 8df78d6..c542631 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,9 +7,7 @@ This file provides guidance to Claude Code when working with code in this reposi Claude Code uses configuration files in `.claude/` directory: - **Rules**: [@.claude/rules.md](/.claude/rules.md) (Always loaded) -- **Skills**: Available task-specific workflows (load on-demand via `.claude/skills/`) - - `backend-patterns` - DDD, caching, auth, error handling - - `pytest-patterns` - Testing guidelines +- **Skills**: Available task-specific workflows (auto-discovered via `.claude/skills/*/SKILL.md` and `.claude/commands/*.md`) - **Agents**: Subagent configurations (spawn when needed via `.claude/agents/`) - `code-reviewer` - Code review criteria - `planner` - Planning workflow From c8b57f9506fac2d6cad7b97c0a157eb0213ec766 Mon Sep 17 00:00:00 2001 From: Baiheng Xie <874256269@qq.com> Date: Mon, 2 Feb 2026 15:54:31 +0800 Subject: [PATCH 2/2] feat: add metadata for backend and pytest patterns skills --- .claude/skills/backend-patterns/SKILL.md | 5 +++++ .claude/skills/pytest-patterns/SKILL.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.claude/skills/backend-patterns/SKILL.md b/.claude/skills/backend-patterns/SKILL.md index 00262cb..17a6d0d 100644 --- a/.claude/skills/backend-patterns/SKILL.md +++ b/.claude/skills/backend-patterns/SKILL.md @@ -1,3 +1,8 @@ +--- +name: backend-patterns +description: DDD structure, caching, auth, error handling, and common backend patterns +--- + # Backend Patterns ## Architecture diff --git a/.claude/skills/pytest-patterns/SKILL.md b/.claude/skills/pytest-patterns/SKILL.md index d67a5fd..bdf120a 100644 --- a/.claude/skills/pytest-patterns/SKILL.md +++ b/.claude/skills/pytest-patterns/SKILL.md @@ -1,3 +1,8 @@ +--- +name: pytest-patterns +description: Testing guidelines, fixtures, markers, and pytest best practices +--- + # Pytest Patterns ## Running Tests