Skip to content

Commit 89e0689

Browse files
committed
docs: update skill docs with new directory paths
new-module/SKILL.md: claw/tools/ -> claw/services/tools/, claw/claw_init.c -> claw/init.c platform-port/SKILL.md: include/claw_board.h -> include/platform/board.h sync-docs/SKILL.md: claw/tools/* -> claw/services/tools/* Signed-off-by: Chao Liu <chao.liu.zevorn@gmail.com>
1 parent ff4ab9e commit 89e0689

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.claude/skills/new-module/SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Format: `<type> <name> [description]`
2323
## Context
2424

2525
- Existing services: !`ls claw/services/`
26-
- Existing tools: !`ls claw/tools/*.c 2>/dev/null`
26+
- Existing tools: !`ls claw/services/tools/*.c 2>/dev/null`
2727
- Existing drivers: !`ls -d drivers/*/ 2>/dev/null`
2828
- Meson options: !`head -60 meson_options.txt`
29-
- Init registration: !`grep -n 'service_start\|register' claw/claw_init.c | head -20`
29+
- Init registration: !`grep -n 'service_start\|register' claw/init.c | head -20`
3030

3131
## Module Architecture Reference
3232

@@ -50,7 +50,7 @@ Based on existing services (ai, net, swarm, im):
5050
- Conditional compilation via feature option
5151
- Add source files to `claw_sources`
5252

53-
4. **Registration** (`claw/claw_init.c`):
53+
4. **Registration** (`claw/init.c`):
5454
- `#include` the header (guarded by feature macro)
5555
- Call `<name>_init()` in `claw_init()`
5656

@@ -66,11 +66,11 @@ Based on existing drivers (net/espressif, audio/espressif, display/espressif):
6666
3. Thin wrapper around vendor SDK, exposing clean API
6767
4. No business logic — hardware abstraction only
6868

69-
### Tool Module Pattern (claw/tools/)
69+
### Tool Module Pattern (claw/services/tools/)
7070

7171
Based on existing Tool Use framework:
7272

73-
1. **Source** (`claw/tools/tool_<name>.c`)
73+
1. **Source** (`claw/services/tools/<name>.c`)
7474
2. Register via `CLAW_TOOL_REGISTER()` macro
7575
3. Declare capabilities with `SWARM_CAP_*` flags
7676
4. Implement `tool_<name>_execute()` callback
@@ -99,7 +99,7 @@ Apply project code style:
9999

100100
### Step 4: Register in init
101101

102-
Add the module initialization call to `claw/claw_init.c`, guarded by the feature macro.
102+
Add the module initialization call to `claw/init.c`, guarded by the feature macro.
103103

104104
### Step 5: Verify build
105105

.claude/skills/platform-port/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Format: `<platform-name> [rtos]`
2222

2323
- Existing platforms: !`ls -d platform/*/`
2424
- OSAL backends: !`ls osal/`
25-
- Board abstraction: !`head -40 include/claw_board.h 2>/dev/null`
25+
- Board abstraction: !`head -40 include/platform/board.h 2>/dev/null`
2626
- Cross-file examples: !`ls platform/*/cross.ini 2>/dev/null; ls scripts/gen-*-cross.py 2>/dev/null`
2727

2828
## Platform Architecture Reference

.claude/skills/sync-docs/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ docs/
5656

5757
Read the git diff to determine which subsystems were affected:
5858
- `claw/services/*` → update architecture.md service descriptions
59-
- `claw/tools/*` → update tool-extension.md
59+
- `claw/services/tools/*` → update tool-extension.md
6060
- `platform/*` → update usage.md build/run/flash sections
6161
- `include/*` → update API references
6262
- `osal/*` → update architecture.md OSAL section

0 commit comments

Comments
 (0)