Skip to content

95gabor/agentic-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Agentic Workflow Template

Reusable PM-orchestrated multi-agent workflow for Cursor: skills, custom subagents, rules, and handoff docs. Copy into a project and fill project-context.

Stack-agnostic core. NestJS + Next.js + Playwright skills ship as an optional pack.

What’s included

Path Purpose
.agents/AGENTS.md Skill routing and subagent map
.agents/skills/ Practice skills + project-context
.agents/skills/optional/ NestJS / Next.js / Playwright (opt-in)
.cursor/agents/ Specialist subagent definitions
.cursor/rules/ Always-on workflow + commit/PR rules
docs/AGENT_WORKFLOW.md Type A/B/C pipeline, gates, fallback routing
docs/handoffs/ Artifact README + templates
docs/ stubs Vision, requirements, architecture, decisions, design

Quick start (copy into a project)

From this repo root:

PROJECT=~/path/to/your-app

cp -R .agents .cursor "$PROJECT/"
mkdir -p "$PROJECT/docs"
cp -R docs/AGENT_WORKFLOW.md docs/handoffs docs/adrs docs/design \
  docs/PRODUCT_VISION.md docs/REQUIREMENTS.md docs/ARCHITECTURE.md \
  docs/DATA_MODEL.md docs/DECISIONS.md \
  "$PROJECT/docs/"

Then in the project:

  1. Edit .agents/skills/project-context/SKILL.md (product name, UI language, layout, package filters).
  2. Fill stub docs under docs/ as you learn the domain.
  3. Optionally keep or delete .agents/skills/optional/ (see below).
  4. Prefer Multitask Mode in Cursor for Type B feature work so specialists can run as subagents.
  5. Open a new chat and use the example prompts below (start with β€œMake this repo ready”).

Optional NestJS + Next.js pack

If your app uses Nest + Next (+ Playwright):

  1. Keep .agents/skills/optional/ (already copied with the template).
  2. Set paths in project-context (common convention: apps/api, apps/web, e2e/).
  3. Include those skills in PM handoffs for FE/BE/QA roles.

If not: delete .agents/skills/optional/ and ignore nest/next references in agent prompts.

Workflow summary

PM (main agent)
  β†’ BA / Marketing / Visual / PO
  β†’ Architect β†’ Security (design)
  β†’ FE + BE (parallel) β†’ QA
  β†’ UX + Security (implementation)
  β†’ DevOps (if infra)

Artifacts live in docs/handoffs/{feature-slug}/. See docs/AGENT_WORKFLOW.md and docs/handoffs/README.md.

Example prompts

Copy-paste these into Cursor after the template files are in your project. Prefer Multitask Mode for Type B features.

Make this repo ready for the workflow

Use these first (once per project) so agents have product context and correct paths:

Read .agents/AGENTS.md and docs/AGENT_WORKFLOW.md. Fill .agents/skills/project-context/SKILL.md for this repo: product name, one-line purpose, UI language, layout paths (frontend/backend/e2e if any), package manager, and workspace package filters. Do not invent product claims β€” ask me if something is unclear.
Based on the codebase and project-context, draft stub docs/PRODUCT_VISION.md, docs/REQUIREMENTS.md, docs/ARCHITECTURE.md, and docs/DATA_MODEL.md. Keep them short, mark unknowns as TODOs, and align paths with the real repo layout. Do not invent business metrics or private URLs.
We use NestJS + Next.js + Playwright with apps/api, apps/web, and e2e/. Keep .agents/skills/optional/ and update project-context plus .agents/AGENTS.md so FE/BE/QA handoffs reference those optional skills. If we do not use that stack, tell me what to delete instead.
Add a domain skill at .agents/skills/<domain>/SKILL.md for our core domain rules (keep it short). Register it in .agents/AGENTS.md under skill load order. No secrets or proprietary customer data.

Use the workflow day to day

Type B β€” new feature

Act as PM per docs/AGENT_WORKFLOW.md (Type B). Feature: <describe the feature>. Create docs/handoffs/<feature-slug>/00-intake.md, then run the specialist pipeline with Multitask Mode. Do not skip PO, architect, security, QA, or UX without justifying in intake. Write all handoff artifacts to disk.

Type B β€” copy / landing only

Type B, copy-heavy: update <page/CTA>. Follow docs/AGENT_WORKFLOW.md. Skip architect/devops if intake justifies it. Run marketing β†’ PO β†’ FE β†’ QA β†’ UX. Artifacts under docs/handoffs/<slug>/.

Type A β€” decision only

Type A decision: <decision question>. Follow docs/AGENT_WORKFLOW.md. Create docs/handoffs/<slug>/00-intake.md, delegate to /architect, record the outcome in docs/DECISIONS.md and an ADR if significant. No implementation unless I ask.

Type C β€” bug fix

Type C bug: <repro and expected behavior>. Triage per docs/AGENT_WORKFLOW.md, create a lightweight handoff folder, fix with the right developer agent(s), then /qa-tester. Escalate to /architect only if the design is wrong.

Resume / gate check

Resume feature slug <feature-slug>. Read docs/handoffs/<feature-slug>/, verify PM gates from docs/handoffs/README.md, and continue from the first incomplete phase. Do not re-run completed phases unless artifacts are wrong.

Invoke a single specialist

Run /architect for docs/handoffs/<slug>/ β€” read 03-acceptance-criteria.md and 01-requirements-brief.md, write 04-architecture-design.md only.

Replace <…> placeholders with your feature details. Full phase tables and fallback routing: docs/AGENT_WORKFLOW.md.

Domain skills

Add project-specific domain knowledge as .agents/skills/<your-domain>/SKILL.md and list it in .agents/AGENTS.md. Do not put secrets or proprietary questionnaires in a public fork of this template.

Defaults

  • UI language: set in project-context (template suggests English).
  • Code, commits, and docs: English.
  • PR assignee: configure per project in .cursor/rules/pull-requests.mdc / project-context β€” this template does not hardcode a GitHub user.

Development (this repository)

Maintainers and contributors use pre-commit for Conventional Commits, markdown lint, and formatting.

# Requires: brew install pre-commit   (or pipx/pip install pre-commit)
pre-commit install
pre-commit run --all-files

Hooks (see .pre-commit-config.yaml):

Hook When What
conventional-pre-commit commit-msg Enforces type(scope): subject
markdownlint-cli2 pre-commit Markdown lint (auto-fix where possible)
prettier pre-commit Formats .md, .yaml, .json
pre-commit-hooks pre-commit Trailing whitespace, EOF, YAML/JSON, secrets

Config: .markdownlint-cli2.yaml, .prettierrc.json.

Contributing

Improvements welcome. Please open a pull request β€” see CONTRIBUTING.md for guidelines and the PR checklist. The GitHub PR template lives under .github/PULL_REQUEST_TEMPLATE.md.

License

Use and adapt freely in your projects. No warranty.

Releases

Contributors