Skip to content

Commit 786857e

Browse files
authored
Merge pull request #830 from aRustyDev/pr/1-phases-6-7
refactor: Phases 6-7 — shared library modules + verb-first CLI
2 parents 69a06ca + 3fef661 commit 786857e

4,902 files changed

Lines changed: 6118 additions & 3456 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude-plugin/marketplace.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"plugins": [
88
{
99
"name": "homebrew-dev",
10-
"source": "./context/plugins/releases/homebrew-dev",
10+
"source": "./content/plugins/releases/homebrew-dev",
1111
"description": "Homebrew formula development toolkit — research packages, generate formulas from JSON schema, validate with brew audit/style, and batch-create formulas for a custom tap.",
1212
"version": "1.1.1",
1313
"author": {
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"name": "browser-extension-dev",
24-
"source": "./context/plugins/web/browser-extension-dev",
24+
"source": "./content/plugins/web/browser-extension-dev",
2525
"description": "Comprehensive end-to-end support for building, testing, and deploying cross-browser extensions across Firefox, Chrome, and Safari with modern patterns, WASM integration, and best practices.",
2626
"version": "0.3.3",
2727
"author": {
@@ -44,7 +44,7 @@
4444
},
4545
{
4646
"name": "blog-workflow",
47-
"source": "./context/plugins/blog-workflow",
47+
"source": "./content/plugins/blog-workflow",
4848
"description": "Multi-phase blog content creation with personas, templates, and iterative review. Supports tutorials, deep dives, research summaries, and development journals.",
4949
"version": "4.1.0",
5050
"author": {
@@ -67,7 +67,7 @@
6767
},
6868
{
6969
"name": "job-hunting",
70-
"source": "./context/plugins/job-hunting",
70+
"source": "./content/plugins/job-hunting",
7171
"description": "Comprehensive job hunting toolkit — analyze job descriptions, extract resume bullets from career history, identify skill gaps, tailor applications, and research employers with salary data.",
7272
"version": "0.1.3",
7373
"author": {
@@ -89,7 +89,7 @@
8989
},
9090
{
9191
"name": "swiftui-dev",
92-
"source": "./context/plugins/frontend/swiftui-dev",
92+
"source": "./content/plugins/frontend/swiftui-dev",
9393
"description": "Comprehensive SwiftUI development support for UI testing, integration testing, data-driven apps, and interactive development practices.",
9494
"version": "0.3.2",
9595
"author": {
@@ -113,7 +113,7 @@
113113
},
114114
{
115115
"name": "design-to-code",
116-
"source": "./context/plugins/frontend/design-to-code",
116+
"source": "./content/plugins/frontend/design-to-code",
117117
"description": "Bridge design tools and code generation, enabling seamless translation of design files into production-ready UI code across multiple frameworks.",
118118
"version": "0.1.5",
119119
"author": {

.claude/devrag.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"document_patterns": [
3-
"./context/agents/*.md",
4-
"./context/hooks/*.json",
5-
"./context/commands/*.md",
6-
"./context/output-styles/*.md",
7-
"./context/plugins/**/*.md",
8-
"./context/rules/**/*.md",
9-
"./context/skills/**/*.md",
3+
"./content/agents/*.md",
4+
"./content/hooks/*.json",
5+
"./content/commands/*.md",
6+
"./content/output-styles/*.md",
7+
"./content/plugins/**/*.md",
8+
"./content/rules/**/*.md",
9+
"./content/skills/**/*.md",
1010
"./docs/src/**/*.md"
1111
],
1212
"db_path": "./.data/devrag.db",

.claude/issues/hook-file-path-matcher.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Add a `files` field (glob or regex pattern) to hook configuration:
4141
```json
4242
{
4343
"matcher": "Write|Edit|MultiEdit",
44-
"files": "context/plugins/**/*.json",
44+
"files": "content/plugins/**/*.json",
4545
"hooks": [{
4646
"type": "command",
4747
"command": "cd cli && bun run bin/agents.ts plugin validate-all --quiet"
@@ -114,7 +114,7 @@ No one has filed a feature request specifically proposing a `files` glob field i
114114
```json
115115
{
116116
"matcher": "Write|Edit|MultiEdit",
117-
"files": "context/plugins/**/*.json",
117+
"files": "content/plugins/**/*.json",
118118
"hooks": [{ "type": "command", "command": "validate-plugins.sh" }]
119119
}
120120
```
@@ -135,7 +135,7 @@ No one has filed a feature request specifically proposing a `files` glob field i
135135
```json
136136
{
137137
"matcher": "Write|Edit|MultiEdit",
138-
"files": "context/plugins/.*\\.json$",
138+
"files": "content/plugins/.*\\.json$",
139139
"hooks": [{ "type": "command", "command": "validate-plugins.sh" }]
140140
}
141141
```
@@ -153,7 +153,7 @@ No one has filed a feature request specifically proposing a `files` glob field i
153153

154154
```json
155155
{
156-
"matcher": "Edit:context/plugins/.*\\.json$"
156+
"matcher": "Edit:content/plugins/.*\\.json$"
157157
}
158158
```
159159

@@ -173,7 +173,7 @@ No one has filed a feature request specifically proposing a `files` glob field i
173173
```json
174174
{
175175
"matcher": "Write|Edit|MultiEdit",
176-
"include": ["context/plugins/**/*.json", ".claude-plugin/**"],
176+
"include": ["content/plugins/**/*.json", ".claude-plugin/**"],
177177
"exclude": ["**/node_modules/**"],
178178
"hooks": [{ "type": "command", "command": "validate-plugins.sh" }]
179179
}
@@ -254,7 +254,7 @@ With Option A, each concern gets its own scoped hook:
254254
},
255255
{
256256
"matcher": "Write|Edit|MultiEdit",
257-
"files": "context/plugins/**/*.json",
257+
"files": "content/plugins/**/*.json",
258258
"hooks": [{ "command": "cli/bin/validate-plugin.sh" }]
259259
}
260260
```

.claude/plans/agents-cli/PLAN.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ related:
4343
| Metric | Current | Target | Gap |
4444
|--------|---------|--------|-----|
4545
| CLI location | `cli/` (flat) | `packages/cli/src/` | No src/test split, no workspace |
46-
| Content location | `context/` | `content/` | Naming mismatch |
46+
| Content location | `content/` | `content/` | Naming mismatch |
4747
| Dead directories | 7 | 0 | Cleanup needed |
4848
| CLI architecture | Noun-first (`skill.ts`: 2000+ lines) | Verb-first (13 command modules) | Full decomposition |
4949
| Component types | 4 implemented (skill, plugin, agent, mcp-server) | 11 (with placeholders) | 7 placeholders needed |
@@ -97,7 +97,7 @@ agents [-h, -y/--yes, --json, --output, --fail-on, --debug, --trace, -vvv]
9797
| phase-0 | Fix broken components/ recipes | planned | None | justfile |
9898
| phase-1 | Cleanup dead directories | planned | None | rm dirs, move models |
9999
| phase-2 | Move CLI to packages/cli with src/test split | planned | None | git mv, import rewrites |
100-
| phase-3 | Rename context/ → content/ + update ALL config | planned | None | rename + 34 config updates |
100+
| phase-3 | Rename content/ → content/ + update ALL config | planned | None | rename + 34 config updates |
101101
| phase-4 | Root workspace configuration | planned | phase-2 | root package.json, justfile |
102102
| phase-5 | Final verification (Part A) | planned | phase-0-4 | tests, hooks, docs |
103103
| **Part B: CLI Decomposition** | | | | |
@@ -121,7 +121,7 @@ agents [-h, -y/--yes, --json, --output, --fail-on, --debug, --trace, -vvv]
121121
| Risk | Likelihood | Impact | Mitigation |
122122
|------|-----------|--------|-----------|
123123
| Import paths break after src/test split | High | High | Systematic regex + test verification after each batch |
124-
| Pre-commit hooks break after context/ rename | Certain | High | Update all config in same commit as rename |
124+
| Pre-commit hooks break after content/ rename | Certain | High | Update all config in same commit as rename |
125125
| 2000+ line skill.ts decomposition introduces regressions | High | High | Extract one verb at a time, test after each |
126126
| Verb-first breaks existing `just agents skill ...` commands | Certain | Medium | Backward-compat aliases during transition |
127127
| Config file format bikeshedding | Low | Low | Start with TOML, match gitconfig patterns |
@@ -212,7 +212,7 @@ The justfile has 22 references to `components/` which doesn't exist.
212212
#### Task 0.1: Audit and fix components/ references
213213

214214
- [ ] Identify all components/ references: `grep -n 'components/' justfile`
215-
- [ ] Replace: `components/``context/` (will become `content/` in Phase 3)
215+
- [ ] Replace: `components/``content/` (will become `content/` in Phase 3)
216216
- [ ] Verify recipes work
217217
- [ ] Commit
218218

@@ -262,7 +262,7 @@ The justfile has 22 references to `components/` which doesn't exist.
262262

263263
---
264264

265-
### Phase 3: Rename context/ → content/ + Update ALL Config
265+
### Phase 3: Rename content/ → content/ + Update ALL Config
266266

267267
**MUST commit ALL config changes together with the rename.**
268268

@@ -277,8 +277,8 @@ The justfile has 22 references to `components/` which doesn't exist.
277277
- [ ] Update `CLAUDE.md`, `README.md`
278278
- [ ] Update `.mcp.json`
279279
- [ ] Update `content/rules/**/*.md` prose references
280-
- [ ] Update catalog path hardcodes in skill.ts (~10 occurrences of `context/skills/.catalog.ndjson`)
281-
- [ ] Verify no remaining `context/` references
280+
- [ ] Update catalog path hardcodes in skill.ts (~10 occurrences of `content/skills/.catalog.ndjson`)
281+
- [ ] Verify no remaining `content/` references
282282
- [ ] Run tests
283283

284284
---
@@ -303,7 +303,7 @@ The justfile has 22 references to `components/` which doesn't exist.
303303
- [ ] Full test suite passes
304304
- [ ] `just agents --help` works
305305
- [ ] Pre-commit hooks pass
306-
- [ ] Grep for stale paths: 0 refs to `.scripts/`, `cli/`, `context/`, `components/`
306+
- [ ] Grep for stale paths: 0 refs to `.scripts/`, `cli/`, `content/`, `components/`
307307
- [ ] Update CLAUDE.md directory structure
308308
- [ ] Update README.md
309309
- [ ] Update memory files

.claude/plans/agents-cli/ROADMAP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ status: draft
1515
| Fix broken components/ recipes | phase-0 | TBD | | patch |
1616
| Cleanup dead directories | phase-1 | TBD | | patch |
1717
| CLI to packages/cli with src/test | phase-2 | TBD | | minor |
18-
| Rename context/ → content/ | phase-3 | TBD | | minor |
18+
| Rename content/ → content/ | phase-3 | TBD | | minor |
1919
| Root workspace configuration | phase-4 | TBD | | minor |
2020
| Part A verification | phase-5 | TBD | ||
2121
| Shared library modules | phase-6 | TBD | | minor |
@@ -32,7 +32,7 @@ Issues to be created via `/beads:string` after plan approval.
3232
| This Plan | Other Plan | Constraint |
3333
|-----------|-----------|------------|
3434
| phase-7 (decomposition) | agents-refactor phases 1-4 | Refactor plan phases 1-4 implemented (beads closed), phase docs need status update. skill.ts processBatch refactored. Phase 7 must not start until refactor is fully verified. |
35-
| phase-5 (Part A done) | All other plans | All plans referencing `cli/` or `context/` paths break until Part A updates them |
35+
| phase-5 (Part A done) | All other plans | All plans referencing `cli/` or `content/` paths break until Part A updates them |
3636

3737
## Version Strategy
3838

.claude/plans/agents-refactor-mech-v-analyze-split/PLAN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Phase 3: analyzed skills → Sonnet agent (quality scoring, non-trivial only)
157157
{
158158
"source": "owner/repo",
159159
"skill": "skill-name",
160-
"discoveredPath": "context/skills/skill-name",
160+
"discoveredPath": "content/skills/skill-name",
161161
"lastSeenAt": "2026-03-23T...",
162162
"lastSeenHeadSha": "abc123",
163163
"movedFrom": "skills/old-name",

build/.gitkeep renamed to .claude/plans/arusty-dev/agents/concept-schema.md

File renamed without changes.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
arusty.dev:
3+
ai:
4+
- path: /ui/ctx/skills
5+
- path: /ui/ctx/plugins
6+
- path: /ui/ctx/styles
7+
- path: /ui/ctx/rules
8+
- path: /ui/ctx/agents
9+
- path: /ui/ctx/hooks
10+
- path: /ui/ctx/commands
11+
- path: /ui/mcp/
12+
- path: /ui/docs/
13+
- path: /api/v1
14+
- path: /mcp
15+
registry:
16+
- path: /ui
17+
description: User Interface
18+
children:
19+
- path: /mcp
20+
description: MCP server marketplace
21+
- path: /docs
22+
description: Site Docs
23+
- path: /oci
24+
description: Docker Container marketplace
25+
- path: /charts
26+
description: Helm Chart marketplace
27+
- path: /releases
28+
description: Release marketplace
29+
- path: /ai
30+
description: AI Context docs marketplace
31+
children:
32+
- path: /skills
33+
description: Agent Skills marketplace
34+
- path: /plugins
35+
description: Agent Plugin marketplace
36+
- path: /styles
37+
description: Agent Output Styles marketplace
38+
- path: /rules
39+
description: Agent Rules marketplace
40+
- path: /agents
41+
description: Agent Docs marketplace
42+
- path: /hooks
43+
description: AI Client Hooks marketplace
44+
- path: /commands
45+
description: Agent Commands marketplace
46+
- path: /api
47+
children:
48+
- path: /api/v1
49+
- path: /api/graphql
50+
- path: /mcp
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Desired Features
2+
3+
- Keyword lookup
4+
- Typesense Cloud | Meilisearch | Edgebased
5+
- Vector Search
6+
- Cloudflare Vectors
7+
- Graph Relationships
8+
- GraphQL
9+
- MCP
10+
- tool:check_account
11+
- tool:vector_query
12+
- tool:keyword_query
13+
- tool:search_query
14+
- tool:show_related
15+
- tool:list_archived
16+
- tool:check_document
17+
- tool:rag_*
18+
- Context Docs Analysis
19+
- Document Forking
20+
- Document Topics (Doc/Section/Paragraph/Sentence levels)
21+
- Document AST / Graph
22+
- What skills related to "X" exist?
23+
- Topic graphs
24+
- Document-Document relationship graphs
25+
- Document Scope Analysis
26+
- Document Prose Analysis
27+
- Document Formatting Analysis
28+
- Document Linting Scores per AI Coder Tool
29+
- Document historical analysis
30+
- Document sentiment analysis
31+
- Document BoW analysis
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
time:
3+
Sources:
4+
- https://a.currenttimeutc.com/mcp
5+
- https://www.pulsemcp.com/servers/mcpcentral-time
6+
- https://www.pulsemcp.com/servers/modelcontextprotocol-time
7+
- https://www.pulsemcp.com/servers/terminalman-timeserver
8+
- https://www.pulsemcp.com/servers/yokingma-time
9+
- https://www.pulsemcp.com/servers/pylogmon-time
10+
Wait:
11+
- sleep
12+
- wait
13+
Timezone:
14+
- list_timezones
15+
- get-current-timezone
16+
Timestamp:
17+
- get_utc_time
18+
- get-time-in-timezone
19+
- get_current_time(timezone); # IANA timezone name
20+
- current_time_multi # Show current time in multiple timezones at once
21+
Timezone Converter:
22+
- convert_timezone -- Convert a date/time from one timezone to another
23+
- list_timezones -- List common timezones with current UTC offsets
24+
- current_time_multi -- Show current time in multiple timezones at once
25+
- time_difference -- Calculate the time difference between two timezones
26+
Date Calculator:
27+
- date_add_subtract -- Add or subtract days, weeks, months, or years from a date
28+
- date_difference -- Calculate the difference between two dates in various units
29+
- business_days -- Count business days between dates or add business days to a date
30+
Cron Parser:
31+
- parse_cron -- Parse a cron expression into a human-readable description
32+
- cron_next_runs -- Calculate the next N execution times for a cron expression
33+
- validate_cron -- Validate a cron expression and explain any errors
34+
- generate_cron -- Generate a cron expression from a human-readable description
35+
Timestamp Converter:
36+
- timestamp_to_date -- Convert Unix timestamp (seconds or milliseconds) to readable formats
37+
- date_to_timestamp -- Convert a date/time string to Unix timestamps
38+
- current_timestamp -- Get the current Unix timestamp and formatted date/time
39+
Duration Formatter:
40+
- format_duration -- Convert seconds to human-readable duration (e.g. 2h 30m 15s)
41+
- parse_duration -- Parse a human-readable duration string to seconds
42+
- time_ago -- Calculate relative time description (e.g. "5 minutes ago")
43+
- countdown -- Calculate time remaining until a target date/time
44+
utils:
45+
formatters:
46+
- https://www.pulsemcp.com/servers/zeparhyfar-mcp-datetime
47+
encoding:
48+
- encode(data,scheme,[id]) # QR
49+
- decode(data,scheme,[id]) # QR
50+
crypto:
51+
- uuid(data,version)
52+
- hash(data,algo)
53+
network:
54+
- check_connectivity() # Ping, Traceroute, SpeedTest, etc
55+
- geolocate()
56+
weather:
57+
- get_weather()
58+
convert:
59+
- convert_color_code() # Hex, CYMA, RGB conversion
60+
- convert_data_format() # JSON, XML, YAML, SQL, TOML, Markdown ↔ HTML
61+
regex:
62+
- test_regex()
63+
prettify:
64+
- json
65+
math:
66+
- calculate()
67+
json:
68+
- compare_json()
69+
- minify_json()
70+
- format_json()
71+
- prettify_json()

0 commit comments

Comments
 (0)