claude-termux 1.0.1 → 1.0.3
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/TERMUX.md +15 -183
- package/commands/clean.md +69 -0
- package/commands/commit-openagents.md +131 -0
- package/commands/indexes.md +32 -0
- package/commands/worktrees.md +87 -0
- package/commands/writing-plans.md +13 -0
- package/context/README.md +27 -0
- package/mcp.json +5 -0
- package/package.json +5 -5
- package/postinstall.js +91 -115
- package/skills/agents-md-generator/SKILL.md +71 -0
- package/skills/artifacts-builder/SKILL.md +74 -0
- package/skills/backend-dev/SKILL.md +101 -0
- package/skills/browser/SKILL.md +64 -0
- package/skills/changelog-generator/SKILL.md +79 -0
- package/skills/code-refactoring/SKILL.md +209 -0
- package/skills/database-design/SKILL.md +99 -0
- package/skills/frontend-ui-integration/SKILL.md +61 -0
- package/skills/javascript-typescript/SKILL.md +111 -0
- package/skills/python-development/SKILL.md +118 -0
- package/skills/skill-creator/SKILL.md +88 -0
- package/skills/ui-ux-pro-max/SKILL.md +86 -0
- package/GEMINI.md +0 -20
- package/README.md +0 -149
- package/install.sh +0 -210
- package/settings.json +0 -27
package/TERMUX.md
CHANGED
|
@@ -1,204 +1,36 @@
|
|
|
1
|
-
# Claude Termux -
|
|
1
|
+
# Claude Termux - Android Configuration
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Claude Code & Gemini CLI configuration optimized for Termux Android.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
### Via NPM (Recommended)
|
|
8
|
-
|
|
9
7
|
```bash
|
|
10
8
|
npm install -g claude-termux
|
|
11
9
|
```
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
curl -fsSL https://raw.githubusercontent.com/zesbe/termux-config/main/install.sh | bash
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Manual Installation
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
git clone https://github.com/zesbe/termux-config.git
|
|
23
|
-
cd termux-config
|
|
24
|
-
./install.sh
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Prerequisites
|
|
28
|
-
|
|
29
|
-
Pastikan sudah install Claude Code dan/atau Gemini CLI:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
# Claude Code
|
|
33
|
-
npm install -g @anthropic-ai/claude-code
|
|
34
|
-
|
|
35
|
-
# Gemini CLI
|
|
36
|
-
npm install -g @google/gemini-cli
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## What Gets Installed
|
|
40
|
-
|
|
41
|
-
### Claude Code (`~/.claude/`)
|
|
42
|
-
|
|
43
|
-
| Component | Path |
|
|
44
|
-
|-----------|------|
|
|
45
|
-
| Home | `/data/data/com.termux/files/home/.claude/` |
|
|
46
|
-
| Main Config | `/data/data/com.termux/files/home/.claude.json` |
|
|
47
|
-
| Settings | `/data/data/com.termux/files/home/.claude/settings.local.json` |
|
|
48
|
-
| Plugins | `/data/data/com.termux/files/home/.claude/plugins/` |
|
|
49
|
-
| Global Instructions | `/data/data/com.termux/files/home/.claude/CLAUDE.md` |
|
|
50
|
-
| MCP Config | `/data/data/com.termux/files/home/.mcp.json` |
|
|
51
|
-
|
|
52
|
-
### Gemini CLI (`~/.gemini/`)
|
|
53
|
-
|
|
54
|
-
| Component | Path |
|
|
55
|
-
|-----------|------|
|
|
56
|
-
| Home | `/data/data/com.termux/files/home/.gemini/` |
|
|
57
|
-
| Superpowers | `/data/data/com.termux/files/home/.gemini/superpowers/` |
|
|
58
|
-
| Settings | `/data/data/com.termux/files/home/.gemini/settings.json` |
|
|
59
|
-
| MCP Config | `/data/data/com.termux/files/home/.gemini/mcp.json` |
|
|
60
|
-
| Instructions | `/data/data/com.termux/files/home/.gemini/GEMINI.md` |
|
|
61
|
-
|
|
62
|
-
## Features
|
|
63
|
-
|
|
64
|
-
### Agents (14)
|
|
65
|
-
- `proactive-mode` - Autonomous execution without permission prompts
|
|
66
|
-
- `code-generator` - Generate boilerplate and scaffolding
|
|
67
|
-
- `code-reviewer` - Review code against standards
|
|
68
|
-
- `security-auditor` - Security vulnerability analysis
|
|
69
|
-
- `test-generator` - Generate test suites
|
|
70
|
-
- `doc-generator` - Generate documentation
|
|
71
|
-
- `api-tester` - API testing (functional, load, security)
|
|
72
|
-
- `performance-analyzer` - Performance optimization
|
|
73
|
-
- `accessibility-reviewer` - Accessibility compliance
|
|
74
|
-
- `component-generator` - UI component generation
|
|
75
|
-
- `migration-generator` - Database migration scripts
|
|
76
|
-
- `readme-generator` - README documentation
|
|
77
|
-
- `terraform-generator` - Infrastructure as code
|
|
78
|
-
- `ai-prompt-optimizer` - Optimize AI prompts
|
|
11
|
+
## What's Included
|
|
79
12
|
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
- `test-driven-development` - TDD methodology
|
|
85
|
-
- `systematic-debugging` - Debug methodology
|
|
86
|
-
- `code-quality` - Code review and refactoring
|
|
87
|
-
- `error-handling` - Exception handling patterns
|
|
88
|
-
- `brainstorming` - Design ideation
|
|
89
|
-
- `writing-plans` - Implementation planning
|
|
90
|
-
- `executing-plans` - Plan execution
|
|
91
|
-
- And many more...
|
|
13
|
+
- **14 Agents** - proactive-mode, code-generator, security-auditor, etc.
|
|
14
|
+
- **48 Skills** - database-design, ui-ux-pro-max, systematic-debugging, etc.
|
|
15
|
+
- **8 Commands** - /brainstorm, /write-plan, /execute-plan, /clean, /worktrees, etc.
|
|
16
|
+
- **7 MCP Servers** - context7, exa, memory, filesystem, fetch, sequential-thinking, web-reader
|
|
92
17
|
|
|
93
|
-
|
|
94
|
-
- `/brainstorm` - Interactive design refinement
|
|
95
|
-
- `/write-plan` - Create implementation plans
|
|
96
|
-
- `/execute-plan` - Execute plans with checkpoints
|
|
18
|
+
## Termux Paths
|
|
97
19
|
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
- `sequential-thinking` - Step-by-step reasoning
|
|
102
|
-
- `memory` - Knowledge graph persistence
|
|
103
|
-
- `filesystem` - File system access
|
|
104
|
-
- `fetch` - Web fetching
|
|
20
|
+
Files are installed to:
|
|
21
|
+
- Claude: `/data/data/com.termux/files/home/.claude/`
|
|
22
|
+
- Gemini: `/data/data/com.termux/files/home/.gemini/`
|
|
105
23
|
|
|
106
24
|
## Bypass Permissions
|
|
107
25
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### Claude Code
|
|
111
|
-
```bash
|
|
112
|
-
# Bypass mode enabled in settings.local.json
|
|
113
|
-
claude --dangerously-skip-permissions
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
### Gemini CLI
|
|
117
|
-
```bash
|
|
118
|
-
# YOLO mode enabled in settings.json
|
|
119
|
-
gemini --yolo
|
|
120
|
-
# atau
|
|
121
|
-
gemini --approval-mode=yolo
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
## Termux-Specific Notes
|
|
26
|
+
Auto-approve is enabled by default via `settings.local.json`.
|
|
125
27
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
| Standard Linux | Termux Android |
|
|
129
|
-
|----------------|----------------|
|
|
130
|
-
| `~/.claude/` | `/data/data/com.termux/files/home/.claude/` |
|
|
131
|
-
| `~/.gemini/` | `/data/data/com.termux/files/home/.gemini/` |
|
|
132
|
-
| `/home/user/` | `/data/data/com.termux/files/home/` |
|
|
133
|
-
|
|
134
|
-
### SSH Access from Laptop
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
# Start SSH server in Termux
|
|
138
|
-
sshd
|
|
139
|
-
|
|
140
|
-
# From laptop
|
|
141
|
-
ssh -p 8022 user@phone-ip
|
|
142
|
-
|
|
143
|
-
# Copy file
|
|
144
|
-
scp -P 8022 local-file user@phone-ip:/data/data/com.termux/files/home/
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### Storage Access
|
|
28
|
+
## Update
|
|
148
29
|
|
|
149
30
|
```bash
|
|
150
|
-
# Grant storage permission
|
|
151
|
-
termux-setup-storage
|
|
152
|
-
|
|
153
|
-
# Access internal storage
|
|
154
|
-
ls ~/storage/shared/
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
## Updating
|
|
158
|
-
|
|
159
|
-
```bash
|
|
160
|
-
# NPM
|
|
161
31
|
npm update -g claude-termux
|
|
162
|
-
|
|
163
|
-
# curl
|
|
164
|
-
curl -fsSL https://raw.githubusercontent.com/zesbe/termux-config/main/install.sh | bash
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Troubleshooting
|
|
168
|
-
|
|
169
|
-
### Claude not finding config
|
|
170
|
-
```bash
|
|
171
|
-
# Check if config exists
|
|
172
|
-
ls -la ~/.claude/
|
|
173
|
-
cat ~/.claude/settings.local.json
|
|
174
|
-
|
|
175
|
-
# Reinstall
|
|
176
|
-
npm uninstall -g claude-termux
|
|
177
|
-
npm install -g claude-termux
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
### Gemini not finding superpowers
|
|
181
|
-
```bash
|
|
182
|
-
# Check superpowers directory
|
|
183
|
-
ls -la ~/.gemini/superpowers/
|
|
184
|
-
|
|
185
|
-
# Verify settings
|
|
186
|
-
cat ~/.gemini/settings.json
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
### MCP servers not loading
|
|
190
|
-
```bash
|
|
191
|
-
# Check MCP config
|
|
192
|
-
cat ~/.mcp.json # for Claude
|
|
193
|
-
cat ~/.gemini/mcp.json # for Gemini
|
|
194
|
-
|
|
195
|
-
# Restart terminal
|
|
196
|
-
exit
|
|
197
|
-
# Open new Termux session
|
|
198
32
|
```
|
|
199
33
|
|
|
200
|
-
##
|
|
34
|
+
## Source
|
|
201
35
|
|
|
202
|
-
|
|
203
|
-
- Issues: https://github.com/zesbe/termux-config/issues
|
|
204
|
-
- NPM: https://www.npmjs.com/package/claude-termux
|
|
36
|
+
https://github.com/zesbe/ClaudeAll
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Clean the codebase or current working task in focus via Prettier, Import Sorter, ESLint, and TypeScript Compiler
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Code Quality Cleanup
|
|
6
|
+
|
|
7
|
+
You are a code quality specialist. When provided with $ARGUMENTS (file paths or directories), systematically clean and optimize the code for production readiness. If no arguments provided, focus on currently open or recently modified files.
|
|
8
|
+
|
|
9
|
+
## Your Cleanup Process:
|
|
10
|
+
|
|
11
|
+
**Step 1: Analyze Target Scope**
|
|
12
|
+
- If $ARGUMENTS provided: Focus on specified files/directories
|
|
13
|
+
- If no arguments: Check git status for modified files and currently open files
|
|
14
|
+
- Identify file types and applicable cleanup tools
|
|
15
|
+
|
|
16
|
+
**Step 2: Execute Cleanup Pipeline**
|
|
17
|
+
Perform these actions in order:
|
|
18
|
+
|
|
19
|
+
1. **Remove Debug Code**
|
|
20
|
+
- Strip console.log, debugger statements, and temporary debugging code
|
|
21
|
+
- Remove commented-out code blocks
|
|
22
|
+
- Clean up development-only imports
|
|
23
|
+
|
|
24
|
+
2. **Format Code Structure**
|
|
25
|
+
- Run Prettier (if available) or apply consistent formatting
|
|
26
|
+
- Ensure proper indentation and spacing
|
|
27
|
+
- Standardize quote usage and trailing commas
|
|
28
|
+
|
|
29
|
+
3. **Optimize Imports**
|
|
30
|
+
- Sort imports alphabetically
|
|
31
|
+
- Remove unused imports
|
|
32
|
+
- Group imports by type (libraries, local files)
|
|
33
|
+
- Use absolute imports where configured
|
|
34
|
+
|
|
35
|
+
4. **Fix Linting Issues**
|
|
36
|
+
- Resolve ESLint/TSLint errors and warnings
|
|
37
|
+
- Apply auto-fixable rules
|
|
38
|
+
- Report manual fixes needed
|
|
39
|
+
|
|
40
|
+
5. **Type Safety Validation**
|
|
41
|
+
- Run TypeScript compiler checks
|
|
42
|
+
- Fix obvious type issues
|
|
43
|
+
- Add missing type annotations where beneficial
|
|
44
|
+
|
|
45
|
+
6. **Comment Optimization**
|
|
46
|
+
- Remove redundant or obvious comments
|
|
47
|
+
- Improve unclear comments
|
|
48
|
+
- Ensure JSDoc/docstring completeness for public APIs
|
|
49
|
+
|
|
50
|
+
**Step 3: Present Cleanup Report**
|
|
51
|
+
|
|
52
|
+
## Cleanup Results
|
|
53
|
+
|
|
54
|
+
### Files Processed
|
|
55
|
+
- [List of files that were cleaned]
|
|
56
|
+
|
|
57
|
+
### Actions Taken
|
|
58
|
+
- **Debug Code Removed**: [Number of console.logs, debuggers removed]
|
|
59
|
+
- **Formatting Applied**: [Files formatted]
|
|
60
|
+
- **Imports Optimized**: [Unused imports removed, sorting applied]
|
|
61
|
+
- **Linting Issues Fixed**: [Auto-fixed issues count]
|
|
62
|
+
- **Type Issues Resolved**: [TypeScript errors fixed]
|
|
63
|
+
- **Comments Improved**: [Redundant comments removed, unclear ones improved]
|
|
64
|
+
|
|
65
|
+
### Manual Actions Needed
|
|
66
|
+
- [List any issues that require manual intervention]
|
|
67
|
+
|
|
68
|
+
### Quality Improvements
|
|
69
|
+
- [Summary of overall code quality improvements made]
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Smart commit command with automatic validation and conventional commits
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Smart Commit Command
|
|
6
|
+
|
|
7
|
+
You are an AI agent that helps create well-formatted git commits. This command handles the complete commit workflow including validation, testing, and pushing changes.
|
|
8
|
+
|
|
9
|
+
## Instructions for Agent
|
|
10
|
+
|
|
11
|
+
When the user runs this command, execute the following workflow:
|
|
12
|
+
|
|
13
|
+
### 1. **Smart Repo Analysis (Automatic)**
|
|
14
|
+
|
|
15
|
+
**Before doing anything, analyze the repo state:**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Check current branch and status
|
|
19
|
+
git status
|
|
20
|
+
git branch --show-current
|
|
21
|
+
|
|
22
|
+
# Check recent commits for style
|
|
23
|
+
git log --oneline -5
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### 2. **Analyze Changes**
|
|
27
|
+
- Run `git status` to see all untracked files
|
|
28
|
+
- Run `git diff` to see both staged and unstaged changes
|
|
29
|
+
- Run `git log --oneline -5` to see recent commit style
|
|
30
|
+
- Identify the scope of changes
|
|
31
|
+
|
|
32
|
+
### 3. **Stage Files Intelligently**
|
|
33
|
+
**Auto-stage based on change type:**
|
|
34
|
+
- If modifying agents → stage `agents/`
|
|
35
|
+
- If modifying skills → stage `skills/`
|
|
36
|
+
- If modifying commands → stage `commands/`
|
|
37
|
+
- If modifying context → stage `context/`
|
|
38
|
+
- If modifying hooks → stage `hooks/`
|
|
39
|
+
- If modifying docs → stage `docs/`
|
|
40
|
+
- If modifying CI/CD → stage `.github/workflows/`
|
|
41
|
+
- If user provides specific files → stage only those
|
|
42
|
+
|
|
43
|
+
**Never auto-stage:**
|
|
44
|
+
- `node_modules/`
|
|
45
|
+
- `.env` files
|
|
46
|
+
- Temporary directories
|
|
47
|
+
|
|
48
|
+
### 4. **Generate Commit Message**
|
|
49
|
+
|
|
50
|
+
**Follow Conventional Commits (NO EMOJIS):**
|
|
51
|
+
```
|
|
52
|
+
<type>(<scope>): <description>
|
|
53
|
+
|
|
54
|
+
[optional body]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Types:**
|
|
58
|
+
- `feat` - New features
|
|
59
|
+
- `fix` - Bug fixes
|
|
60
|
+
- `refactor` - Code restructuring
|
|
61
|
+
- `test` - Test additions
|
|
62
|
+
- `docs` - Documentation updates
|
|
63
|
+
- `chore` - Maintenance tasks
|
|
64
|
+
- `ci` - CI/CD changes
|
|
65
|
+
- `perf` - Performance improvements
|
|
66
|
+
|
|
67
|
+
**Scopes:**
|
|
68
|
+
- `agents` - Agent changes
|
|
69
|
+
- `skills` - Skill changes
|
|
70
|
+
- `commands` - Command changes
|
|
71
|
+
- `context` - Context file changes
|
|
72
|
+
- `hooks` - Hook changes
|
|
73
|
+
- `mcp` - MCP server changes
|
|
74
|
+
- `docs` - Documentation changes
|
|
75
|
+
|
|
76
|
+
**Examples:**
|
|
77
|
+
```
|
|
78
|
+
feat(agents): add new code-generator agent
|
|
79
|
+
fix(skills): correct brainstorming skill logic
|
|
80
|
+
refactor(commands): split commit command into modules
|
|
81
|
+
docs(readme): update installation instructions
|
|
82
|
+
chore(deps): upgrade dependencies
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### 5. **Execute Commit**
|
|
86
|
+
```bash
|
|
87
|
+
git add <relevant-files>
|
|
88
|
+
git commit -m "<type>(<scope>): <description>"
|
|
89
|
+
git status # Verify commit succeeded
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 6. **Post-Commit Actions**
|
|
93
|
+
|
|
94
|
+
**Ask user:**
|
|
95
|
+
```
|
|
96
|
+
✅ Commit created: <commit-hash>
|
|
97
|
+
📝 Message: <commit-message>
|
|
98
|
+
|
|
99
|
+
Would you like to:
|
|
100
|
+
1. Push to remote (git push origin <branch>)
|
|
101
|
+
2. Create another commit
|
|
102
|
+
3. Done
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Error Handling
|
|
106
|
+
|
|
107
|
+
### If No Changes Detected
|
|
108
|
+
```
|
|
109
|
+
ℹ️ No changes to commit. Working tree is clean.
|
|
110
|
+
|
|
111
|
+
Recent commits:
|
|
112
|
+
<git log --oneline -3>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### If Merge Conflicts
|
|
116
|
+
```
|
|
117
|
+
⚠️ Merge conflicts detected. Please resolve conflicts first.
|
|
118
|
+
|
|
119
|
+
Conflicted files:
|
|
120
|
+
<list-files>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Success Criteria
|
|
124
|
+
|
|
125
|
+
A successful commit should:
|
|
126
|
+
- ✅ Follow conventional commit format (NO EMOJIS)
|
|
127
|
+
- ✅ Have appropriate scope
|
|
128
|
+
- ✅ Be atomic (single purpose)
|
|
129
|
+
- ✅ Have clear, concise message
|
|
130
|
+
- ✅ Not include sensitive information
|
|
131
|
+
- ✅ Not include generated files
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Analyze database queries and recommend missing indexes
|
|
3
|
+
argument-hint: Optional - specific tables or queries to analyze
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Database Index Analysis
|
|
7
|
+
|
|
8
|
+
**Scope:** `$ARGUMENTS` (or entire codebase if not specified)
|
|
9
|
+
|
|
10
|
+
Scan whole codebase and tell me what indexes are missing.
|
|
11
|
+
|
|
12
|
+
## 📚 **DOCUMENTATION REQUIREMENTS**
|
|
13
|
+
|
|
14
|
+
**Create comprehensive database analysis documentation at:**
|
|
15
|
+
- `docs/tasks/backend/DD-MM-YYYY/<semantic-db-id>/`
|
|
16
|
+
|
|
17
|
+
**Documentation Structure:**
|
|
18
|
+
- `README.md` - Database analysis overview and objectives
|
|
19
|
+
- `query-analysis.md` - Detailed query performance analysis
|
|
20
|
+
- `index-recommendations.md` - Missing indexes and impact analysis
|
|
21
|
+
- `performance-metrics.md` - Before/after performance comparisons
|
|
22
|
+
- `implementation-plan.md` - Index creation strategy and migration plan
|
|
23
|
+
- `monitoring-setup.md` - Performance monitoring and alerting
|
|
24
|
+
|
|
25
|
+
**Semantic Database Task ID Examples:**
|
|
26
|
+
- `user-query-optimization`
|
|
27
|
+
- `order-performance-indexes`
|
|
28
|
+
- `search-query-acceleration`
|
|
29
|
+
- `relationship-index-analysis`
|
|
30
|
+
- `slow-query-investigation`
|
|
31
|
+
|
|
32
|
+
Please analyze all database queries, identify missing indexes, and document recommendations according to the standards above.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Manage git worktrees for parallel development workflows
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Git Worktree Management
|
|
6
|
+
|
|
7
|
+
You are a git workflow specialist. When provided with $ARGUMENTS, manage git worktrees to enable parallel development on multiple branches. Common arguments: "create", "list", "cleanup", or specific branch names.
|
|
8
|
+
|
|
9
|
+
## Your Worktree Management Process:
|
|
10
|
+
|
|
11
|
+
**Step 1: Assess Current State**
|
|
12
|
+
- Check if git worktrees are already in use with `git worktree list`
|
|
13
|
+
- Verify GitHub CLI is available and authenticated for PR operations
|
|
14
|
+
- Identify the main repository directory structure
|
|
15
|
+
- Check for existing `./tree` directory or similar worktree organization
|
|
16
|
+
|
|
17
|
+
**Step 2: Execute Worktree Operations**
|
|
18
|
+
|
|
19
|
+
### Create Worktrees for All Open PRs
|
|
20
|
+
When $ARGUMENTS includes "prs" or "all":
|
|
21
|
+
1. Run `gh pr list --json headRefName,title,number` to get open PRs
|
|
22
|
+
2. For each PR branch:
|
|
23
|
+
- Create directory structure: `./tree/[branch-name]`
|
|
24
|
+
- Execute `git worktree add ./tree/[branch-name] [branch-name]`
|
|
25
|
+
- Handle branch names with slashes by creating nested directories
|
|
26
|
+
3. Report successful worktree creation
|
|
27
|
+
|
|
28
|
+
### Create Worktree for Specific Branch
|
|
29
|
+
When $ARGUMENTS specifies a branch name:
|
|
30
|
+
1. Check if branch exists locally or remotely
|
|
31
|
+
2. Create worktree at `./tree/[branch-name]`
|
|
32
|
+
3. If branch doesn't exist, offer to create it with `git worktree add -b [branch-name] ./tree/[branch-name]`
|
|
33
|
+
|
|
34
|
+
### Create New Branch with Worktree
|
|
35
|
+
When $ARGUMENTS includes "new" and a branch name:
|
|
36
|
+
1. Prompt for base branch (default: main/master)
|
|
37
|
+
2. Create new branch and worktree simultaneously
|
|
38
|
+
3. Set up proper tracking if needed
|
|
39
|
+
|
|
40
|
+
### List and Status Check
|
|
41
|
+
When $ARGUMENTS includes "list" or "status":
|
|
42
|
+
1. Show all current worktrees with `git worktree list`
|
|
43
|
+
2. Check status of each worktree
|
|
44
|
+
3. Identify any stale or problematic worktrees
|
|
45
|
+
|
|
46
|
+
### Cleanup Operations
|
|
47
|
+
When $ARGUMENTS includes "cleanup":
|
|
48
|
+
1. Identify branches that no longer exist remotely
|
|
49
|
+
2. Remove corresponding worktrees safely
|
|
50
|
+
3. Clean up empty directories in `./tree`
|
|
51
|
+
|
|
52
|
+
**Step 3: Present Worktree Report**
|
|
53
|
+
|
|
54
|
+
## Worktree Management Results
|
|
55
|
+
|
|
56
|
+
### Operation Summary
|
|
57
|
+
- **Command**: [What operation was performed]
|
|
58
|
+
- **Target**: [Specific branches or "all open PRs"]
|
|
59
|
+
- **Location**: [Worktree directory structure used]
|
|
60
|
+
|
|
61
|
+
### Active Worktrees
|
|
62
|
+
```
|
|
63
|
+
[List of active worktrees with format:]
|
|
64
|
+
/path/to/main/repo [main branch] (main repository)
|
|
65
|
+
/path/to/tree/feature-123 [feature-123] (worktree)
|
|
66
|
+
/path/to/tree/bugfix-456 [bugfix-456] (worktree)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Actions Completed
|
|
70
|
+
- **Created**: [Number of new worktrees created]
|
|
71
|
+
- **Removed**: [Number of stale worktrees cleaned up]
|
|
72
|
+
- **Skipped**: [Worktrees that already existed]
|
|
73
|
+
|
|
74
|
+
### Directory Structure
|
|
75
|
+
```
|
|
76
|
+
project/
|
|
77
|
+
├── main repository files
|
|
78
|
+
└── tree/
|
|
79
|
+
├── feature-branch-1/
|
|
80
|
+
├── feature-branch-2/
|
|
81
|
+
└── bugfix-branch/
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Next Steps
|
|
85
|
+
- **To work on a branch**: `cd tree/[branch-name]`
|
|
86
|
+
- **To switch branches**: Use different worktree directories
|
|
87
|
+
- **To clean up later**: Use `/worktrees cleanup` command
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create a detailed implementation plan
|
|
3
|
+
argument-hint: [design-doc-path]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Write Implementation Plan
|
|
7
|
+
|
|
8
|
+
**User Input:** $ARGUMENTS
|
|
9
|
+
|
|
10
|
+
**Instructions:**
|
|
11
|
+
1. **Target:** I want to create a detailed implementation plan.
|
|
12
|
+
2. **Action:** Please **invoke/use the `writing-plans` skill** immediately.
|
|
13
|
+
3. Refer to the design document or requirements in "$ARGUMENTS" (if provided).
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Context Files
|
|
2
|
+
|
|
3
|
+
Context files provide domain knowledge, process documentation, and templates that agents can reference.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
context/
|
|
9
|
+
├── core/ # Core system knowledge
|
|
10
|
+
├── development/ # Development practices and patterns
|
|
11
|
+
├── data/ # Data handling and processing
|
|
12
|
+
├── content/ # Content creation guidelines
|
|
13
|
+
├── project/ # Project management context
|
|
14
|
+
├── ui/ # UI/UX design patterns
|
|
15
|
+
└── templates/ # Reusable templates
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
Agents automatically load relevant context based on the task type. You can also explicitly reference context files in prompts.
|
|
21
|
+
|
|
22
|
+
## Adding Context
|
|
23
|
+
|
|
24
|
+
1. Create a new .md file in the appropriate subdirectory
|
|
25
|
+
2. Follow the standard format with frontmatter
|
|
26
|
+
3. Keep files focused (50-200 lines)
|
|
27
|
+
4. Include examples where helpful
|
package/mcp.json
CHANGED
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"fetch": {
|
|
30
30
|
"command": "npx",
|
|
31
31
|
"args": ["-y", "@wordbricks/fetch-mcp@latest"]
|
|
32
|
+
},
|
|
33
|
+
"web-reader": {
|
|
34
|
+
"command": "npx",
|
|
35
|
+
"args": ["-y", "@modelcontextprotocol/server-web-reader"],
|
|
36
|
+
"description": "Read and convert web content to LLM-friendly format"
|
|
32
37
|
}
|
|
33
38
|
}
|
|
34
39
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-termux",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Claude Code & Gemini CLI configuration for Termux Android - agents, skills, commands, MCP servers",
|
|
5
5
|
"main": "postinstall.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node postinstall.js"
|
|
8
8
|
},
|
|
9
|
-
"bin": {},
|
|
10
9
|
"keywords": [
|
|
11
10
|
"claude",
|
|
12
11
|
"claude-code",
|
|
@@ -24,16 +23,17 @@
|
|
|
24
23
|
"license": "MIT",
|
|
25
24
|
"repository": {
|
|
26
25
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/zesbe/
|
|
26
|
+
"url": "git+https://github.com/zesbe/ClaudeAll.git"
|
|
28
27
|
},
|
|
29
28
|
"bugs": {
|
|
30
|
-
"url": "https://github.com/zesbe/
|
|
29
|
+
"url": "https://github.com/zesbe/ClaudeAll/issues"
|
|
31
30
|
},
|
|
32
|
-
"homepage": "https://github.com/zesbe/
|
|
31
|
+
"homepage": "https://github.com/zesbe/ClaudeAll#readme",
|
|
33
32
|
"files": [
|
|
34
33
|
"agents/**",
|
|
35
34
|
"skills/**",
|
|
36
35
|
"commands/**",
|
|
36
|
+
"context/**",
|
|
37
37
|
"hooks/**",
|
|
38
38
|
"plugins/**",
|
|
39
39
|
"lib/**",
|