anchi-kit 1.2.0 → 1.2.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.
Files changed (80) hide show
  1. package/.antigravity/skills/article-extractor/SKILL.md +52 -0
  2. package/.antigravity/skills/artifacts-builder/SKILL.md +63 -0
  3. package/.antigravity/skills/aws-deployment/SKILL.md +85 -0
  4. package/.antigravity/skills/brainstorming/SKILL.md +73 -0
  5. package/.antigravity/skills/canvas-design/SKILL.md +62 -0
  6. package/.antigravity/skills/changelog-generator/SKILL.md +149 -0
  7. package/.antigravity/skills/changelog-generator/assets/changelog-template.md +60 -0
  8. package/.antigravity/skills/changelog-generator/scripts/generate-changelog.js +181 -0
  9. package/.antigravity/skills/claude-code/references/advanced-features.md +399 -0
  10. package/.antigravity/skills/claude-code/references/agent-skills.md +399 -0
  11. package/.antigravity/skills/claude-code/references/api-reference.md +498 -0
  12. package/.antigravity/skills/claude-code/references/best-practices.md +447 -0
  13. package/.antigravity/skills/claude-code/references/cicd-integration.md +428 -0
  14. package/.antigravity/skills/claude-code/references/common-workflows.md +119 -0
  15. package/.antigravity/skills/claude-code/references/configuration.md +480 -0
  16. package/.antigravity/skills/claude-code/references/enterprise-features.md +472 -0
  17. package/.antigravity/skills/claude-code/references/getting-started.md +252 -0
  18. package/.antigravity/skills/claude-code/references/hooks-and-plugins.md +444 -0
  19. package/.antigravity/skills/claude-code/references/hooks-comprehensive.md +622 -0
  20. package/.antigravity/skills/claude-code/references/ide-integration.md +316 -0
  21. package/.antigravity/skills/claude-code/references/mcp-integration.md +386 -0
  22. package/.antigravity/skills/claude-code/references/slash-commands.md +489 -0
  23. package/.antigravity/skills/claude-code/references/troubleshooting.md +456 -0
  24. package/.antigravity/skills/claude-code/skill.md +60 -0
  25. package/.antigravity/skills/code-quality/SKILL.md +273 -0
  26. package/.antigravity/skills/comprehensive-review/complexity.md +11 -0
  27. package/.antigravity/skills/comprehensive-review/index.yaml +19 -0
  28. package/.antigravity/skills/comprehensive-review/maintainability.md +12 -0
  29. package/.antigravity/skills/comprehensive-review/readability.md +12 -0
  30. package/.antigravity/skills/content-research-writer/SKILL.md +65 -0
  31. package/.antigravity/skills/csv-data-analyzer/SKILL.md +91 -0
  32. package/.antigravity/skills/d3-visualization/SKILL.md +65 -0
  33. package/.antigravity/skills/debugging/references/root-cause-analysis-methods.md +140 -0
  34. package/.antigravity/skills/engineering-discipline/incremental-change.md +15 -0
  35. package/.antigravity/skills/engineering-discipline/index.yaml +30 -0
  36. package/.antigravity/skills/engineering-discipline/planning-first.md +18 -0
  37. package/.antigravity/skills/engineering-discipline/reasoning-clarity.md +19 -0
  38. package/.antigravity/skills/engineering-discipline/verify-before-commit.md +17 -0
  39. package/.antigravity/skills/file-organizer/SKILL.md +64 -0
  40. package/.antigravity/skills/git-automation/SKILL.md +68 -0
  41. package/.antigravity/skills/git-automation/references/branch-finishing.md +64 -0
  42. package/.antigravity/skills/impact-scoring/SKILL.md +219 -0
  43. package/.antigravity/skills/kaizen/SKILL.md +94 -0
  44. package/.antigravity/skills/performance-patterns/SKILL.md +209 -0
  45. package/.antigravity/skills/playwright-testing/SKILL.md +115 -0
  46. package/.antigravity/skills/playwright-testing/references/playwright-patterns.md +122 -0
  47. package/.antigravity/skills/prompt-engineering/SKILL.md +126 -0
  48. package/.antigravity/skills/prompt-engineering/references/anthropic-best-practices.md +160 -0
  49. package/.antigravity/skills/pypict-testing/SKILL.md +79 -0
  50. package/.antigravity/skills/review-implementing/SKILL.md +287 -0
  51. package/.antigravity/skills/security-audit/SKILL.md +263 -0
  52. package/.antigravity/skills/software-architecture/SKILL.md +91 -0
  53. package/.antigravity/skills/software-architecture/references/solid-principles.md +293 -0
  54. package/.antigravity/skills/subagent-driven-development/SKILL.md +237 -0
  55. package/.antigravity/skills/test-driven-development/SKILL.md +130 -0
  56. package/.antigravity/skills/test-driven-development/references/tdd-patterns.md +124 -0
  57. package/.antigravity/skills/test-driven-development/references/testing-strategies.md +131 -0
  58. package/.antigravity/skills/test-fixing/SKILL.md +256 -0
  59. package/.antigravity/skills/theme-factory/SKILL.md +63 -0
  60. package/.antigravity/workflows/clean.md +333 -0
  61. package/.antigravity/workflows/health.md +228 -0
  62. package/.cursor/skills/_packs/common/pack-architecture.md +40 -0
  63. package/.cursor/skills/_packs/common/pack-devops.md +43 -0
  64. package/.cursor/skills/_packs/common/pack-productivity.md +37 -0
  65. package/.cursor/skills/_packs/common/pack-quality.md +41 -0
  66. package/.cursor/skills/_packs/data/pack-ai.md +41 -0
  67. package/.cursor/skills/_packs/data/pack-data-science.md +36 -0
  68. package/.cursor/skills/_packs/mobile/pack-mobile.md +40 -0
  69. package/.cursor/skills/_packs/web/pack-backend.md +61 -0
  70. package/.cursor/skills/_packs/web/pack-frontend.md +66 -0
  71. package/.cursor/skills/_packs/web3/pack-blockchain.md +37 -0
  72. package/.cursor/skills/advanced-coding/references/getting-started.md +93 -0
  73. package/.cursor/skills/advanced-coding/skill.md +34 -0
  74. package/.cursor/skills/template-skill/SKILL.md +6 -0
  75. package/README.md +1 -1
  76. package/docs/reference/SECURITY.md +1 -1
  77. package/package.json +2 -2
  78. package/src/cli.js +5 -5
  79. package/src/commands/dashboard.js +3 -3
  80. package/src/commands/init.js +15 -3
@@ -0,0 +1,456 @@
1
+ # Troubleshooting
2
+
3
+ Common issues, debugging, and solutions for Cursor.
4
+
5
+ ## Authentication Issues
6
+
7
+ ### API Key Not Recognized
8
+
9
+ **Symptoms:**
10
+ - "Invalid API key" errors
11
+ - Authentication failures
12
+ - 401 Unauthorized responses
13
+
14
+ **Solutions:**
15
+
16
+ ```bash
17
+ # Verify API key is set
18
+ echo $ANTHROPIC_API_KEY
19
+
20
+ # Re-login
21
+ claude logout
22
+ claude login
23
+
24
+ # Check API key format (should start with sk-ant-)
25
+ echo $ANTHROPIC_API_KEY | grep "^sk-ant-"
26
+
27
+ # Test API key directly
28
+ curl https://api.anthropic.com/v1/messages \
29
+ -H "x-api-key: $ANTHROPIC_API_KEY" \
30
+ -H "anthropic-version: 2023-06-01" \
31
+ -H "content-type: application/json" \
32
+ -d '{"model":"claude-sonnet-4-5-20250929","max_tokens":10,"messages":[{"role":"user","content":"hi"}]}'
33
+ ```
34
+
35
+ ### Environment Variable Issues
36
+
37
+ ```bash
38
+ # Add to shell profile
39
+ echo 'export ANTHROPIC_API_KEY=sk-ant-xxxxx' >> ~/.bashrc
40
+ source ~/.bashrc
41
+
42
+ # Or use .env file
43
+ echo 'ANTHROPIC_API_KEY=sk-ant-xxxxx' > .cursor/.env
44
+
45
+ # Verify it's loaded
46
+ claude config get apiKey
47
+ ```
48
+
49
+ ## Installation Problems
50
+
51
+ ### npm Installation Failures
52
+
53
+ ```bash
54
+ # Clear npm cache
55
+ npm cache clean --force
56
+
57
+ # Remove and reinstall
58
+ npm uninstall -g @anthropic-ai/claude-code
59
+ npm install -g @anthropic-ai/claude-code
60
+
61
+ # Use specific version
62
+ npm install -g @anthropic-ai/claude-code@1.0.0
63
+
64
+ # Check installation
65
+ which claude
66
+ claude --version
67
+ ```
68
+
69
+ ### Permission Errors
70
+
71
+ ```bash
72
+ # Fix permissions on Unix/Mac
73
+ sudo chown -R $USER ~/.cursor
74
+ chmod -R 755 ~/.cursor
75
+
76
+ # Or install without sudo (using nvm)
77
+ nvm install 18
78
+ npm install -g @anthropic-ai/claude-code
79
+ ```
80
+
81
+ ### Python Installation Issues
82
+
83
+ ```bash
84
+ # Upgrade pip
85
+ pip install --upgrade pip
86
+
87
+ # Install in virtual environment
88
+ python -m venv claude-env
89
+ source claude-env/bin/activate
90
+ pip install claude-code
91
+
92
+ # Install with --user flag
93
+ pip install --user claude-code
94
+ ```
95
+
96
+ ## Connection & Network Issues
97
+
98
+ ### Proxy Configuration
99
+
100
+ ```bash
101
+ # Set proxy environment variables
102
+ export HTTP_PROXY=http://proxy.company.com:8080
103
+ export HTTPS_PROXY=http://proxy.company.com:8080
104
+ export NO_PROXY=localhost,127.0.0.1
105
+
106
+ # Configure in settings
107
+ claude config set proxy http://proxy.company.com:8080
108
+
109
+ # Test connection
110
+ curl -x $HTTP_PROXY https://api.anthropic.com
111
+ ```
112
+
113
+ ### SSL/TLS Errors
114
+
115
+ ```bash
116
+ # Trust custom CA certificate
117
+ export NODE_EXTRA_CA_CERTS=/path/to/ca-bundle.crt
118
+
119
+ # Disable SSL verification (not recommended for production)
120
+ export NODE_TLS_REJECT_UNAUTHORIZED=0
121
+
122
+ # Update ca-certificates
123
+ sudo update-ca-certificates # Debian/Ubuntu
124
+ sudo update-ca-trust # RHEL/CentOS
125
+ ```
126
+
127
+ ### Firewall Issues
128
+
129
+ ```bash
130
+ # Check connectivity to Anthropic API
131
+ ping api.anthropic.com
132
+ telnet api.anthropic.com 443
133
+
134
+ # Test HTTPS connection
135
+ curl -v https://api.anthropic.com
136
+
137
+ # Check firewall rules
138
+ sudo iptables -L # Linux
139
+ netsh advfirewall show allprofiles # Windows
140
+ ```
141
+
142
+ ## MCP Server Problems
143
+
144
+ ### Server Not Starting
145
+
146
+ ```bash
147
+ # Test MCP server command manually
148
+ npx -y @modelcontextprotocol/server-filesystem /tmp
149
+
150
+ # Check server logs
151
+ cat ~/.cursor/logs/mcp-*.log
152
+
153
+ # Verify environment variables
154
+ echo $GITHUB_TOKEN # For GitHub MCP
155
+
156
+ # Test with MCP Inspector
157
+ npx @modelcontextprotocol/inspector
158
+ ```
159
+
160
+ ### Connection Timeouts
161
+
162
+ ```json
163
+ {
164
+ "mcpServers": {
165
+ "my-server": {
166
+ "command": "npx",
167
+ "args": ["-y", "@modelcontextprotocol/server-example"],
168
+ "timeout": 30000,
169
+ "retries": 3
170
+ }
171
+ }
172
+ }
173
+ ```
174
+
175
+ ### Permission Denied
176
+
177
+ ```bash
178
+ # Check file permissions
179
+ ls -la /path/to/mcp/server
180
+
181
+ # Make executable
182
+ chmod +x /path/to/mcp/server
183
+
184
+ # Check directory access
185
+ ls -ld /path/to/allowed/directory
186
+ ```
187
+
188
+ ## Performance Issues
189
+
190
+ ### Slow Responses
191
+
192
+ **Check network latency:**
193
+ ```bash
194
+ ping api.anthropic.com
195
+ ```
196
+
197
+ **Use faster model:**
198
+ ```bash
199
+ claude --model haiku "simple task"
200
+ ```
201
+
202
+ **Reduce context:**
203
+ ```json
204
+ {
205
+ "maxTokens": 4096,
206
+ "context": {
207
+ "autoTruncate": true
208
+ }
209
+ }
210
+ ```
211
+
212
+ **Enable caching:**
213
+ ```json
214
+ {
215
+ "caching": {
216
+ "enabled": true
217
+ }
218
+ }
219
+ ```
220
+
221
+ ### High Memory Usage
222
+
223
+ ```bash
224
+ # Clear cache
225
+ rm -rf ~/.cursor/cache/*
226
+
227
+ # Limit context window
228
+ claude config set maxTokens 8192
229
+
230
+ # Disable memory
231
+ claude config set memory.enabled false
232
+
233
+ # Close unused sessions
234
+ claude session list
235
+ claude session close session-123
236
+ ```
237
+
238
+ ### Rate Limiting
239
+
240
+ ```bash
241
+ # Check rate limits
242
+ claude usage show
243
+
244
+ # Wait and retry
245
+ sleep 60
246
+ claude "retry task"
247
+
248
+ # Implement exponential backoff in scripts
249
+ ```
250
+
251
+ ## Tool Execution Errors
252
+
253
+ ### Bash Command Failures
254
+
255
+ **Check sandboxing settings:**
256
+ ```json
257
+ {
258
+ "sandboxing": {
259
+ "enabled": true,
260
+ "allowedPaths": ["/workspace", "/tmp"]
261
+ }
262
+ }
263
+ ```
264
+
265
+ **Verify command permissions:**
266
+ ```bash
267
+ # Make script executable
268
+ chmod +x script.sh
269
+
270
+ # Check PATH
271
+ echo $PATH
272
+ which command-name
273
+ ```
274
+
275
+ ### File Access Denied
276
+
277
+ ```bash
278
+ # Check file permissions
279
+ ls -la file.txt
280
+
281
+ # Change ownership
282
+ sudo chown $USER file.txt
283
+
284
+ # Grant read/write permissions
285
+ chmod 644 file.txt
286
+ ```
287
+
288
+ ### Write Tool Failures
289
+
290
+ ```bash
291
+ # Check disk space
292
+ df -h
293
+
294
+ # Verify directory exists
295
+ mkdir -p /path/to/directory
296
+
297
+ # Check write permissions
298
+ touch /path/to/directory/test.txt
299
+ rm /path/to/directory/test.txt
300
+ ```
301
+
302
+ ## Hook Errors
303
+
304
+ ### Hooks Not Running
305
+
306
+ ```bash
307
+ # Verify hooks.json syntax
308
+ cat .cursor/hooks.json | jq .
309
+
310
+ # Check hook script permissions
311
+ chmod +x .cursor/scripts/hook.sh
312
+
313
+ # Test hook script manually
314
+ .cursor/scripts/hook.sh
315
+
316
+ # Check logs
317
+ cat ~/.cursor/logs/hooks.log
318
+ ```
319
+
320
+ ### Hook Script Errors
321
+
322
+ ```bash
323
+ # Add error handling to hooks
324
+ #!/bin/bash
325
+ set -e # Exit on error
326
+ set -u # Exit on undefined variable
327
+
328
+ # Debug hook execution
329
+ #!/bin/bash
330
+ set -x # Print commands
331
+ echo "Hook running: $TOOL_NAME"
332
+ ```
333
+
334
+ ## Debug Mode
335
+
336
+ ### Enable Debugging
337
+
338
+ ```bash
339
+ # Set debug environment variable
340
+ export CLAUDE_DEBUG=1
341
+ export CLAUDE_LOG_LEVEL=debug
342
+
343
+ # Run with debug flag
344
+ claude --debug "task"
345
+
346
+ # View debug logs
347
+ tail -f ~/.cursor/logs/debug.log
348
+ ```
349
+
350
+ ### Verbose Output
351
+
352
+ ```bash
353
+ # Enable verbose mode
354
+ claude --verbose "task"
355
+
356
+ # Show all tool calls
357
+ claude --show-tools "task"
358
+
359
+ # Display thinking process
360
+ claude --show-thinking "task"
361
+ ```
362
+
363
+ ## Common Error Messages
364
+
365
+ ### "Model not found"
366
+
367
+ ```bash
368
+ # Use correct model name
369
+ claude --model claude-sonnet-4-5-20250929
370
+
371
+ # Update claude-code
372
+ npm update -g @anthropic-ai/claude-code
373
+ ```
374
+
375
+ ### "Rate limit exceeded"
376
+
377
+ ```bash
378
+ # Wait and retry
379
+ sleep 60
380
+
381
+ # Check usage
382
+ claude usage show
383
+
384
+ # Implement rate limiting in code
385
+ ```
386
+
387
+ ### "Context length exceeded"
388
+
389
+ ```bash
390
+ # Reduce context
391
+ claude config set maxTokens 100000
392
+
393
+ # Summarize long content
394
+ claude "summarize this codebase"
395
+
396
+ # Process in chunks
397
+ claude "analyze first half of files"
398
+ ```
399
+
400
+ ### "Timeout waiting for response"
401
+
402
+ ```bash
403
+ # Increase timeout
404
+ claude config set timeout 300
405
+
406
+ # Check network connection
407
+ ping api.anthropic.com
408
+
409
+ # Retry with smaller request
410
+ ```
411
+
412
+ ## Getting Help
413
+
414
+ ### Collect Diagnostic Info
415
+
416
+ ```bash
417
+ # System info
418
+ claude --version
419
+ node --version
420
+ npm --version
421
+
422
+ # Configuration
423
+ claude config list --all
424
+
425
+ # Recent logs
426
+ tail -n 100 ~/.cursor/logs/session.log
427
+
428
+ # Environment
429
+ env | grep CLAUDE
430
+ env | grep ANTHROPIC
431
+ ```
432
+
433
+ ### Report Issues
434
+
435
+ 1. **Check existing issues**: https://github.com/anthropics/claude-code/issues
436
+ 2. **Gather diagnostic info**
437
+ 3. **Create minimal reproduction**
438
+ 4. **Submit issue** with:
439
+ - Cursor version
440
+ - Operating system
441
+ - Error messages
442
+ - Steps to reproduce
443
+
444
+ ### Support Channels
445
+
446
+ - **Documentation**: https://docs.cursor.com/claude-code
447
+ - **GitHub Issues**: https://github.com/anthropics/claude-code/issues
448
+ - **Support Portal**: support.cursor.com
449
+ - **Community Discord**: discord.gg/anthropic
450
+
451
+ ## See Also
452
+
453
+ - Installation guide: `references/getting-started.md`
454
+ - Configuration: `references/configuration.md`
455
+ - MCP setup: `references/mcp-integration.md`
456
+ - Best practices: `references/best-practices.md`
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: claude-code
3
+ description: Activate when users ask about Cursor installation, slash commands (/cook, /plan, /fix, /test, /docs, /design, /git), creating/managing Agent Skills, configuring MCP servers, setting up hooks/plugins, IDE integration (VS Code, JetBrains), CI/CD workflows, enterprise deployment (SSO, RBAC, sandboxing), troubleshooting authentication/performance issues, or advanced features (extended thinking, caching, checkpointing).
4
+ ---
5
+
6
+ # Cursor
7
+
8
+ Anthropic's agentic coding tool combining autonomous planning, execution, and validation with extensibility through skills, plugins, MCP servers, and hooks.
9
+
10
+ ## Core Concepts
11
+
12
+ **Subagents**: Specialized agents (planner, code-reviewer, tester, debugger, docs-manager, ui-ux-designer, database-admin)
13
+
14
+ **Agent Skills**: Modular capabilities with SKILL.md + bundled resources (scripts, references, assets) loaded progressively
15
+
16
+ **Slash Commands**: User-defined operations in `.cursor/commands/` expanding to prompts
17
+
18
+ **Hooks**: Event-driven shell commands (SessionStart, PreToolUse, PostToolUse, Stop, SubagentStop)
19
+
20
+ **MCP Servers**: Model Context Protocol integrations for external tools (GitHub, Jira, databases)
21
+
22
+ **Plugins**: Packaged collections distributed via marketplace
23
+
24
+ ## Reference Guide
25
+
26
+ Load references as needed for specific topics:
27
+
28
+ | Topic | Reference File | Contents |
29
+ |-------|----------------|----------|
30
+ | Installation & setup | `references/getting-started.md` | Prerequisites, installation methods, authentication |
31
+ | Slash commands | `references/slash-commands.md` | Full catalog: /cook, /plan, /fix, /test, /docs, /git, /design |
32
+ | Workflow examples | `references/common-workflows.md` | Feature implementation, bug fixing, testing, git ops |
33
+ | Creating skills | `references/agent-skills.md` | Skill structure, metadata, bundled resources |
34
+ | MCP servers | `references/mcp-integration.md` | Configuration, common servers, authentication |
35
+ | Hooks system | `references/hooks-comprehensive.md` | Event types, command/prompt hooks, tool matchers |
36
+ | Plugins | `references/hooks-and-plugins.md` | Plugin structure, marketplace, installation |
37
+ | Configuration | `references/configuration.md` | Settings hierarchy, model config, output styles |
38
+ | Enterprise | `references/enterprise-features.md` | SSO, RBAC, sandboxing, audit logging, deployment |
39
+ | IDE integration | `references/ide-integration.md` | VS Code extension, JetBrains plugin |
40
+ | CI/CD | `references/cicd-integration.md` | GitHub Actions, GitLab workflows |
41
+ | Advanced features | `references/advanced-features.md` | Extended thinking, caching, checkpointing |
42
+ | Troubleshooting | `references/troubleshooting.md` | Auth failures, MCP issues, performance, debug mode |
43
+ | API reference | `references/api-reference.md` | Admin, Messages, Files, Models, Skills APIs |
44
+ | Best practices | `references/best-practices.md` | Project organization, security, performance, cost |
45
+
46
+ ## Instructions
47
+
48
+ When answering questions:
49
+
50
+ 1. Identify topic from user query
51
+ 2. Load relevant reference files (use table above)
52
+ 3. Provide specific guidance with examples
53
+ 4. For complex queries, load multiple references
54
+
55
+ **Documentation sources:**
56
+ - Context7 llms.txt: `https://context7.com/websites/claude_en_claude-code/llms.txt?tokens=10000`
57
+ - Topic search: `https://context7.com/websites/claude_en_claude-code/llms.txt?topic=<topic>&tokens=5000`
58
+ - Official docs: https://docs.cursor.com/en/docs/claude-code/
59
+ - GitHub: https://github.com/anthropics/claude-code
60
+ - Support: support.cursor.com