claude-termux 1.0.1 ā 2.0.0
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/bin/mcp-install.js +46 -0
- package/bin/skills-cli.js +722 -0
- 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/lib/skill-hooks.js +140 -0
- package/mcp.json +5 -0
- package/package.json +37 -10
- 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,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const https = require('https');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
|
|
7
|
+
const MCP_CONFIG_URL = 'https://raw.githubusercontent.com/zesbe/claude-mcp-config/main/mcp.json';
|
|
8
|
+
const HOME = os.homedir();
|
|
9
|
+
const MCP_PATH = path.join(HOME, '.mcp.json');
|
|
10
|
+
|
|
11
|
+
console.log('š ClaudeAll MCP Config Installer\n');
|
|
12
|
+
|
|
13
|
+
// Backup existing config
|
|
14
|
+
if (fs.existsSync(MCP_PATH)) {
|
|
15
|
+
const backup = `${MCP_PATH}.backup.${Date.now()}`;
|
|
16
|
+
fs.copyFileSync(MCP_PATH, backup);
|
|
17
|
+
console.log(`š¦ Backed up existing config to ${backup}`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Download MCP config
|
|
21
|
+
console.log('š„ Downloading MCP config...');
|
|
22
|
+
|
|
23
|
+
https.get(MCP_CONFIG_URL, (res) => {
|
|
24
|
+
let data = '';
|
|
25
|
+
res.on('data', chunk => data += chunk);
|
|
26
|
+
res.on('end', () => {
|
|
27
|
+
try {
|
|
28
|
+
// Validate JSON
|
|
29
|
+
JSON.parse(data);
|
|
30
|
+
fs.writeFileSync(MCP_PATH, data);
|
|
31
|
+
console.log(`ā
Installed MCP config to ${MCP_PATH}\n`);
|
|
32
|
+
|
|
33
|
+
const config = JSON.parse(data);
|
|
34
|
+
const servers = Object.keys(config.mcpServers || {});
|
|
35
|
+
console.log('MCP Servers installed:');
|
|
36
|
+
servers.forEach((s, i) => console.log(` ${i+1}. ${s}`));
|
|
37
|
+
console.log('\nš Run "claude" to start with MCP enabled!');
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.error('ā Invalid JSON response');
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}).on('error', (e) => {
|
|
44
|
+
console.error(`ā Download failed: ${e.message}`);
|
|
45
|
+
process.exit(1);
|
|
46
|
+
});
|