Skip to content

Commit 2fb4d4f

Browse files
authored
Feature/native mcp server 3 (#27)
1 parent 0eab4b7 commit 2fb4d4f

31 files changed

Lines changed: 532 additions & 1641 deletions

.claude/HOOKS-CONFIG.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ This document explains how to enable all the custom hooks created for this proje
1111
| quality-gate.sh | `.claude/hooks/quality-gate.sh` | Stop | Blocks completion if Go code fails checks |
1212
| subagent-review.sh | `.claude/hooks/subagent-review.sh` | SubagentStop | Blocks if subagent finds critical issues |
1313
| pre-compact.sh | `.claude/hooks/pre-compact.sh` | PreCompact | Warns before context compaction |
14-
| context-injector.sh | `.claude/hooks/context-injector.sh` | UserPromptSubmit | Injects contextual reminders |
1514
| file-size-check.sh | `.claude/hooks/file-size-check.sh` | PreToolUse (Write) | Blocks Go files >600 lines, warns >500 |
1615
| auto-format.sh | `.claude/hooks/auto-format.sh` | PostToolUse (Edit) | Auto-runs gofmt on edited Go files |
1716

@@ -56,14 +55,6 @@ Add to your Claude Code `settings.json`:
5655
]
5756
}
5857
],
59-
"UserPromptSubmit": [
60-
{
61-
"matcher": "*",
62-
"hooks": [
63-
{ "type": "command", "command": ".claude/hooks/context-injector.sh" }
64-
]
65-
}
66-
],
6758
"PreToolUse": [
6859
{
6960
"matcher": "Write",
@@ -132,21 +123,6 @@ Create `.claude/settings.json` in your project root (same as Option 2).
132123

133124
**Never blocks:** Always exits 0
134125

135-
### context-injector.sh (UserPromptSubmit Hook)
136-
137-
**Purpose:** Injects relevant contextual reminders based on prompt.
138-
139-
**Triggers on keywords:**
140-
- test, spec, coverage → Testing reminder
141-
- security, auth, credential → Security reminder
142-
- api, endpoint, nylas → API v3 reminder
143-
- playwright, e2e, browser → Playwright selector reminder
144-
- css, style, frontend → CSS patterns reminder
145-
- commit, push, pr → Git rules reminder
146-
- split, large file → File size reminder
147-
148-
**Never blocks:** Always exits 0
149-
150126
### file-size-check.sh (PreToolUse Hook for Write)
151127

152128
**Purpose:** Enforces file size limits before writing Go files.
@@ -196,16 +172,6 @@ CLAUDE_TOOL_OUTPUT="Task completed" bash .claude/hooks/subagent-review.sh
196172
CLAUDE_TOOL_OUTPUT="CRITICAL: error found" bash .claude/hooks/subagent-review.sh
197173
```
198174

199-
### Test context-injector.sh
200-
201-
```bash
202-
# Test testing context
203-
CLAUDE_USER_PROMPT="write a test for this" bash .claude/hooks/context-injector.sh
204-
205-
# Test security context
206-
CLAUDE_USER_PROMPT="add authentication" bash .claude/hooks/context-injector.sh
207-
```
208-
209175
### Test file-size-check.sh
210176

211177
```bash

.claude/README.md

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ This directory contains skills, workflows, rules, agents, and shared patterns fo
99
```
1010
.claude/
1111
├── commands/ # 18 actionable skills (invokable workflows)
12-
├── rules/ # 6 development rules (auto-applied)
12+
├── rules/ # 2 development rules (auto-applied)
1313
├── agents/ # 6 specialized agents
14-
├── hooks/ # 4 quality gate hooks
14+
├── hooks/ # 3 quality gate hooks
1515
├── shared/patterns/ # 3 reusable pattern files
1616
├── settings.json # Security hooks & permissions
1717
├── HOOKS-CONFIG.md # Hook configuration guide
@@ -67,16 +67,12 @@ This directory contains skills, workflows, rules, agents, and shared patterns fo
6767

6868
---
6969

70-
## Rules (6 Files)
70+
## Rules (2 Files)
7171

7272
| Rule | Purpose | Applies To |
7373
|------|---------|-----------|
74-
| `testing.md` | Testing requirements & patterns | All new code |
75-
| `go-quality.md` | Go linting + best practices | All Go code |
76-
| `file-size-limits.md` | 500-line file limit | All files |
77-
| `documentation-maintenance.md` | Doc update requirements | Code + doc changes |
78-
| `git-commits.local.md` | Commit message rules | Git operations |
79-
| `go-cache-cleanup.local.md` | Go cache cleanup | Build issues |
74+
| `testing.md` | Test coverage targets & commands | All new code |
75+
| `go-quality.md` | Go workflow & error handling | All Go code |
8076

8177
---
8278

@@ -93,14 +89,13 @@ This directory contains skills, workflows, rules, agents, and shared patterns fo
9389

9490
---
9591

96-
## Hooks (4 Quality Gates)
92+
## Hooks (3 Quality Gates)
9793

9894
| Hook | Trigger | Purpose |
9995
|------|---------|---------|
10096
| `quality-gate.sh` | Stop | Block on quality failures |
101-
| `subagent-review.sh` | SubagentStop | Block on critical issues |
102-
| `pre-compact.sh` | PreCompact | Warn before compaction |
103-
| `context-injector.sh` | UserPromptSubmit | Inject context reminders |
97+
| `file-size-check.sh` | PreToolUse (Write) | Block Go files >600 lines |
98+
| `auto-format.sh` | PostToolUse (Edit) | Auto-format Go files |
10499

105100
---
106101

@@ -157,7 +152,6 @@ Credentials from `nylas auth config` are stored in system keyring under service
157152

158153
## Related Documentation
159154

160-
- **Quick Start:** [`CLAUDE-QUICKSTART.md`](../CLAUDE-QUICKSTART.md)
161155
- **Main Guide:** [`CLAUDE.md`](../CLAUDE.md)
162156
- **Hook Setup:** [`HOOKS-CONFIG.md`](HOOKS-CONFIG.md)
163157
- **Architecture:** [`docs/ARCHITECTURE.md`](../docs/ARCHITECTURE.md)
@@ -167,8 +161,8 @@ Credentials from `nylas auth config` are stored in system keyring under service
167161
## Metrics
168162

169163
- **Total Skills:** 18
170-
- **Total Rules:** 6
164+
- **Total Rules:** 2
171165
- **Total Agents:** 6
172-
- **Total Hooks:** 4
166+
- **Total Hooks:** 3
173167
- **Shared Patterns:** 3
174-
- **Last Updated:** December 30, 2024
168+
- **Last Updated:** February 27, 2026

.claude/commands/update-docs.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,22 @@
22

33
Auto-detect code changes and update relevant documentation files.
44

5-
**See also:** `.claude/rules/documentation-maintenance.md` for documentation rules.
6-
75
Context: $ARGUMENTS
86

7+
## Documentation Mapping
8+
9+
**If you changed code, update docs:**
10+
11+
| Change | Update |
12+
|--------|--------|
13+
| New CLI command | docs/COMMANDS.md, CLAUDE.md |
14+
| New test structure | docs/DEVELOPMENT.md |
15+
| Architecture change | docs/ARCHITECTURE.md |
16+
| Security change | docs/security/overview.md |
17+
| Timezone/calendar | docs/commands/timezone.md |
18+
19+
**Ignore:** `local/*.md` (temporary/historical)
20+
921
## Instructions
1022

1123
1. **Detect what changed**

.claude/hooks/context-injector.sh

Lines changed: 0 additions & 44 deletions
This file was deleted.

.claude/rules/README.md

Lines changed: 0 additions & 58 deletions
This file was deleted.

.claude/rules/documentation-maintenance.md

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)