namnam-skills 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/cli.js +544 -0
- package/src/conversation.js +447 -0
- package/src/indexer.js +793 -0
- package/src/templates/core/namnam.md +493 -237
- package/src/templates/platforms/AGENTS.md +47 -0
- package/src/templates/core/code-review.md +0 -70
- package/src/templates/core/git-commit.md +0 -57
- package/src/templates/core/git-push.md +0 -53
- package/src/templates/core/git-status.md +0 -48
- package/src/templates/core/validate-and-fix.md +0 -69
|
@@ -285,6 +285,53 @@ When using Cursor, Windsurf, Cline, or other agents:
|
|
|
285
285
|
- Reference previous work
|
|
286
286
|
- Store important context
|
|
287
287
|
|
|
288
|
+
### @conversation System
|
|
289
|
+
|
|
290
|
+
The project supports cross-conversation context via the `@conversation` feature.
|
|
291
|
+
|
|
292
|
+
#### Recognizing References
|
|
293
|
+
When users include `@conversation:<id>` in their messages:
|
|
294
|
+
```
|
|
295
|
+
Pattern: @conversation[:\s]+([a-zA-Z0-9_-]+)
|
|
296
|
+
Examples:
|
|
297
|
+
- @conversation:abc123
|
|
298
|
+
- @conversation abc123
|
|
299
|
+
- Based on @conversation:auth01, implement...
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
#### Loading Context
|
|
303
|
+
Load referenced conversation context:
|
|
304
|
+
```bash
|
|
305
|
+
# Get formatted context
|
|
306
|
+
namnam conv context <id>
|
|
307
|
+
|
|
308
|
+
# Or read directly from
|
|
309
|
+
.claude/conversations/<full-id>/context.md
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
#### Using Context
|
|
313
|
+
When conversation context is loaded:
|
|
314
|
+
1. Treat it as authoritative prior decisions
|
|
315
|
+
2. Build upon the context, don't contradict it
|
|
316
|
+
3. Reference specific points when relevant
|
|
317
|
+
4. Ask for clarification if context seems outdated
|
|
318
|
+
|
|
319
|
+
#### Saving Conversations
|
|
320
|
+
When a session contains important decisions, suggest saving:
|
|
321
|
+
```bash
|
|
322
|
+
namnam conv save -t "Title" -s "Brief summary"
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### Storage Location
|
|
326
|
+
```
|
|
327
|
+
.claude/conversations/
|
|
328
|
+
├── index.json # Conversation index
|
|
329
|
+
└── conv_xxx_yyy/ # Individual conversation
|
|
330
|
+
├── meta.json # Metadata
|
|
331
|
+
├── context.md # Loadable context
|
|
332
|
+
└── full.md # Full log (optional)
|
|
333
|
+
```
|
|
334
|
+
|
|
288
335
|
---
|
|
289
336
|
|
|
290
337
|
## Error Handling
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# /code-review - Multi-Aspect Code Review
|
|
2
|
-
|
|
3
|
-
> Comprehensive code review using parallel expert agents
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
/code-review
|
|
9
|
-
/code-review src/auth
|
|
10
|
-
/code-review --focus security
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Instructions
|
|
14
|
-
|
|
15
|
-
When the user invokes `/code-review`:
|
|
16
|
-
|
|
17
|
-
### Step 1: Identify Target
|
|
18
|
-
|
|
19
|
-
If no path provided, review recent changes:
|
|
20
|
-
```bash
|
|
21
|
-
git diff --name-only HEAD~1
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### Step 2: Spawn Review Agents
|
|
25
|
-
|
|
26
|
-
Run these in parallel:
|
|
27
|
-
|
|
28
|
-
| Agent | Focus |
|
|
29
|
-
|-------|-------|
|
|
30
|
-
| Architecture Reviewer | Design patterns, coupling |
|
|
31
|
-
| Code Quality Reviewer | Readability, duplication |
|
|
32
|
-
| Security Reviewer | Vulnerabilities, OWASP |
|
|
33
|
-
| Performance Reviewer | Bottlenecks, optimization |
|
|
34
|
-
| Testing Reviewer | Coverage, quality |
|
|
35
|
-
| Documentation Reviewer | Comments, API docs |
|
|
36
|
-
|
|
37
|
-
### Step 3: Aggregate Results
|
|
38
|
-
|
|
39
|
-
```markdown
|
|
40
|
-
## Code Review Report
|
|
41
|
-
|
|
42
|
-
### Summary
|
|
43
|
-
- **Files reviewed**: 12
|
|
44
|
-
- **Issues found**: 8
|
|
45
|
-
- **Severity**: 2 Critical, 3 High, 3 Medium
|
|
46
|
-
|
|
47
|
-
### Critical Issues 🔴
|
|
48
|
-
| File:Line | Issue | Recommendation |
|
|
49
|
-
|-----------|-------|----------------|
|
|
50
|
-
| auth.ts:42 | SQL injection risk | Use parameterized query |
|
|
51
|
-
|
|
52
|
-
### High Priority 🟡
|
|
53
|
-
| File:Line | Issue | Recommendation |
|
|
54
|
-
|-----------|-------|----------------|
|
|
55
|
-
| utils.ts:15 | No input validation | Add validation |
|
|
56
|
-
|
|
57
|
-
### Medium Priority 🟢
|
|
58
|
-
| File:Line | Issue | Recommendation |
|
|
59
|
-
|-----------|-------|----------------|
|
|
60
|
-
| form.tsx:88 | Missing error handling | Add try-catch |
|
|
61
|
-
|
|
62
|
-
### Strengths ✨
|
|
63
|
-
- Good separation of concerns
|
|
64
|
-
- Consistent naming conventions
|
|
65
|
-
|
|
66
|
-
### Recommendations
|
|
67
|
-
1. Address critical security issues immediately
|
|
68
|
-
2. Add input validation to all user inputs
|
|
69
|
-
3. Increase test coverage to 80%
|
|
70
|
-
```
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# /git:commit - Smart Git Commit
|
|
2
|
-
|
|
3
|
-
> Create intelligent git commits with conventional commit format
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
/git:commit
|
|
9
|
-
/git:commit fix login validation
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Instructions
|
|
13
|
-
|
|
14
|
-
When the user invokes `/git:commit`:
|
|
15
|
-
|
|
16
|
-
1. **Check git status**:
|
|
17
|
-
```bash
|
|
18
|
-
git status --porcelain
|
|
19
|
-
git diff --staged --stat
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
2. **If no staged changes**:
|
|
23
|
-
- Show modified/untracked files
|
|
24
|
-
- Ask what to stage
|
|
25
|
-
|
|
26
|
-
3. **Analyze changes**:
|
|
27
|
-
- Parse diff to understand changes
|
|
28
|
-
- Identify commit type: feat, fix, refactor, docs, test, chore
|
|
29
|
-
|
|
30
|
-
4. **Generate commit message**:
|
|
31
|
-
- Follow conventional commits: `<type>(<scope>): <subject>`
|
|
32
|
-
- Keep subject under 50 chars
|
|
33
|
-
- Add body for complex changes
|
|
34
|
-
|
|
35
|
-
5. **Execute**:
|
|
36
|
-
```bash
|
|
37
|
-
git commit -m "$(cat <<'EOF'
|
|
38
|
-
<type>(<scope>): <subject>
|
|
39
|
-
|
|
40
|
-
<body>
|
|
41
|
-
|
|
42
|
-
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
43
|
-
EOF
|
|
44
|
-
)"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Commit Types
|
|
48
|
-
|
|
49
|
-
| Type | When to use |
|
|
50
|
-
|------|-------------|
|
|
51
|
-
| `feat` | New feature |
|
|
52
|
-
| `fix` | Bug fix |
|
|
53
|
-
| `docs` | Documentation |
|
|
54
|
-
| `style` | Formatting |
|
|
55
|
-
| `refactor` | Code restructure |
|
|
56
|
-
| `test` | Tests |
|
|
57
|
-
| `chore` | Maintenance |
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# /git:push - Safe Git Push
|
|
2
|
-
|
|
3
|
-
> Push commits to remote with safety checks
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
/git:push
|
|
9
|
-
/git:push origin main
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Instructions
|
|
13
|
-
|
|
14
|
-
When the user invokes `/git:push`:
|
|
15
|
-
|
|
16
|
-
1. **Pre-push checks**:
|
|
17
|
-
```bash
|
|
18
|
-
git status
|
|
19
|
-
git log origin/HEAD..HEAD --oneline
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
2. **Safety validations**:
|
|
23
|
-
- Check if branch is protected
|
|
24
|
-
- Warn if pushing to main/master
|
|
25
|
-
- Check for uncommitted changes
|
|
26
|
-
|
|
27
|
-
3. **Execute push**:
|
|
28
|
-
```bash
|
|
29
|
-
git push -u origin <branch>
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
4. **Post-push summary**:
|
|
33
|
-
```markdown
|
|
34
|
-
## Push Complete
|
|
35
|
-
|
|
36
|
-
**Branch**: feature/auth → origin/feature/auth
|
|
37
|
-
**Commits pushed**: 3
|
|
38
|
-
|
|
39
|
-
### Commits
|
|
40
|
-
- abc123 feat(auth): add login
|
|
41
|
-
- def456 fix(auth): validate email
|
|
42
|
-
- ghi789 test(auth): add tests
|
|
43
|
-
|
|
44
|
-
### Next Steps
|
|
45
|
-
- Create PR: `gh pr create`
|
|
46
|
-
- Or use `/commit-push-pr` for full workflow
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Safety
|
|
50
|
-
|
|
51
|
-
- Never force push without explicit request
|
|
52
|
-
- Warn before pushing to protected branches
|
|
53
|
-
- Show what will be pushed before confirming
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# /git:status - Enhanced Git Status
|
|
2
|
-
|
|
3
|
-
> Intelligent git status with insights
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
/git:status
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Instructions
|
|
12
|
-
|
|
13
|
-
When the user invokes `/git:status`:
|
|
14
|
-
|
|
15
|
-
1. **Get status**:
|
|
16
|
-
```bash
|
|
17
|
-
git status
|
|
18
|
-
git diff --stat
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
2. **Analyze and present**:
|
|
22
|
-
```markdown
|
|
23
|
-
## Git Status
|
|
24
|
-
|
|
25
|
-
### Branch
|
|
26
|
-
**Current**: feature/auth
|
|
27
|
-
**Tracking**: origin/feature/auth (2 ahead, 1 behind)
|
|
28
|
-
|
|
29
|
-
### Changes
|
|
30
|
-
|
|
31
|
-
#### Staged (ready to commit)
|
|
32
|
-
- ✅ src/auth/login.ts (+42, -15)
|
|
33
|
-
- ✅ src/utils/validate.ts (+10, -2)
|
|
34
|
-
|
|
35
|
-
#### Modified (not staged)
|
|
36
|
-
- 📝 src/components/Form.tsx
|
|
37
|
-
- 📝 src/hooks/useAuth.ts
|
|
38
|
-
|
|
39
|
-
#### Untracked
|
|
40
|
-
- ❓ src/new-file.ts
|
|
41
|
-
- ❓ tests/auth.test.ts
|
|
42
|
-
|
|
43
|
-
### Suggestions
|
|
44
|
-
- Run `git add .` to stage all changes
|
|
45
|
-
- Run `/git:commit` to commit staged changes
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
3. **Provide actionable insights**
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# /validate-and-fix - Quality Checks & Auto-Fix
|
|
2
|
-
|
|
3
|
-
> Run quality checks and automatically fix issues
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
/validate-and-fix
|
|
9
|
-
/validate-and-fix --lint
|
|
10
|
-
/validate-and-fix --types
|
|
11
|
-
/validate-and-fix --all
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Instructions
|
|
15
|
-
|
|
16
|
-
When the user invokes `/validate-and-fix`:
|
|
17
|
-
|
|
18
|
-
### Step 1: Detect Project Type
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
ls package.json tsconfig.json .eslintrc* .prettierrc*
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### Step 2: Run Checks in Parallel
|
|
25
|
-
|
|
26
|
-
| Check | Command | Auto-fix |
|
|
27
|
-
|-------|---------|----------|
|
|
28
|
-
| Lint | `npm run lint` | `npm run lint -- --fix` |
|
|
29
|
-
| Types | `npx tsc --noEmit` | Manual fixes |
|
|
30
|
-
| Format | `npx prettier --check .` | `npx prettier --write .` |
|
|
31
|
-
| Tests | `npm test` | Manual fixes |
|
|
32
|
-
|
|
33
|
-
### Step 3: Auto-Fix What's Possible
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
# Fix linting
|
|
37
|
-
npm run lint -- --fix
|
|
38
|
-
|
|
39
|
-
# Fix formatting
|
|
40
|
-
npx prettier --write .
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Step 4: Report Results
|
|
44
|
-
|
|
45
|
-
```markdown
|
|
46
|
-
## Validation Results
|
|
47
|
-
|
|
48
|
-
### ✅ Passed
|
|
49
|
-
- Formatting (auto-fixed 5 files)
|
|
50
|
-
- Linting (auto-fixed 3 issues)
|
|
51
|
-
|
|
52
|
-
### ❌ Needs Manual Fix
|
|
53
|
-
| Type | File:Line | Issue |
|
|
54
|
-
|------|-----------|-------|
|
|
55
|
-
| TypeScript | api.ts:42 | Type 'string' not assignable |
|
|
56
|
-
| Test | auth.test.ts:15 | Expected true, got false |
|
|
57
|
-
|
|
58
|
-
### Summary
|
|
59
|
-
- **Auto-fixed**: 8 issues
|
|
60
|
-
- **Manual fixes needed**: 2 issues
|
|
61
|
-
|
|
62
|
-
### Next Steps
|
|
63
|
-
1. Fix TypeScript error in api.ts:42
|
|
64
|
-
2. Update failing test in auth.test.ts:15
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Step 5: Re-validate
|
|
68
|
-
|
|
69
|
-
Run checks again to confirm all issues resolved.
|