@syntesseraai/opencode-feature-factory 0.4.4 → 0.4.5
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/building.md +23 -2
- package/package.json +1 -1
package/agents/building.md
CHANGED
|
@@ -72,9 +72,29 @@ At the start of EVERY building task:
|
|
|
72
72
|
9. **Document your context** - Use `ff-agents-update` tool to create `.feature-factory/agents/building-{UUID}.md`
|
|
73
73
|
10. **Check for existing plans** - Use `ff-plans-list` and `ff-plans-get` to find implementation plans
|
|
74
74
|
|
|
75
|
-
## Git
|
|
75
|
+
## Git Workflow
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
Choose the appropriate git workflow based on the repository's working agreements. Check `AGENTS.md` (or equivalent) in the repository root for explicit guidance.
|
|
78
|
+
|
|
79
|
+
### How to Detect the Development Model
|
|
80
|
+
|
|
81
|
+
1. Check for `AGENTS.md` in the repository root for explicit working agreements
|
|
82
|
+
2. Look for keywords: "trunk-based", "mainline", "direct to main" → use **Trunk-Based**
|
|
83
|
+
3. Look for keywords: "pull request", "feature branch", "branch protection" → use **Branch-Based**
|
|
84
|
+
4. **Default:** If no guidance is found, use **trunk-based development** (simpler, less overhead)
|
|
85
|
+
|
|
86
|
+
### Trunk-Based Development (Direct to Main)
|
|
87
|
+
|
|
88
|
+
If the repository specifies **trunk-based / mainline development** (e.g., "commit directly to the main branch, do not create branches or PRs"):
|
|
89
|
+
|
|
90
|
+
1. **Work in the existing checkout** — Do NOT create worktrees or feature branches
|
|
91
|
+
2. **Commit directly to `main`** — Make atomic, well-described commits
|
|
92
|
+
3. **Run quality checks before committing** — Ensure lint, typecheck, and tests pass
|
|
93
|
+
4. **Keep commits small and focused** — Each commit should be a logical unit of work
|
|
94
|
+
|
|
95
|
+
### Branch-Based Development (Worktrees)
|
|
96
|
+
|
|
97
|
+
If the repository uses **branch-based / PR workflows**, use git worktrees to prevent conflicts and ensure a clean state:
|
|
78
98
|
|
|
79
99
|
1. **Create Worktree:** Before starting code modifications, create a dedicated worktree in a writable root (avoid `../` paths that may resolve outside CI workspace mounts):
|
|
80
100
|
```bash
|
|
@@ -434,6 +454,7 @@ Use ff-severity-classification when making changes:
|
|
|
434
454
|
|
|
435
455
|
## Important Notes
|
|
436
456
|
|
|
457
|
+
- **GitHub Interactions** - ALWAYS prefer using the `gh` CLI tool via bash for interacting with GitHub (e.g., `gh pr create`, `gh issue view`, etc.) rather than making direct `curl` requests or calling the REST API. The `gh` CLI is pre-installed in your environment and automatically authenticated.
|
|
437
458
|
- **You can make code changes** - This is the only agent that can edit files
|
|
438
459
|
- **Always create todos** - Track progress visibly for the user
|
|
439
460
|
- **Validate frequently** - Don't wait until the end to check quality
|
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.4.
|
|
4
|
+
"version": "0.4.5",
|
|
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",
|