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.
- package/.antigravity/skills/article-extractor/SKILL.md +52 -0
- package/.antigravity/skills/artifacts-builder/SKILL.md +63 -0
- package/.antigravity/skills/aws-deployment/SKILL.md +85 -0
- package/.antigravity/skills/brainstorming/SKILL.md +73 -0
- package/.antigravity/skills/canvas-design/SKILL.md +62 -0
- package/.antigravity/skills/changelog-generator/SKILL.md +149 -0
- package/.antigravity/skills/changelog-generator/assets/changelog-template.md +60 -0
- package/.antigravity/skills/changelog-generator/scripts/generate-changelog.js +181 -0
- package/.antigravity/skills/claude-code/references/advanced-features.md +399 -0
- package/.antigravity/skills/claude-code/references/agent-skills.md +399 -0
- package/.antigravity/skills/claude-code/references/api-reference.md +498 -0
- package/.antigravity/skills/claude-code/references/best-practices.md +447 -0
- package/.antigravity/skills/claude-code/references/cicd-integration.md +428 -0
- package/.antigravity/skills/claude-code/references/common-workflows.md +119 -0
- package/.antigravity/skills/claude-code/references/configuration.md +480 -0
- package/.antigravity/skills/claude-code/references/enterprise-features.md +472 -0
- package/.antigravity/skills/claude-code/references/getting-started.md +252 -0
- package/.antigravity/skills/claude-code/references/hooks-and-plugins.md +444 -0
- package/.antigravity/skills/claude-code/references/hooks-comprehensive.md +622 -0
- package/.antigravity/skills/claude-code/references/ide-integration.md +316 -0
- package/.antigravity/skills/claude-code/references/mcp-integration.md +386 -0
- package/.antigravity/skills/claude-code/references/slash-commands.md +489 -0
- package/.antigravity/skills/claude-code/references/troubleshooting.md +456 -0
- package/.antigravity/skills/claude-code/skill.md +60 -0
- package/.antigravity/skills/code-quality/SKILL.md +273 -0
- package/.antigravity/skills/comprehensive-review/complexity.md +11 -0
- package/.antigravity/skills/comprehensive-review/index.yaml +19 -0
- package/.antigravity/skills/comprehensive-review/maintainability.md +12 -0
- package/.antigravity/skills/comprehensive-review/readability.md +12 -0
- package/.antigravity/skills/content-research-writer/SKILL.md +65 -0
- package/.antigravity/skills/csv-data-analyzer/SKILL.md +91 -0
- package/.antigravity/skills/d3-visualization/SKILL.md +65 -0
- package/.antigravity/skills/debugging/references/root-cause-analysis-methods.md +140 -0
- package/.antigravity/skills/engineering-discipline/incremental-change.md +15 -0
- package/.antigravity/skills/engineering-discipline/index.yaml +30 -0
- package/.antigravity/skills/engineering-discipline/planning-first.md +18 -0
- package/.antigravity/skills/engineering-discipline/reasoning-clarity.md +19 -0
- package/.antigravity/skills/engineering-discipline/verify-before-commit.md +17 -0
- package/.antigravity/skills/file-organizer/SKILL.md +64 -0
- package/.antigravity/skills/git-automation/SKILL.md +68 -0
- package/.antigravity/skills/git-automation/references/branch-finishing.md +64 -0
- package/.antigravity/skills/impact-scoring/SKILL.md +219 -0
- package/.antigravity/skills/kaizen/SKILL.md +94 -0
- package/.antigravity/skills/performance-patterns/SKILL.md +209 -0
- package/.antigravity/skills/playwright-testing/SKILL.md +115 -0
- package/.antigravity/skills/playwright-testing/references/playwright-patterns.md +122 -0
- package/.antigravity/skills/prompt-engineering/SKILL.md +126 -0
- package/.antigravity/skills/prompt-engineering/references/anthropic-best-practices.md +160 -0
- package/.antigravity/skills/pypict-testing/SKILL.md +79 -0
- package/.antigravity/skills/review-implementing/SKILL.md +287 -0
- package/.antigravity/skills/security-audit/SKILL.md +263 -0
- package/.antigravity/skills/software-architecture/SKILL.md +91 -0
- package/.antigravity/skills/software-architecture/references/solid-principles.md +293 -0
- package/.antigravity/skills/subagent-driven-development/SKILL.md +237 -0
- package/.antigravity/skills/test-driven-development/SKILL.md +130 -0
- package/.antigravity/skills/test-driven-development/references/tdd-patterns.md +124 -0
- package/.antigravity/skills/test-driven-development/references/testing-strategies.md +131 -0
- package/.antigravity/skills/test-fixing/SKILL.md +256 -0
- package/.antigravity/skills/theme-factory/SKILL.md +63 -0
- package/.antigravity/workflows/clean.md +333 -0
- package/.antigravity/workflows/health.md +228 -0
- package/.cursor/skills/_packs/common/pack-architecture.md +40 -0
- package/.cursor/skills/_packs/common/pack-devops.md +43 -0
- package/.cursor/skills/_packs/common/pack-productivity.md +37 -0
- package/.cursor/skills/_packs/common/pack-quality.md +41 -0
- package/.cursor/skills/_packs/data/pack-ai.md +41 -0
- package/.cursor/skills/_packs/data/pack-data-science.md +36 -0
- package/.cursor/skills/_packs/mobile/pack-mobile.md +40 -0
- package/.cursor/skills/_packs/web/pack-backend.md +61 -0
- package/.cursor/skills/_packs/web/pack-frontend.md +66 -0
- package/.cursor/skills/_packs/web3/pack-blockchain.md +37 -0
- package/.cursor/skills/advanced-coding/references/getting-started.md +93 -0
- package/.cursor/skills/advanced-coding/skill.md +34 -0
- package/.cursor/skills/template-skill/SKILL.md +6 -0
- package/README.md +1 -1
- package/docs/reference/SECURITY.md +1 -1
- package/package.json +2 -2
- package/src/cli.js +5 -5
- package/src/commands/dashboard.js +3 -3
- package/src/commands/init.js +15 -3
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Getting Started with Anchi Advanced Coding
|
|
2
|
+
|
|
3
|
+
Installation, authentication, and setup guide for Anchi's Advanced Coding Assistant.
|
|
4
|
+
|
|
5
|
+
## What is Advanced Coding Assistant?
|
|
6
|
+
|
|
7
|
+
Anchi's agentic coding tool that lives in the terminal and helps turn ideas into code faster. Key features:
|
|
8
|
+
|
|
9
|
+
- **Agentic Capabilities**: Autonomous planning, execution, and validation
|
|
10
|
+
- **Terminal Integration**: Works directly in command line
|
|
11
|
+
- **IDE Support**: Extensions for VS Code and JetBrains IDEs
|
|
12
|
+
- **Extensibility**: Plugins, skills, slash commands, and MCP servers
|
|
13
|
+
- **Enterprise Ready**: SSO, sandboxing, monitoring, and compliance features
|
|
14
|
+
|
|
15
|
+
## Prerequisites
|
|
16
|
+
|
|
17
|
+
### System Requirements
|
|
18
|
+
- **Operating Systems**: macOS, Linux, or Windows (WSL2)
|
|
19
|
+
- **Runtime**: Node.js 18+ or Python 3.10+
|
|
20
|
+
- **API Key**: From Anchi Console (or configured provider)
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
### Install via npm
|
|
25
|
+
```bash
|
|
26
|
+
npm install -g @anchi-kit/advanced-coding
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Verify Installation
|
|
30
|
+
```bash
|
|
31
|
+
anchi-code --version
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Authentication
|
|
35
|
+
|
|
36
|
+
### Method 1: Interactive Login
|
|
37
|
+
```bash
|
|
38
|
+
anchi-code login
|
|
39
|
+
# Follow prompts to enter API key
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Basic Usage
|
|
43
|
+
|
|
44
|
+
### Interactive Mode
|
|
45
|
+
```bash
|
|
46
|
+
$ anchi-code
|
|
47
|
+
Anchi> help me create a React component
|
|
48
|
+
# Agent will plan and execute
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### One-Shot Mode
|
|
52
|
+
```bash
|
|
53
|
+
anchi-code "add error handling to main.py"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Common First Commands
|
|
57
|
+
|
|
58
|
+
### Explore Codebase
|
|
59
|
+
```bash
|
|
60
|
+
anchi-code "explain the project structure"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Run Tests
|
|
64
|
+
```bash
|
|
65
|
+
anchi-code "run the test suite"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Directory Structure
|
|
69
|
+
|
|
70
|
+
Anchi creates `.cursor/` (or `.anchi/`) in your project:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
project/
|
|
74
|
+
├── .cursor/
|
|
75
|
+
│ ├── settings.json # Project-specific settings
|
|
76
|
+
│ ├── commands/ # Custom slash commands
|
|
77
|
+
│ ├── skills/ # Custom skills
|
|
78
|
+
│ └── hooks.json # Hook configurations
|
|
79
|
+
└── ...
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Next Steps
|
|
83
|
+
|
|
84
|
+
### Learn Slash Commands
|
|
85
|
+
```bash
|
|
86
|
+
# See available commands
|
|
87
|
+
/help
|
|
88
|
+
|
|
89
|
+
# Try common workflows
|
|
90
|
+
/cook implement feature X
|
|
91
|
+
/fix bug in Y
|
|
92
|
+
/test
|
|
93
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: advanced-coding
|
|
3
|
+
description: Activate when users ask about agentic coding workflows, slash commands (/cook, /plan, /fix, /test, /docs, /design, /git), creating/managing Agent Skills, or advanced features.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Advanced Coding Assistant
|
|
7
|
+
|
|
8
|
+
Anchi's advanced agentic coding tool combining autonomous planning, execution, and validation with extensibility through skills, plugins, 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
|
+
## Reference Guide
|
|
21
|
+
|
|
22
|
+
Load references as needed for specific topics:
|
|
23
|
+
|
|
24
|
+
| Topic | Reference File | Contents |
|
|
25
|
+
|-------|----------------|----------|
|
|
26
|
+
| Installation & setup | `references/getting-started.md` | Prerequisites, installation methods, authentication |
|
|
27
|
+
|
|
28
|
+
## Instructions
|
|
29
|
+
|
|
30
|
+
When answering questions:
|
|
31
|
+
|
|
32
|
+
1. Identify topic from user query
|
|
33
|
+
2. Load relevant reference files (use table above)
|
|
34
|
+
3. Provide specific guidance with examples
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> **The Cognitive Operating System for AI Code Editors**
|
|
4
4
|
> _"Biến AI từ người thợ code (Junior Coder) thành Kỹ sư trưởng (Senior Tech Lead)."_
|
|
5
5
|
|
|
6
|
-
[](https://www.npmjs.com/package/anchi-kit)
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
8
|

|
|
9
9
|

|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anchi-kit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "The Ultimate AI-Native Toolkit for Cursor & Gemini. Installs into any existing project. Includes commands, agents, skills, and architecture presets.",
|
|
5
5
|
"main": "src/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@semantic-release/npm": "^11.0.2",
|
|
68
68
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
69
69
|
"@vercel/ncc": "^0.38.4",
|
|
70
|
-
"anchi-kit": "^1.2.
|
|
70
|
+
"anchi-kit": "^1.2.1",
|
|
71
71
|
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
72
72
|
"husky": "^8.0.3",
|
|
73
73
|
"semantic-release": "^22.0.12"
|
package/src/cli.js
CHANGED
|
@@ -16,7 +16,7 @@ const PACKAGE_VERSION = (() => {
|
|
|
16
16
|
return JSON.parse(fs.readFileSync(pkgPath, 'utf8')).version || '1.2.0';
|
|
17
17
|
}
|
|
18
18
|
} catch (e) {}
|
|
19
|
-
return '1.2.
|
|
19
|
+
return '1.2.1';
|
|
20
20
|
})();
|
|
21
21
|
|
|
22
22
|
// =============================================================================
|
|
@@ -287,16 +287,16 @@ async function installAntigravity(isForce = false) {
|
|
|
287
287
|
fs.copyFileSync(configSource, configDest);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
// 5. Create .ai-audit folder (for logging)
|
|
291
|
-
const auditSource = path.join(kitPath, '
|
|
290
|
+
// 5. Create .ai-audit folder (for logging) - Use template
|
|
291
|
+
const auditSource = path.join(kitPath, 'presets/memory-template/.ai-audit');
|
|
292
292
|
const auditDest = path.join(antigravityDest, '.ai-audit'); // Inside .antigravity
|
|
293
293
|
if (fs.existsSync(auditSource)) {
|
|
294
294
|
await copyWithConflictHandling(auditSource, auditDest, true, isForce);
|
|
295
295
|
log.success(' ✅ .ai-audit/ - Decision logs');
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
// 6. Create .ai-memory folder (for context)
|
|
299
|
-
const memorySource = path.join(kitPath, '
|
|
298
|
+
// 6. Create .ai-memory folder (for context) - Use template
|
|
299
|
+
const memorySource = path.join(kitPath, 'presets/memory-template/.ai-memory');
|
|
300
300
|
const memoryDest = path.join(antigravityDest, '.ai-memory'); // Inside .antigravity
|
|
301
301
|
if (fs.existsSync(memorySource)) {
|
|
302
302
|
await copyWithConflictHandling(memorySource, memoryDest, true, isForce);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// =============================================================================
|
|
2
|
-
// anchi-kit Dashboard Command v1.2.
|
|
2
|
+
// anchi-kit Dashboard Command v1.2.1 (Interactive Backend)
|
|
3
3
|
// Launches a local web server with live API endpoints for Run, Logs, and Tasks
|
|
4
4
|
// =============================================================================
|
|
5
5
|
|
|
@@ -29,7 +29,7 @@ function addLog(type, message) {
|
|
|
29
29
|
async function dashboard(port = 4567, autoOpen = true) {
|
|
30
30
|
const targetDir = process.cwd();
|
|
31
31
|
|
|
32
|
-
addLog('info', '📊 Starting anchi-kit Dashboard v1.2.
|
|
32
|
+
addLog('info', '📊 Starting anchi-kit Dashboard v1.2.1...');
|
|
33
33
|
|
|
34
34
|
// Helper: Read directory files
|
|
35
35
|
const readDir = (dir) => {
|
|
@@ -451,7 +451,7 @@ async function dashboard(port = 4567, autoOpen = true) {
|
|
|
451
451
|
});
|
|
452
452
|
|
|
453
453
|
s.listen(port, 'localhost', () => {
|
|
454
|
-
console.log(`✅ Dashboard v1.2.
|
|
454
|
+
console.log(`✅ Dashboard v1.2.1 running at: http://localhost:${port}`);
|
|
455
455
|
if (autoOpen) {
|
|
456
456
|
const startCommand = process.platform === 'win32' ? 'start' : process.platform === 'darwin' ? 'open' : 'xdg-open';
|
|
457
457
|
require('child_process').exec(`${startCommand} http://localhost:${port}`);
|
package/src/commands/init.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// =============================================================================
|
|
3
|
-
// anchi-kit Enhanced Init Command (v1.2.
|
|
3
|
+
// anchi-kit Enhanced Init Command (v1.2.1)
|
|
4
4
|
// Usage: npx anchi-kit init
|
|
5
5
|
// =============================================================================
|
|
6
6
|
|
|
@@ -94,7 +94,7 @@ async function init() {
|
|
|
94
94
|
// Step 0: Welcome Banner
|
|
95
95
|
console.log('');
|
|
96
96
|
log.header('╔═══════════════════════════════════════════════════════════╗');
|
|
97
|
-
log.header('║ 🧠 Anchi-Kit Cognitive OS Setup (v1.2.
|
|
97
|
+
log.header('║ 🧠 Anchi-Kit Cognitive OS Setup (v1.2.1) ║');
|
|
98
98
|
log.header('╚═══════════════════════════════════════════════════════════╝');
|
|
99
99
|
console.log('');
|
|
100
100
|
|
|
@@ -182,7 +182,7 @@ async function init() {
|
|
|
182
182
|
|
|
183
183
|
// Prepare Config Object
|
|
184
184
|
const anchiConfig = {
|
|
185
|
-
version: '1.2.
|
|
185
|
+
version: '1.2.1',
|
|
186
186
|
domain: selectedDomain,
|
|
187
187
|
level: selectedLevel,
|
|
188
188
|
installed_capabilities: selectedCaps,
|
|
@@ -231,6 +231,18 @@ async function init() {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
// 1.5. Install Commands (AI Instructions)
|
|
235
|
+
log.info(' 💻 Installing Commands...');
|
|
236
|
+
const destCommands = path.join(destFolder, 'commands');
|
|
237
|
+
if (!fs.existsSync(destCommands)) fs.mkdirSync(destCommands);
|
|
238
|
+
|
|
239
|
+
// Copy Core Commands
|
|
240
|
+
const baseCommandsPath = path.join(kitPath, '.cursor/commands');
|
|
241
|
+
if (fs.existsSync(baseCommandsPath)) {
|
|
242
|
+
copyDirRecursive(baseCommandsPath, destCommands);
|
|
243
|
+
log.success(' + Core Commands (start, brain, etc.)');
|
|
244
|
+
}
|
|
245
|
+
|
|
234
246
|
// 2. Install Skills (Packs)
|
|
235
247
|
log.info(' 📚 Installing Skill Packs...');
|
|
236
248
|
const destSkills = path.join(destFolder, 'skills');
|