agentleFS
dzianisvdzianisv/opencode-plugins/skills/feature-workflow/SKILL.md

feature-workflow

Skill11 starsChanged 12 days agoMITView on GitHub

Standard workflow for developing features. Follow this process for all non-trivial changes - from planning through PR merge. Ensures proper testing, review, and CI verification.

  • Deletes or force-pushes
  • Commits and pushes

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 12 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before writing any code, plan the work:

    line 26
  2. Distinctive:

    Check for existing issue or create one:

    line 56
  3. Distinctive:

    Update the issue with detailed scope:

    line 90
  4. Distinctive:

    Always start from up-to-date main:

    line 121
  5. Distinctive:

    Commit them to current branch

    line 129
  6. Distinctive:

    Write the code following these principles:

    line 153
  7. Distinctive:

    Update Todo tool: after each significant piece of work.

    line 168
  8. Distinctive:

    If tests fail, fix before proceeding: Do not skip failing tests.

    line 193
  9. Distinctive:

    Read the failure logs

    line 305
  10. Distinctive:

    Wait for CI again

    line 308
  11. Distinctive:

    Pushing directly to main: - Always use feature branches

    line 351
  12. Distinctive:

    Force pushing to main: - Never force push to shared branches

    line 358

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Feature Development Workflow

A structured 11-step process for developing features that ensures quality, traceability, and proper review.

Prerequisites

  • Git repository initialized
  • GitHub CLI (gh) authenticated
  • Access to run tests (unit and E2E)
  • Todo tool available for tracking progress

The 11-Step Process

Step 1: Create a Plan

Before writing any code, plan the work:

## Feature: [Name]

### Goal
[One sentence describing what we're building]

### Why
[Problem this solves or value it provides]

### Scope
- [ ] What's included
- [ ] What's NOT included (explicit boundaries)

### Technical Approach
1. [High-level step 1]
2. [High-level step 2]
3. [etc.]

### Risks / Open Questions
- [Any unknowns or concerns]

Use the Todo tool to capture each major task from the plan.


Step 2: Create GitHub Issue (if not exists)

Check for existing issue or create one:

# Search for existing issue
gh issue list --repo OWNER/REPO --search "feature keywords"

# Create new issue if needed
gh issue create --repo OWNER/REPO \
  --title "feat: [Feature Name]" \
  --body "$(cat <<'EOF'
## Summary
[Brief description]

## Motivation
[Why this is needed]

## Proposed Solution
[High-level approach]

## Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2
- [ ] Tests pass
- [ ] Documentation updated
EOF
)"

Record the issue number for linking in commits and PR.


Step 3: Define Task Scope in Issue

Update the issue with detailed scope:

gh issue comment ISSUE_NUMBER --body "$(cat <<'EOF'
## Implementation Plan

### Design
[Architecture decisions, data flow, etc.]

### Files to Modify
- `path/to/file1.ts` - [what changes]
- `path/to/file2.ts` - [what changes]

### New Files
- `path/to/new.ts` - [purpose]

### Testing Strategy
- Unit tests for [X]
- E2E tests for [Y]
- Manual verification of [Z]

### Out of Scope
- [Explicitly list what this PR won't do]
EOF
)"

Step 4: Fetch Latest Changes

Always start from up-to-date main:

git fetch origin
git status  # Check for uncommitted changes

If you have uncommitted changes, either:

  • Commit them to current branch
  • Stash them: git stash
  • Discard them: git checkout -- .

Step 5: Create Feature Branch

Branch naming convention: feat/issue-number-short-description

# Create and checkout new branch from origin/main
git checkout -b feat/123-add-telegram-replies origin/main

# Or for fixes
git checkout -b fix/456-race-condition origin/main

Update Todo tool: Mark "Create branch" as complete.


Step 6: Implement the Feature

Write the code following these principles:

  1. Small, focused commits - Each commit should be atomic
  2. Commit message format:
    type(scope): short description
    
    - Detail 1
    - Detail 2
    
    Closes #123
  3. Types: feat, fix, refactor, test, docs, chore
  4. Reference issue in commits: #123 or Closes #123

Update Todo tool after each significant piece of work.


Step 7: Test End-to-End (No Mocks)

Critical: Real testing, not mocked data.

# 1. Run type checking
npm run typecheck

# 2. Run unit tests
npm test

# 3. Run E2E tests (REQUIRED for any plugin changes)
OPENCODE_E2E=1 npm run test:e2e

# 4. Manual verification
#    - Test the actual feature with real data
#    - For Telegram: send real messages
#    - For TTS: verify audio plays
#    - For reflection: verify judge runs

If tests fail, fix before proceeding. Do not skip failing tests.

Add automated tests for new functionality:

  • Unit tests for pure logic
  • Integration tests for component interactions
  • E2E tests for user-facing flows

Step 8: Create Pull Request

# Ensure branch is pushed
git push -u origin HEAD

# Create PR linking to issue
gh pr create \
  --title "feat: [Short description] (#ISSUE)" \
  --body "$(cat <<'EOF'
## Summary
[What this PR does]

## Changes
- [Change 1]
- [Change 2]

## Testing
- [ ] Unit tests pass
- [ ] E2E tests pass
- [ ] Manual testing completed

## Screenshots/Logs
[If applicable]

Closes #ISSUE_NUMBER
EOF
)"

Step 9: Review PR

Self-review checklist:

# View the full diff
gh pr diff

# Check files changed
gh pr view --json files

Review for:

  • No debug code or console.logs left
  • No hardcoded secrets or credentials
  • Error handling is appropriate
  • Code is readable and well-commented
  • No unrelated changes included
  • Commit history is clean

Clean up if needed:

# Squash fixup commits
git rebase -i origin/main

# Force push after rebase (only on feature branch!)
git push --force-with-lease

Step 10: Update GitHub Issue

Post implementation summary to the issue:

gh issue comment ISSUE_NUMBER --body "$(cat <<'EOF'
## Implementation Complete

### What was done
- [Summary of changes]

### Files changed
- `path/to/file.ts` - [description]

### How to test
1. [Step 1]
2. [Step 2]

### PR
#PR_NUMBER
EOF
)"

Step 11: Wait for CI Checks to Pass

# Watch CI status
gh pr checks --watch

# Or check run status
gh run list --limit 5

# View specific run logs if failed
gh run view RUN_ID --log-failed

If CI fails:

  1. Read the failure logs
  2. Fix the issue locally
  3. Push the fix
  4. Wait for CI again

Only merge when all checks pass.

# Merge when ready (if you have permission)
gh pr merge --squash --delete-branch

Quick Reference

StepCommandTodo Status
1. PlanDocument in markdownpending
2. Issuegh issue createpending
3. Scopegh issue commentpending
4. Fetchgit fetch originin_progress
5. Branchgit checkout -b feat/...in_progress
6. ImplementWrite code, commitin_progress
7. Testnpm test && npm run test:e2ein_progress
8. PRgh pr createin_progress
9. Reviewgh pr diffin_progress
10. Update Issuegh issue commentin_progress
11. CI Passgh pr checks --watchcompleted

Common Issues

IssueCauseSolution
CI fails on pushTests not run locallyAlways run npm test before pushing
Merge conflictsBranch out of dategit rebase origin/main
E2E tests timeoutModel too slowIncrease timeout or use faster model
PR has unrelated changesWrong base branchRebase onto correct branch
Forgot to link issueMissing Closes #NEdit PR body to add it

Anti-Patterns to Avoid

  1. Pushing directly to main - Always use feature branches
  2. Skipping tests - Tests exist for a reason
  3. Large PRs - Break into smaller, focused changes
  4. Mocked E2E tests - Real tests catch real bugs
  5. Ignoring CI failures - Fix before merge, never skip
  6. No issue tracking - Issues provide context and history
  7. Vague commit messages - Be specific about what changed
  8. Force pushing to main - Never force push to shared branches

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.