agentic-code 0.6.5 → 0.6.7
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.
|
@@ -100,6 +100,51 @@ Count affected components:
|
|
|
100
100
|
- Integration complexity
|
|
101
101
|
- Testing requirements
|
|
102
102
|
|
|
103
|
+
#### File Count Estimation Process [MANDATORY]
|
|
104
|
+
|
|
105
|
+
Before determining scale, investigate existing code with concrete steps:
|
|
106
|
+
|
|
107
|
+
1. **Identify entry points**: Find files directly related to the task (e.g., components, API endpoints, handlers)
|
|
108
|
+
2. **Trace dependencies**: Follow imports and callers to discover connected files
|
|
109
|
+
3. **Include test files**: Add related test files to the count
|
|
110
|
+
4. **List explicitly**: Document affected file paths as evidence for scale determination
|
|
111
|
+
|
|
112
|
+
**Scale determination must cite specific file paths as evidence.**
|
|
113
|
+
|
|
114
|
+
Example output:
|
|
115
|
+
```
|
|
116
|
+
Affected Files (5 files → Medium scale):
|
|
117
|
+
- src/components/UserProfile.tsx (modify)
|
|
118
|
+
- src/hooks/useUser.ts (modify)
|
|
119
|
+
- src/api/userApi.ts (modify)
|
|
120
|
+
- src/components/__tests__/UserProfile.test.tsx (modify)
|
|
121
|
+
- src/hooks/__tests__/useUser.test.ts (modify)
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### Scale Confidence
|
|
125
|
+
|
|
126
|
+
Indicate certainty level of scale determination:
|
|
127
|
+
|
|
128
|
+
- **confirmed**: Scale is certain based on clear requirements and identified files
|
|
129
|
+
- **provisional**: Scale may change depending on user answers to clarifying questions
|
|
130
|
+
|
|
131
|
+
When provisional, always document **Scope Dependencies** - questions whose answers affect scale.
|
|
132
|
+
|
|
133
|
+
#### Scope Dependencies
|
|
134
|
+
|
|
135
|
+
When scale confidence is provisional, explicitly document factors that could change the scale:
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
Scope Dependencies:
|
|
139
|
+
- Authentication method: Use existing OAuth → Medium (3 files) / New implementation → Large (8 files)
|
|
140
|
+
- Caching requirement: None → Medium / Required → Large (adds Redis integration)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
This enables:
|
|
144
|
+
1. User to understand what decisions affect scope
|
|
145
|
+
2. Re-evaluation when requirements are clarified
|
|
146
|
+
3. Transparent reasoning for scale determination
|
|
147
|
+
|
|
103
148
|
### Step 4: Execute Rule Selection [BLOCKING CHECKPOINT]
|
|
104
149
|
|
|
105
150
|
**EXECUTION GATES - System HALTS if any step skipped:**
|
|
@@ -245,8 +290,16 @@ Based on scale and complexity:
|
|
|
245
290
|
[RULE SELECTION CHECKPOINT]
|
|
246
291
|
Task Type: [type]
|
|
247
292
|
Task Scale: [scale]
|
|
293
|
+
Scale Confidence: [confirmed/provisional]
|
|
248
294
|
SESSION_BASELINE_DATE: [stored date from initial setup]
|
|
249
295
|
|
|
296
|
+
Affected Files:
|
|
297
|
+
- [path/to/file1] (create/modify)
|
|
298
|
+
- [path/to/file2] (create/modify)
|
|
299
|
+
|
|
300
|
+
Scope Dependencies (if provisional):
|
|
301
|
+
- [Question that affects scale]: If [condition A] → [scale], If [condition B] → [scale]
|
|
302
|
+
|
|
250
303
|
Path Recommendation:
|
|
251
304
|
- [Direct execution of task definitions] OR
|
|
252
305
|
- [Workflow recommended: agentic-coding.md]
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Your AI (LLM), guided by built-in workflows. Describe what you want, and it foll
|
|
|
4
4
|
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://agents.md)
|
|
7
|
-
[](package.json)
|
|
8
8
|
|
|
9
9
|

|
|
10
10
|
|
|
@@ -34,7 +34,7 @@ npx agentic-code my-project && cd my-project
|
|
|
34
34
|
# Ready to go
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
That's it. Works with **any AI tool** -
|
|
37
|
+
That's it. Works with **any AI tool** - Cursor, Codex, Aider, or anything [AGENTS.md](https://agents.md) compatible.
|
|
38
38
|
|
|
39
39
|
## Why This Exists
|
|
40
40
|
|
|
@@ -110,6 +110,20 @@ cp -r path/to/agentic-code/.agents .
|
|
|
110
110
|
|
|
111
111
|
`.agents/skills/` contains reusable skill files in the [Codex Skills format](https://github.com/openai/codex/blob/main/docs/skills.md). Each skill has a `SKILL.md` with instructions that AI agents can discover and apply.
|
|
112
112
|
|
|
113
|
+
**Cursor**: Install skills for Cursor Editor:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# User scope (all projects)
|
|
117
|
+
npx agentic-code skills --cursor
|
|
118
|
+
# Installs to ~/.cursor/skills/agentic-code/
|
|
119
|
+
|
|
120
|
+
# Project scope (current project only)
|
|
121
|
+
npx agentic-code skills --cursor --project
|
|
122
|
+
# Installs to ./.cursor/skills/agentic-code/
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
> Note: Skills feature in Cursor requires Nightly release channel.
|
|
126
|
+
|
|
113
127
|
**Codex**: Install skills for Codex CLI:
|
|
114
128
|
|
|
115
129
|
```bash
|
|
@@ -120,16 +134,19 @@ npx agentic-code skills --codex
|
|
|
120
134
|
# Project scope (current project only)
|
|
121
135
|
npx agentic-code skills --codex --project
|
|
122
136
|
# Installs to ./.codex/skills/agentic-code/
|
|
137
|
+
```
|
|
123
138
|
|
|
124
|
-
|
|
139
|
+
**Custom path**:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
125
142
|
npx agentic-code skills --path ./custom/skills
|
|
126
143
|
# Installs to ./custom/skills/agentic-code/
|
|
127
144
|
```
|
|
128
145
|
|
|
129
146
|
## Common Questions
|
|
130
147
|
|
|
131
|
-
**Q: Can I use this with other AI coding tools
|
|
132
|
-
Yes! This framework works with any AGENTS.md-compatible tool like Cursor, Aider, and other LLM-assisted development environments.
|
|
148
|
+
**Q: Can I use this with other AI coding tools?**
|
|
149
|
+
Yes! This framework works with any AGENTS.md-compatible tool like Cursor, Codex, Aider, and other LLM-assisted development environments.
|
|
133
150
|
|
|
134
151
|
**Q: What programming languages are supported?**
|
|
135
152
|
The framework is language-agnostic and works with any programming language through general development principles. TypeScript-specific rules are available in `skills/*/references/typescript.md`.
|
package/bin/cli.js
CHANGED
|
@@ -9,8 +9,8 @@ const args = process.argv.slice(2);
|
|
|
9
9
|
|
|
10
10
|
// Subcommand routing
|
|
11
11
|
if (args[0] === 'skills') {
|
|
12
|
-
// Delegate to install-
|
|
13
|
-
const installSkills = require('./install-
|
|
12
|
+
// Delegate to install-skills
|
|
13
|
+
const installSkills = require('./install-skills');
|
|
14
14
|
installSkills.run(args.slice(1));
|
|
15
15
|
process.exit(0);
|
|
16
16
|
}
|
|
@@ -24,12 +24,13 @@ if (!projectName) {
|
|
|
24
24
|
|
|
25
25
|
Usage:
|
|
26
26
|
npx agentic-code <project-name> Create a new project
|
|
27
|
-
npx agentic-code skills [options] Install skills to Codex
|
|
27
|
+
npx agentic-code skills [options] Install skills to Codex/Cursor
|
|
28
28
|
|
|
29
29
|
Examples:
|
|
30
30
|
npx agentic-code my-project
|
|
31
31
|
npx agentic-code skills --codex
|
|
32
|
-
npx agentic-code skills --
|
|
32
|
+
npx agentic-code skills --cursor
|
|
33
|
+
npx agentic-code skills --cursor --project
|
|
33
34
|
|
|
34
35
|
For skills options, run: npx agentic-code skills --help
|
|
35
36
|
`);
|
|
@@ -16,8 +16,12 @@ const TARGETS = {
|
|
|
16
16
|
name: 'agentic-code',
|
|
17
17
|
description: 'OpenAI Codex CLI',
|
|
18
18
|
postInstall: 'Restart Codex to load the skills.\nNote: Enable skills with --enable skills flag or in config.toml'
|
|
19
|
+
},
|
|
20
|
+
cursor: {
|
|
21
|
+
name: 'agentic-code',
|
|
22
|
+
description: 'Cursor Editor',
|
|
23
|
+
postInstall: 'Restart Cursor to load the skills.\nNote: Skills feature requires Nightly release channel.'
|
|
19
24
|
}
|
|
20
|
-
// Future targets can be added here
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
// Get target directory based on target and scope
|
|
@@ -30,6 +34,14 @@ function getTargetDir(targetKey, scope) {
|
|
|
30
34
|
const codexHome = process.env.CODEX_HOME || path.join(os.homedir(), '.codex');
|
|
31
35
|
return path.join(codexHome, 'skills');
|
|
32
36
|
}
|
|
37
|
+
if (targetKey === 'cursor') {
|
|
38
|
+
if (scope === SCOPES.project) {
|
|
39
|
+
return path.join(process.cwd(), '.cursor', 'skills');
|
|
40
|
+
}
|
|
41
|
+
// User scope: respect CURSOR_CONFIG_DIR environment variable
|
|
42
|
+
const cursorHome = process.env.CURSOR_CONFIG_DIR || path.join(os.homedir(), '.cursor');
|
|
43
|
+
return path.join(cursorHome, 'skills');
|
|
44
|
+
}
|
|
33
45
|
return null;
|
|
34
46
|
}
|
|
35
47
|
|
|
@@ -91,18 +103,25 @@ Usage: npx agentic-code skills [options]
|
|
|
91
103
|
|
|
92
104
|
Options:
|
|
93
105
|
--codex Install skills to Codex CLI (default)
|
|
106
|
+
--cursor Install skills to Cursor Editor
|
|
94
107
|
--project Install to project scope instead of user scope
|
|
95
108
|
--path <path> Install to custom path
|
|
96
109
|
--help Show this help message
|
|
97
110
|
|
|
98
111
|
Scopes:
|
|
99
|
-
user (default) Install to user directory
|
|
100
|
-
project Install to current project
|
|
112
|
+
user (default) Install to user directory
|
|
113
|
+
project Install to current project
|
|
114
|
+
|
|
115
|
+
Target directories:
|
|
116
|
+
Codex: ~/.codex/skills/ (user) or ./.codex/skills/ (project)
|
|
117
|
+
Cursor: ~/.cursor/skills/ (user) or ./.cursor/skills/ (project)
|
|
101
118
|
|
|
102
119
|
Examples:
|
|
103
120
|
npx agentic-code skills # Install to ~/.codex/skills/ (user scope)
|
|
104
121
|
npx agentic-code skills --codex # Same as above (explicit)
|
|
105
122
|
npx agentic-code skills --codex --project # Install to ./.codex/skills/ (project scope)
|
|
123
|
+
npx agentic-code skills --cursor # Install to ~/.cursor/skills/ (user scope)
|
|
124
|
+
npx agentic-code skills --cursor --project # Install to ./.cursor/skills/ (project scope)
|
|
106
125
|
npx agentic-code skills --path ./my-skills # Install to ./my-skills/agentic-code
|
|
107
126
|
`);
|
|
108
127
|
process.exit(0);
|
|
@@ -112,7 +131,9 @@ Examples:
|
|
|
112
131
|
|
|
113
132
|
// Determine target (default: codex)
|
|
114
133
|
let targetKey = customPath ? 'custom' : 'codex';
|
|
115
|
-
if (args.includes('--
|
|
134
|
+
if (args.includes('--cursor')) {
|
|
135
|
+
targetKey = customPath ? 'custom' : 'cursor';
|
|
136
|
+
} else if (args.includes('--codex')) {
|
|
116
137
|
targetKey = customPath ? 'custom' : 'codex';
|
|
117
138
|
}
|
|
118
139
|
|