arreio 1.0.2-dev.0 → 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/README.md +4 -7
- package/package.json +5 -1
- package/scripts/postinstall.js +49 -0
- package/skills/arreio-init/SKILL.md +14 -12
- package/skills/arreio-init/modules/install.md +49 -30
package/README.md
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
Title: Arreio
|
|
3
|
-
Type: Documentation
|
|
4
|
-
---
|
|
5
|
-
|
|
6
1
|
**Arreio** (Brazilian word for _harness_) transforms agentic coding workflows into a predictable, safe, and high-quality software delivery pipeline.
|
|
7
2
|
|
|
8
3
|
By enforcing a **pragmatic**, guardrailed execution, Arreio brings structure to AI-driven development. Master just four core phases to orchestrate a highly reliable development cycle:
|
|
@@ -17,7 +12,9 @@ Install Arreio as a dependency to enable all skills in your workspace:
|
|
|
17
12
|
npm install arreio
|
|
18
13
|
```
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
The post-install script will automatically copy all Arreio skills to your project's `.agents/skills/` directory, making them available in VS Code Copilot Chat. (Note: npm may show an advisory about unallowed install scripts—this is informational and won't block the installation.)
|
|
16
|
+
|
|
17
|
+
Then initialize your project to set up the Arreio folder structure and documentation:
|
|
21
18
|
|
|
22
19
|
```
|
|
23
20
|
/arreio-init
|
|
@@ -25,7 +22,7 @@ Then initialize your project to set up Arreio workflows:
|
|
|
25
22
|
|
|
26
23
|
Run this command in VS Code Copilot Chat to:
|
|
27
24
|
|
|
28
|
-
1.
|
|
25
|
+
1. Verify or manually install Arreio skills to `.agents/skills/` (if postinstall was skipped)
|
|
29
26
|
2. Create the project structure (`docs/plans/`, `docs/learn/`, etc.)
|
|
30
27
|
3. Set up architectural documentation and index files
|
|
31
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arreio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Arreio transforms agentic coding workflows into a predictable, safe, and high-quality software delivery pipeline. Master the four core phases—Plan, Work, Review, Learn—to orchestrate a highly reliable development cycle.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Wicttor",
|
|
@@ -27,8 +27,12 @@
|
|
|
27
27
|
"main": "README.md",
|
|
28
28
|
"files": [
|
|
29
29
|
"skills/",
|
|
30
|
+
"scripts/",
|
|
30
31
|
"README.md"
|
|
31
32
|
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"postinstall": "node scripts/postinstall.js"
|
|
35
|
+
},
|
|
32
36
|
"engines": {
|
|
33
37
|
"node": ">=14.0.0"
|
|
34
38
|
},
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Post-install script for arreio
|
|
5
|
+
* Copies skills from the package to the project's .agents/skills directory
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const fs = require('fs');
|
|
9
|
+
const path = require('path');
|
|
10
|
+
|
|
11
|
+
// Determine the source and destination paths
|
|
12
|
+
const packageDir = path.dirname(__dirname);
|
|
13
|
+
const skillsSource = path.join(packageDir, 'skills');
|
|
14
|
+
const agentsDir = path.join(process.cwd(), '.agents');
|
|
15
|
+
const skillsDestination = path.join(agentsDir, 'skills');
|
|
16
|
+
|
|
17
|
+
// Function to recursively copy directories
|
|
18
|
+
function copyDirectory(src, dest) {
|
|
19
|
+
if (!fs.existsSync(dest)) {
|
|
20
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const files = fs.readdirSync(src);
|
|
24
|
+
files.forEach(file => {
|
|
25
|
+
const srcFile = path.join(src, file);
|
|
26
|
+
const destFile = path.join(dest, file);
|
|
27
|
+
const stat = fs.statSync(srcFile);
|
|
28
|
+
|
|
29
|
+
if (stat.isDirectory()) {
|
|
30
|
+
copyDirectory(srcFile, destFile);
|
|
31
|
+
} else {
|
|
32
|
+
fs.copyFileSync(srcFile, destFile);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
// Create .agents directory if it doesn't exist
|
|
39
|
+
if (!fs.existsSync(agentsDir)) {
|
|
40
|
+
fs.mkdirSync(agentsDir, { recursive: true });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Copy skills to .agents/skills
|
|
44
|
+
copyDirectory(skillsSource, skillsDestination);
|
|
45
|
+
console.log(`✓ Arreio skills installed to ${skillsDestination}`);
|
|
46
|
+
} catch (error) {
|
|
47
|
+
console.error(`✗ Failed to install Arreio skills: ${error.message}`);
|
|
48
|
+
process.exit(1);
|
|
49
|
+
}
|
|
@@ -35,16 +35,18 @@ After initialization, the following modules can operate:
|
|
|
35
35
|
|
|
36
36
|
The initialization workflow runs in two phases:
|
|
37
37
|
|
|
38
|
-
1. **Phase 0: Install Skills** —
|
|
38
|
+
1. **Phase 0: Install Skills (Optional)** — Verify or manually copy Arreio skills to `.agents/skills/` in the project (skills are normally installed via npm postinstall, but this phase can install them as a fallback)
|
|
39
39
|
2. **Phase 1: Initialize Project Structure** — Create folders, indexes, and architectural documentation
|
|
40
40
|
|
|
41
|
-
### Step 1: Install Skills
|
|
41
|
+
### Step 1: Install Skills (Optional Fallback)
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
Verify that Arreio skills are installed to the project's `.agents/skills/` directory. See [modules/install.md](modules/install.md) for detailed instructions.
|
|
44
44
|
|
|
45
|
-
**Why:** Skills must be
|
|
45
|
+
**Why:** Skills must be available in `.agents/skills/` for VS Code Copilot Chat discovery. Normally, the npm postinstall script handles this automatically when you run `npm install arreio`. This step provides a manual fallback if postinstall was skipped.
|
|
46
46
|
|
|
47
|
-
**
|
|
47
|
+
**When to run:** Skip this step if npm postinstall has already run. If skills are not yet installed, this phase will copy them from `node_modules/arreio/skills/` to `.agents/skills/`.
|
|
48
|
+
|
|
49
|
+
**Action:** See [install.md](modules/install.md) for verification and manual installation steps.
|
|
48
50
|
|
|
49
51
|
### Step 2: Create Core Folder Structure
|
|
50
52
|
|
|
@@ -199,13 +201,13 @@ _No review reports yet._
|
|
|
199
201
|
|
|
200
202
|
After initialization, verify:
|
|
201
203
|
|
|
202
|
-
- ✓ All Arreio skills are installed to
|
|
203
|
-
-
|
|
204
|
-
-
|
|
205
|
-
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
-
|
|
204
|
+
- ✓ All Arreio skills are installed to `.agents/skills/`:
|
|
205
|
+
- `.agents/skills/plan/`
|
|
206
|
+
- `.agents/skills/work/`
|
|
207
|
+
- `.agents/skills/review/`
|
|
208
|
+
- `.agents/skills/learn/`
|
|
209
|
+
- `.agents/skills/end-session/`
|
|
210
|
+
- `.agents/skills/arreio-init/`
|
|
209
211
|
- ✓ All five core folders exist: `docs/plans/`, `docs/learn/`, `docs/reports/`, `docs/tasks/`, `docs/archives/`
|
|
210
212
|
- ✓ `ARCHITECTURE.md` exists at project root
|
|
211
213
|
- ✓ Root-level index files exist:
|
|
@@ -1,44 +1,63 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Install Skills
|
|
3
|
-
description:
|
|
3
|
+
description: Verify or manually install Arreio skills to the project's .agents/skills directory, providing a fallback if npm postinstall was skipped.
|
|
4
4
|
type: module
|
|
5
5
|
version: 1.0
|
|
6
6
|
timestamp: "2026-09-01"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
# Phase 0 - Install Skills
|
|
9
|
+
# Phase 0 - Install Skills (Fallback)
|
|
10
10
|
|
|
11
|
-
**Purpose:**
|
|
11
|
+
**Purpose:** Verify that Arreio skills are installed to the project's `.agents/skills/` directory, making them available for discovery and invocation in VS Code Copilot Chat. This is normally handled by the npm postinstall script, but this phase provides a manual fallback if postinstall was skipped or if users need to reinstall skills.
|
|
12
12
|
|
|
13
13
|
## Workflow
|
|
14
14
|
|
|
15
|
-
This is the Phase 0 pipeline for the Arreio Init Skill. It
|
|
15
|
+
This is the Phase 0 pipeline for the Arreio Init Skill. It performs verification and optional installation before creating project structure.
|
|
16
16
|
|
|
17
|
-
### Step 1:
|
|
17
|
+
### Step 1: Check if Skills Already Installed
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
First, verify that Arreio skills are already available:
|
|
20
|
+
|
|
21
|
+
1. Check if `.agents/skills/` directory exists in the project and contains the expected skill folders (plan, work, review, learn, end-session, arreio-init).
|
|
22
|
+
2. If all skills are present and current, log success and skip to project structure initialization (Step 2).
|
|
23
|
+
3. If skills are missing or incomplete, proceed to Step 2.
|
|
24
|
+
|
|
25
|
+
**Result:**
|
|
26
|
+
|
|
27
|
+
- ✓ Skills already installed → Skip to project structure
|
|
28
|
+
- ✗ Skills missing → Proceed to manual installation
|
|
29
|
+
|
|
30
|
+
### Step 2: Verify Installation Context (if needed)
|
|
31
|
+
|
|
32
|
+
### Step 2: Verify Installation Context (if needed)
|
|
33
|
+
|
|
34
|
+
Verify that the prerequisites are met if skills need to be installed:
|
|
20
35
|
|
|
21
36
|
1. Arreio is installed as an npm package in the current project (`node_modules/arreio/` exists).
|
|
22
37
|
2. The skills directory exists in the package: `node_modules/arreio/skills/` contains subdirectories for each skill.
|
|
23
|
-
3. The
|
|
38
|
+
3. The project directory is writable (required to create `.agents/skills/`).
|
|
24
39
|
|
|
25
40
|
If any verification fails:
|
|
26
41
|
|
|
27
42
|
- **Missing package:** Suggest running `npm install arreio` first.
|
|
28
43
|
- **Missing skills:** Report a package integrity error (the skills/ directory is missing from the installed package).
|
|
29
|
-
- **No
|
|
44
|
+
- **No write access:** Report an environment error (unable to write to project directory).
|
|
45
|
+
|
|
46
|
+
### Step 3: Create Target Directory
|
|
47
|
+
|
|
48
|
+
Create the destination directory hierarchy:
|
|
30
49
|
|
|
31
|
-
### Step
|
|
50
|
+
### Step 3: Create Target Directory
|
|
32
51
|
|
|
33
52
|
Create the destination directory hierarchy:
|
|
34
53
|
|
|
35
|
-
1. If
|
|
36
|
-
2. If
|
|
37
|
-
3. Log: `✓ Created
|
|
54
|
+
1. If `.agents/` does not exist, create it.
|
|
55
|
+
2. If `.agents/skills/` does not exist, create it.
|
|
56
|
+
3. Log: `✓ Created .agents/skills/`
|
|
38
57
|
|
|
39
|
-
### Step
|
|
58
|
+
### Step 4: Copy Skills from Package
|
|
40
59
|
|
|
41
|
-
Copy each skill directory from `node_modules/arreio/skills/` to
|
|
60
|
+
Copy each skill directory from `node_modules/arreio/skills/` to `.agents/skills/`:
|
|
42
61
|
|
|
43
62
|
**Skills to copy:**
|
|
44
63
|
|
|
@@ -54,7 +73,7 @@ Copy each skill directory from `node_modules/arreio/skills/` to `~/.agents/skill
|
|
|
54
73
|
For each skill:
|
|
55
74
|
|
|
56
75
|
1. Read the source directory: `node_modules/arreio/skills/<skill-name>/`
|
|
57
|
-
2. Copy recursively to destination:
|
|
76
|
+
2. Copy recursively to destination: `.agents/skills/<skill-name>/`
|
|
58
77
|
3. Verify the destination directory was created and contains the expected files (`SKILL.md`, `modules/`, `references/`).
|
|
59
78
|
4. Log: `✓ Copied <skill-name>`
|
|
60
79
|
|
|
@@ -64,13 +83,13 @@ If any copy operation fails:
|
|
|
64
83
|
- Ask the user to manually verify the source exists and the destination is writable.
|
|
65
84
|
- Do not proceed to the next phase.
|
|
66
85
|
|
|
67
|
-
### Step
|
|
86
|
+
### Step 5: Verify Installation Success
|
|
68
87
|
|
|
69
88
|
After all skills are copied, verify that the expected skill files are present:
|
|
70
89
|
|
|
71
90
|
For each skill, check:
|
|
72
91
|
|
|
73
|
-
-
|
|
92
|
+
- `.agents/skills/<skill-name>/SKILL.md` exists
|
|
74
93
|
- Directory structure is intact (modules/, references/ subdirs if present)
|
|
75
94
|
|
|
76
95
|
If verification passes, log:
|
|
@@ -89,14 +108,14 @@ Skills are now available in VS Code Copilot Chat.
|
|
|
89
108
|
|
|
90
109
|
If verification fails for any skill, report which skills failed and suggest manual verification.
|
|
91
110
|
|
|
92
|
-
### Step
|
|
111
|
+
### Step 6: Log Installation Summary
|
|
93
112
|
|
|
94
113
|
Provide the user with confirmation and next steps:
|
|
95
114
|
|
|
96
115
|
```
|
|
97
116
|
Installation complete. Arreio skills are now available:
|
|
98
117
|
|
|
99
|
-
Next step: Project structure will be initialized in
|
|
118
|
+
Next step: Project structure will be initialized in the next phase of arreio-init.
|
|
100
119
|
|
|
101
120
|
You can now use:
|
|
102
121
|
/plan — Create implementation plans
|
|
@@ -109,14 +128,14 @@ You can now use:
|
|
|
109
128
|
|
|
110
129
|
After this phase completes:
|
|
111
130
|
|
|
112
|
-
- ✓
|
|
113
|
-
- ✓ All six skills are copied to
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
-
|
|
131
|
+
- ✓ `.agents/skills/` directory exists in the project
|
|
132
|
+
- ✓ All six skills are copied to `.agents/skills/`:
|
|
133
|
+
- `.agents/skills/plan/`
|
|
134
|
+
- `.agents/skills/work/`
|
|
135
|
+
- `.agents/skills/review/`
|
|
136
|
+
- `.agents/skills/learn/`
|
|
137
|
+
- `.agents/skills/end-session/`
|
|
138
|
+
- `.agents/skills/arreio-init/`
|
|
120
139
|
- ✓ Each skill directory contains `SKILL.md` and expected subdirectories
|
|
121
140
|
- ✓ Skills are ready for discovery by VS Code Copilot Chat
|
|
122
141
|
|
|
@@ -126,11 +145,11 @@ Refer to [error-handling.md](../references/error-handling.md) for category class
|
|
|
126
145
|
|
|
127
146
|
- **Category 1 (Missing context):** Arreio package not installed; suggest `npm install arreio`.
|
|
128
147
|
- **Category 2 (Routing error):** Skills directory missing from package; report package integrity issue.
|
|
129
|
-
- **Category 3 (Environment issue):** Cannot write to
|
|
148
|
+
- **Category 3 (Environment issue):** Cannot write to project `.agents/` directory; insufficient permissions.
|
|
130
149
|
|
|
131
150
|
## Notes
|
|
132
151
|
|
|
133
152
|
- This phase runs **before** project structure initialization (Phase 1 → Create Core Folders).
|
|
134
|
-
- Skills are copied to the
|
|
135
|
-
- The copy is non-destructive; if skills already exist in
|
|
153
|
+
- Skills are copied to the project's `.agents/` directory, keeping them scoped to the project. Each project gets its own copy of skills.
|
|
154
|
+
- The copy is non-destructive; if skills already exist in `.agents/skills/`, they are overwritten with the latest version from the installed package. This supports package updates.
|
|
136
155
|
- This phase is idempotent; running it multiple times produces the same result.
|