@syntesseraai/opencode-feature-factory 0.10.5 ā 0.10.6
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/AGENTS.md +37 -0
- package/README.md +6 -1
- package/bin/ff-deploy.js +22 -1
- package/package.json +3 -2
package/AGENTS.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Feature Factory AGENTS Guide
|
|
2
|
+
|
|
3
|
+
This file is installed to `~/.config/opencode/AGENTS.md` by `@syntesseraai/opencode-feature-factory`.
|
|
4
|
+
|
|
5
|
+
## What Feature Factory Provides
|
|
6
|
+
|
|
7
|
+
- Workflow tools:
|
|
8
|
+
- `ff_pipeline`: full multi-model planning/build/review/documentation workflow.
|
|
9
|
+
- `ff_mini_loop`: lightweight build/review/documentation loop for focused changes.
|
|
10
|
+
- `ff_list_models`: list available provider/model IDs for workflow overrides.
|
|
11
|
+
- Specialized agents: `feature-factory`, `planning`, `building`, `reviewing`, `documenting`, and `ff-research`.
|
|
12
|
+
- Skills for planning, review quality/security/architecture/documentation, reporting templates, and todo management.
|
|
13
|
+
|
|
14
|
+
## Preferred Workflow Pattern
|
|
15
|
+
|
|
16
|
+
1. Clarify requirements and acceptance criteria before coding.
|
|
17
|
+
2. Choose `ff_mini_loop` for small, well-scoped changes.
|
|
18
|
+
3. Choose `ff_pipeline` for complex, high-risk, or architectural changes.
|
|
19
|
+
4. Confirm model overrides only when needed; otherwise use defaults.
|
|
20
|
+
5. Use worktree isolation when running concurrent workflows.
|
|
21
|
+
|
|
22
|
+
## Preferred Tooling Pattern
|
|
23
|
+
|
|
24
|
+
- Use `cocoindex-code_search` first for semantic codebase discovery.
|
|
25
|
+
- Use `read`, `glob`, and `grep` for targeted file inspection.
|
|
26
|
+
- Use `morph-mcp_edit_file` for precise code/document edits.
|
|
27
|
+
- Use `bash` for non-interactive command execution (`git`, `npm`, `tsc`, tests, builds).
|
|
28
|
+
- Use PTY only when interactive terminal control is actually required.
|
|
29
|
+
- Use `todowrite` for multi-step tasks to keep progress visible.
|
|
30
|
+
|
|
31
|
+
## Implementation Expectations
|
|
32
|
+
|
|
33
|
+
- Keep edits scoped and consistent with existing architecture.
|
|
34
|
+
- Prefer non-destructive merges and preserve user configuration.
|
|
35
|
+
- Update docs when behavior, defaults, or operational steps change.
|
|
36
|
+
- Run relevant validation for touched areas (lint/typecheck/tests as needed).
|
|
37
|
+
- Avoid destructive git operations unless explicitly requested.
|
package/README.md
CHANGED
|
@@ -23,16 +23,21 @@ The installer deploys to `~/.config/opencode/`:
|
|
|
23
23
|
|
|
24
24
|
- `agents/`
|
|
25
25
|
- `skills/`
|
|
26
|
+
- `AGENTS.md`
|
|
26
27
|
|
|
27
28
|
It also updates `~/.config/opencode/opencode.json` non-destructively by merging missing Feature Factory MCP entries and plugins without deleting existing user configuration.
|
|
28
29
|
|
|
29
30
|
## Install Behavior
|
|
30
31
|
|
|
31
|
-
- **Always overwrites packaged assets**: installer unconditionally overwrites Feature Factory `agents` and `
|
|
32
|
+
- **Always overwrites packaged assets**: installer unconditionally overwrites Feature Factory `agents`, `skills`, and `AGENTS.md` files on every install.
|
|
32
33
|
- **`opencode.json` is non-destructive**: existing keys/values are preserved; only missing required plugin/MCP entries are added.
|
|
33
34
|
- **No automatic plugin removals**: existing plugin entries are preserved as-is, including entries no longer in current defaults.
|
|
34
35
|
- **Global scope**: assets are installed to `~/.config/opencode/` and shared across projects.
|
|
35
36
|
|
|
37
|
+
## Global AGENTS Guide
|
|
38
|
+
|
|
39
|
+
`~/.config/opencode/AGENTS.md` is installed from this package and provides Feature Factory-specific operating guidance, including workflow selection and preferred tool patterns (semantic search, edit workflow, and `bash`-first command execution).
|
|
40
|
+
|
|
36
41
|
## Tools
|
|
37
42
|
|
|
38
43
|
The plugin exposes three MCP tools via the `feature-factory` agent:
|
package/bin/ff-deploy.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Feature Factory Deployment Script
|
|
5
5
|
*
|
|
6
|
-
* Deploys skills and
|
|
6
|
+
* Deploys skills, agents, and AGENTS.md guidance to the global OpenCode
|
|
7
|
+
* configuration directory.
|
|
7
8
|
* Run manually with: npx @syntesseraai/opencode-feature-factory
|
|
8
9
|
*/
|
|
9
10
|
|
|
@@ -19,10 +20,12 @@ const GLOBAL_CONFIG_DIR = join(homedir(), '.config', 'opencode');
|
|
|
19
20
|
const SKILLS_DIR = join(GLOBAL_CONFIG_DIR, 'skills');
|
|
20
21
|
const AGENTS_DIR = join(GLOBAL_CONFIG_DIR, 'agents');
|
|
21
22
|
const GLOBAL_CONFIG_FILE = join(GLOBAL_CONFIG_DIR, 'opencode.json');
|
|
23
|
+
const GLOBAL_AGENTS_GUIDE_FILE = join(GLOBAL_CONFIG_DIR, 'AGENTS.md');
|
|
22
24
|
|
|
23
25
|
const PACKAGE_ROOT = join(__dirname, '..');
|
|
24
26
|
const SOURCE_SKILLS_DIR = join(PACKAGE_ROOT, 'skills');
|
|
25
27
|
const SOURCE_AGENTS_DIR = join(PACKAGE_ROOT, 'agents');
|
|
28
|
+
const SOURCE_AGENTS_GUIDE_FILE = join(PACKAGE_ROOT, 'AGENTS.md');
|
|
26
29
|
|
|
27
30
|
// Check if running in interactive mode (has TTY)
|
|
28
31
|
const isInteractive = process.stdin.isTTY && process.stdout.isTTY;
|
|
@@ -135,6 +138,15 @@ async function getFileNames(dir) {
|
|
|
135
138
|
}
|
|
136
139
|
}
|
|
137
140
|
|
|
141
|
+
async function fileExists(filePath) {
|
|
142
|
+
try {
|
|
143
|
+
await fs.access(filePath);
|
|
144
|
+
return true;
|
|
145
|
+
} catch {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
138
150
|
async function updateMCPConfig() {
|
|
139
151
|
if (isInteractive) {
|
|
140
152
|
console.log('\nš§ MCP Configuration Update');
|
|
@@ -279,6 +291,7 @@ async function deploy() {
|
|
|
279
291
|
// Get existing skills/agents for reporting
|
|
280
292
|
const existingSkills = await getDirectoryNames(SKILLS_DIR);
|
|
281
293
|
const existingAgents = await getFileNames(AGENTS_DIR);
|
|
294
|
+
const hadExistingAgentsGuide = await fileExists(GLOBAL_AGENTS_GUIDE_FILE);
|
|
282
295
|
|
|
283
296
|
// Deploy skills
|
|
284
297
|
if (isInteractive) {
|
|
@@ -315,11 +328,19 @@ async function deploy() {
|
|
|
315
328
|
}
|
|
316
329
|
}
|
|
317
330
|
|
|
331
|
+
// Deploy global AGENTS guide
|
|
332
|
+
await fs.copyFile(SOURCE_AGENTS_GUIDE_FILE, GLOBAL_AGENTS_GUIDE_FILE);
|
|
333
|
+
if (isInteractive) {
|
|
334
|
+
console.log('\nš Deploying AGENTS Guide...');
|
|
335
|
+
console.log(` ${hadExistingAgentsGuide ? 'š' : 'ā
'} AGENTS.md ${hadExistingAgentsGuide ? '(updated)' : '(new)'}`);
|
|
336
|
+
}
|
|
337
|
+
|
|
318
338
|
// Summary
|
|
319
339
|
if (isInteractive) {
|
|
320
340
|
console.log('\n⨠Deployment Complete!');
|
|
321
341
|
console.log(` Skills: ${skills.length} deployed`);
|
|
322
342
|
console.log(` Agents: ${agents.length} deployed`);
|
|
343
|
+
console.log(' AGENTS guide: deployed');
|
|
323
344
|
console.log(` Location: ${GLOBAL_CONFIG_DIR}`);
|
|
324
345
|
console.log('\nš Next Steps:');
|
|
325
346
|
console.log(' - Restart OpenCode or run /reload to load new agents');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@syntesseraai/opencode-feature-factory",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "OpenCode plugin for Feature Factory agents - provides sub-agents and skills for validation, review, security, and architecture assessment",
|
|
7
7
|
"license": "MIT",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"assets",
|
|
16
16
|
"skills",
|
|
17
17
|
"agents",
|
|
18
|
-
"bin"
|
|
18
|
+
"bin",
|
|
19
|
+
"AGENTS.md"
|
|
19
20
|
],
|
|
20
21
|
"keywords": [
|
|
21
22
|
"opencode",
|