chainlesschain 0.43.2 → 0.44.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/README.md +123 -18
- package/bin/chainlesschain.js +0 -0
- package/package.json +4 -2
- package/src/commands/init.js +2306 -1
- package/src/commands/skill.js +166 -0
- package/src/lib/skill-loader.js +4 -0
- package/src/lib/skill-packs/generator.js +630 -0
- package/src/lib/skill-packs/schema.js +462 -0
package/README.md
CHANGED
|
@@ -206,11 +206,12 @@ Agent slash commands: `/plan` (plan mode), `/plan interactive <request>` (LLM-dr
|
|
|
206
206
|
|
|
207
207
|
### `chainlesschain skill <action>`
|
|
208
208
|
|
|
209
|
-
Manage and run 138 built-in AI skills.
|
|
209
|
+
Manage and run 138 built-in AI skills across a 4-layer system: bundled < marketplace < managed (global) < workspace (project).
|
|
210
210
|
|
|
211
211
|
```bash
|
|
212
212
|
chainlesschain skill list # List all skills grouped by category
|
|
213
213
|
chainlesschain skill list --category automation
|
|
214
|
+
chainlesschain skill list --category cli-direct # CLI command skill packs
|
|
214
215
|
chainlesschain skill list --tag code --runnable
|
|
215
216
|
chainlesschain skill list --json # JSON output
|
|
216
217
|
chainlesschain skill categories # Show category breakdown
|
|
@@ -218,7 +219,45 @@ chainlesschain skill info code-review # Detailed skill info + docs
|
|
|
218
219
|
chainlesschain skill info code-review --json
|
|
219
220
|
chainlesschain skill search "browser" # Search by keyword
|
|
220
221
|
chainlesschain skill run code-review "Review this function..."
|
|
221
|
-
|
|
222
|
+
chainlesschain skill add my-skill # Create custom project skill
|
|
223
|
+
chainlesschain skill remove my-skill # Remove custom skill
|
|
224
|
+
chainlesschain skill sources # Show skill layer paths and counts
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
#### CLI Command Skill Packs
|
|
228
|
+
|
|
229
|
+
Automatically wraps 62 CLI commands into 9 Agent-callable domain skill packs:
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
chainlesschain skill sync-cli # Generate/update all 9 CLI skill packs
|
|
233
|
+
chainlesschain skill sync-cli --force # Force regenerate all packs
|
|
234
|
+
chainlesschain skill sync-cli --dry-run # Preview changes without writing
|
|
235
|
+
chainlesschain skill sync-cli --remove # Remove all CLI packs
|
|
236
|
+
chainlesschain skill sync-cli --json # JSON output
|
|
237
|
+
|
|
238
|
+
# Run CLI commands via skill packs (Agent can call these directly)
|
|
239
|
+
chainlesschain skill run cli-knowledge-pack "note list"
|
|
240
|
+
chainlesschain skill run cli-identity-pack "did create"
|
|
241
|
+
chainlesschain skill run cli-infra-pack "services up"
|
|
242
|
+
chainlesschain skill run cli-ai-query-pack "ask what is RAG"
|
|
243
|
+
chainlesschain skill run cli-agent-mode-pack "agent"
|
|
244
|
+
chainlesschain skill run cli-web3-pack "wallet assets"
|
|
245
|
+
chainlesschain skill run cli-security-pack "encrypt file secret.txt"
|
|
246
|
+
chainlesschain skill run cli-enterprise-pack "org list"
|
|
247
|
+
chainlesschain skill run cli-integration-pack "mcp servers"
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
| Pack | Mode | Commands |
|
|
251
|
+
|------|------|----------|
|
|
252
|
+
| `cli-knowledge-pack` | direct | note, search, memory, session, import, export |
|
|
253
|
+
| `cli-identity-pack` | direct | did, auth, audit |
|
|
254
|
+
| `cli-infra-pack` | direct | setup, start, stop, status, services, config, doctor, db |
|
|
255
|
+
| `cli-ai-query-pack` | llm-query | ask, llm, instinct, tokens |
|
|
256
|
+
| `cli-agent-mode-pack` | agent | agent, chat, cowork |
|
|
257
|
+
| `cli-web3-pack` | direct | wallet, p2p, sync, did |
|
|
258
|
+
| `cli-security-pack` | direct | encrypt, decrypt, audit, pqc |
|
|
259
|
+
| `cli-enterprise-pack` | direct | org, plugin, lowcode, compliance |
|
|
260
|
+
| `cli-integration-pack` | hybrid | mcp, browse, cli-anything, serve |
|
|
222
261
|
|
|
223
262
|
---
|
|
224
263
|
|
|
@@ -504,12 +543,73 @@ chainlesschain plugin summary # Installation summary
|
|
|
504
543
|
|
|
505
544
|
### `chainlesschain init`
|
|
506
545
|
|
|
507
|
-
Initialize a new ChainlessChain project.
|
|
546
|
+
Initialize a new ChainlessChain project with a `.chainlesschain/` directory, workspace skills, and an optional AI persona.
|
|
547
|
+
|
|
548
|
+
```bash
|
|
549
|
+
chainlesschain init # Interactive template selection
|
|
550
|
+
chainlesschain init --bare # Minimal project structure
|
|
551
|
+
chainlesschain init --template code-project --yes # Software project (code-review, refactor, unit-test)
|
|
552
|
+
chainlesschain init --template data-science --yes # Data science / ML project
|
|
553
|
+
chainlesschain init --template devops --yes # DevOps / infrastructure project
|
|
554
|
+
chainlesschain init --template medical-triage --yes # Medical triage assistant (with Persona)
|
|
555
|
+
chainlesschain init --template agriculture-expert --yes # Agriculture expert (with Persona)
|
|
556
|
+
chainlesschain init --template general-assistant --yes # General-purpose assistant (with Persona)
|
|
557
|
+
chainlesschain init --template ai-media-creator --yes # AI media creator (ComfyUI/AnimateDiff/TTS)
|
|
558
|
+
chainlesschain init --template ai-doc-creator --yes # AI doc creator (LibreOffice/pandoc/doc-edit)
|
|
559
|
+
chainlesschain init --template empty --yes # Bare project
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
#### AI Media Creator Template (`ai-media-creator`)
|
|
563
|
+
|
|
564
|
+
Generates 3 workspace skills for AI image/video/audio creation:
|
|
565
|
+
|
|
566
|
+
```bash
|
|
567
|
+
chainlesschain skill run comfyui-image "a sunset over mountains, oil painting style"
|
|
568
|
+
chainlesschain skill run comfyui-video '{"prompt":"a cat walking","workflow":"workflows/animatediff.json"}'
|
|
569
|
+
chainlesschain skill run audio-gen "你好,欢迎使用 ChainlessChain"
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
| Skill | Description |
|
|
573
|
+
|-------|-------------|
|
|
574
|
+
| `comfyui-image` | ComfyUI REST API image generation (txt2img/img2img, custom workflows) |
|
|
575
|
+
| `comfyui-video` | ComfyUI + AnimateDiff video generation (requires workflow JSON) |
|
|
576
|
+
| `audio-gen` | AI TTS: auto-selects edge-tts → piper-tts → ElevenLabs → OpenAI |
|
|
577
|
+
|
|
578
|
+
Also creates a `workflows/` directory with README for saving ComfyUI workflow JSON files.
|
|
579
|
+
|
|
580
|
+
#### AI Doc Creator Template (`ai-doc-creator`)
|
|
581
|
+
|
|
582
|
+
Generates 3 workspace skills for AI document creation and editing:
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
chainlesschain skill run doc-generate "2026年技术趋势分析报告"
|
|
586
|
+
chainlesschain skill run doc-generate '{"topic":"项目方案","format":"docx","style":"proposal"}'
|
|
587
|
+
chainlesschain skill run libre-convert "report.docx"
|
|
588
|
+
chainlesschain skill run libre-convert '{"input_file":"slides.pptx","format":"pdf"}'
|
|
589
|
+
chainlesschain skill run doc-edit '{"input_file":"report.md","instruction":"优化摘要部分"}'
|
|
590
|
+
chainlesschain skill run doc-edit '{"input_file":"data.xlsx","instruction":"首字母大写"}'
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
| Skill | Description |
|
|
594
|
+
|-------|-------------|
|
|
595
|
+
| `doc-generate` | AI-generated structured documents: md/html/docx/pdf, 4 styles (report/proposal/manual/readme) |
|
|
596
|
+
| `libre-convert` | LibreOffice headless conversion: docx/pdf/html/odt/pptx/xlsx/png |
|
|
597
|
+
| `doc-edit` | AI edit existing docs: md/txt/html (direct LLM), docx (pandoc/soffice), xlsx (openpyxl, formulas preserved), pptx (python-pptx, charts preserved) |
|
|
598
|
+
|
|
599
|
+
Requirements: `winget install pandoc` (for docx), `winget install LibreOffice.LibreOffice` (for PDF/format conversion).
|
|
600
|
+
|
|
601
|
+
Also creates a `templates/` directory with README for document templates.
|
|
602
|
+
|
|
603
|
+
### `chainlesschain persona <action>`
|
|
604
|
+
|
|
605
|
+
Manage the AI persona for the current project (set by `init` templates or manually).
|
|
508
606
|
|
|
509
607
|
```bash
|
|
510
|
-
chainlesschain
|
|
511
|
-
chainlesschain
|
|
512
|
-
chainlesschain
|
|
608
|
+
chainlesschain persona show # Show current project persona
|
|
609
|
+
chainlesschain persona set --name "Bot" --role "Helper" # Set persona name and role
|
|
610
|
+
chainlesschain persona set -b "Always respond in English" # Add behavior constraint
|
|
611
|
+
chainlesschain persona set --tools-disabled run_shell # Disable specific tools
|
|
612
|
+
chainlesschain persona reset # Remove persona, restore default
|
|
513
613
|
```
|
|
514
614
|
|
|
515
615
|
### `chainlesschain cowork <action>`
|
|
@@ -980,7 +1080,7 @@ Configuration is stored at `~/.chainlesschain/config.json`. The CLI creates and
|
|
|
980
1080
|
```bash
|
|
981
1081
|
cd packages/cli
|
|
982
1082
|
npm install
|
|
983
|
-
npm test # Run all tests (
|
|
1083
|
+
npm test # Run all tests (3050+ tests across 130+ files)
|
|
984
1084
|
npm run test:unit # Unit tests only
|
|
985
1085
|
npm run test:integration # Integration tests
|
|
986
1086
|
npm run test:e2e # End-to-end tests
|
|
@@ -988,17 +1088,22 @@ npm run test:e2e # End-to-end tests
|
|
|
988
1088
|
|
|
989
1089
|
### Test Coverage
|
|
990
1090
|
|
|
991
|
-
| Category
|
|
992
|
-
|
|
|
993
|
-
| Unit — lib modules
|
|
994
|
-
| Unit — commands
|
|
995
|
-
| Unit — runtime
|
|
996
|
-
|
|
|
997
|
-
|
|
|
998
|
-
|
|
|
999
|
-
|
|
|
1000
|
-
| Integration — WS session
|
|
1001
|
-
|
|
|
1091
|
+
| Category | Files | Tests | Status |
|
|
1092
|
+
| ------------------------------ | ------- | -------- | --------------- |
|
|
1093
|
+
| Unit — lib modules | 70 | 1700+ | All passing |
|
|
1094
|
+
| Unit — commands | 17 | 400+ | All passing |
|
|
1095
|
+
| Unit — runtime | 1 | 6 | All passing |
|
|
1096
|
+
| Unit — WS sessions | 9 | 156 | All passing |
|
|
1097
|
+
| Unit — Skill Packs | 2 | 57+ | All passing |
|
|
1098
|
+
| Unit — AI Templates | 2 | 130+ | All passing |
|
|
1099
|
+
| Integration | 13 | 230+ | All passing |
|
|
1100
|
+
| Integration — WS session | 1 | 12 | All passing |
|
|
1101
|
+
| Integration — AI Handlers | 2 | 100+ | All passing |
|
|
1102
|
+
| E2E | 15 | 260+ | All passing |
|
|
1103
|
+
| E2E — Skill Packs | 1 | 23+ | All passing |
|
|
1104
|
+
| E2E — AI Templates | 4 | 65+ | All passing |
|
|
1105
|
+
| Core packages (external) | — | 118 | All passing |
|
|
1106
|
+
| **CLI Total** | **132** | **3056** | **All passing** |
|
|
1002
1107
|
|
|
1003
1108
|
## License
|
|
1004
1109
|
|
package/bin/chainlesschain.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chainlesschain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"description": "CLI for ChainlessChain - install, configure, and manage your personal AI management system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
"test:e2e": "vitest run __tests__/e2e/",
|
|
18
18
|
"test:watch": "vitest watch",
|
|
19
19
|
"lint": "eslint src/ bin/ --ext .js",
|
|
20
|
-
"format": "prettier --write \"src/**/*.js\" \"bin/**/*.js\" \"__tests__/**/*.js\""
|
|
20
|
+
"format": "prettier --write \"src/**/*.js\" \"bin/**/*.js\" \"__tests__/**/*.js\"",
|
|
21
|
+
"sync-skill-packs": "node --input-type=module -e \"import { generateCliPacks } from './src/lib/skill-packs/generator.js'; const r = await generateCliPacks({ force: false }); console.log('Skill packs synced:', r.generated.length, 'generated,', r.skipped.length, 'skipped');\"",
|
|
22
|
+
"postinstall": "node --input-type=module -e \"import { generateCliPacks } from './src/lib/skill-packs/generator.js'; generateCliPacks({ force: false }).catch(() => {});\" 2>/dev/null || true"
|
|
21
23
|
},
|
|
22
24
|
"engines": {
|
|
23
25
|
"node": ">=22.12.0"
|