Ijfw workflow

From FerroxLabs/wayland-core · View interactive version

Ijfw workflow is an AI agent skill from the GitHub repository FerroxLabs/wayland-core. Universal project workflow with built-in quality auditing. Quick mode (fast brainstorm, ~5 min) or Deep mode (full plan with audits, ~30 min). Auto-picks based on task size. Trigger: 'build', 'create', 'plan', 'new project', 'brainstorm', 'design', 'UI', 'website', 'dashboard', 'app', 'help me build

How to use this skill

Skill file

IJFW Workflow

Two modes, same principles, same invariants.

Donahoe Loop: BRAINSTORM -> PLAN -> EXECUTE -> VERIFY -> SHIP -> MEASURE
              |<--- memory recall at every entry --->|
              |<--- Trident cross-audit on request --->|

RUNTIME BOOTSTRAP AND FALLBACKS

Before the first workflow write or command invocation, inspect whether

.ijfw/memory/ exists so the auto-picker and empty-state opener can use that

signal accurately. Then ensure .ijfw/memory/ and .planning/ exist before

writing artifacts. If the ijfw CLI is unavailable in this session, continue

with markdown files and visible chat checklists, then state the exact CLI

command the user can run later. Optional commands such as ijfw cross,

ijfw design, ijfw recover, ijfw blackboard, ijfw team, and ijfw swarm

must degrade to explicit written artifacts instead of blocking the workflow.


AUTO-PICKER (runs first, every time)

Deterministic signals, visible reasoning, no friction.

| Signal | Points towards |

|---|---|

| Prompt < 15 words | Quick |

| Prompt has clear verb + object | Quick |

| Vague verbs alone ("improve", "fix", "handle", "deal with") | Deep |

| "New project", "major refactor", "launch", "design" | Deep |

| Project dir has no .ijfw/memory/ | Deep |

| Explicit "brainstorm", "quick idea", "just sketch" | Quick |

Protocol:

  1. Read signals silently.
  2. Say in one line: Reading this as <Quick|Deep> -- <reason>. Say "go deeper" / "just quick" to switch.
  3. If signals tie, ask once: Quick or Deep? Accept any affirmative shortcut ("q" / "d").
  4. Start immediately. The user should never wait on a modal.

Mid-flow escalation: user can say go deeper at any Quick step; skill re-enters Deep at the equivalent module. Mid-flow de-escalation: just quick collapses the remaining Deep modules into a single LOCK.


EMPTY-STATE OPENER

First session in a project (no .ijfw/memory/ or zero entries in it) is the onboarding moment. Do not stay silent. Open with one line:

Clean slate here. Want me to run a 5-minute Quick brainstorm on what we're building, or jump straight in?

User replies brainstorm / jump in / custom intent. If they jump in, still offer memory hooks for the first 3 turns so decisions get captured. If they brainstorm, route into QUICK mode FRAME. Either way, .ijfw/memory/ gets bootstrapped silently.

If memory is populated but the last handoff is >7 days old, open with a softer beat: Welcome back -- last handoff was <N> days ago. Quick recap? User says recap / new task / actual intent.


BRAINSTORM DISCIPLINE (invariants)

Hard rules. Violating any of these is a workflow failure worth auditing.

  1. One question at a time. Never dump a numbered list and wait. Ask, get the answer, absorb, ask the next.
  2. No offscreen research. If you dispatch an Explore / scout agent, paste a synthesis (3-5 bullets + contradictions + plan implications) in-chat BEFORE using it for anything.
  3. No skipping to the plan. plan.md is written only after the user has explicitly confirmed the brief.
  4. No auto-advance. Audit gates are user-facing checklists, not silent passes.
  5. Visible deliverables. Every artifact (brief.md, research.md, plan.md) is summarized to the user in-chat when written.
  6. Intermediate thinking is tight output, not monologue. Thirty words, then the next question.

Failure signatures to catch in yourself: about to write plan.md without user confirming brief; about to dispatch a research agent whose output will not be paraphrased back; about to say "Phase N complete, ready to build" in a turn where the user has not seen the intermediate findings.


MEMORY HOOK (every FRAME step)

At the start of every brainstorm or plan, call ijfw_memory_recall with the goal text when the memory tool is available. If it is unavailable, read the visible memory files under .ijfw/memory/ when possible; if neither is available, continue and say clean slate -- memory unavailable this turn.

I remember: decision from <project> on <date> -- <1-line summary>. Pull full context?

This is the single biggest superpower IJFW delivers. Never skip the attempt. If memory is empty, say so ("clean slate -- nothing recalled") so the silence is intentional, not absence of effort.


QUICK MODE -- 5 moves, 3-5 min

For focused work. Picks up from current context. Each move has ONE input slot.

Move 1 -- FRAME (45s)

Move 2 -- WHY (30s)

Move 3 -- SHAPE (60s)

> A: <approach> -- tradeoff: <cost>

> B: <approach> -- tradeoff: <cost>

> C: <approach> -- tradeoff: <cost>

Move 4 -- STRESS (30s)

Move 5 -- LOCK (15s)

Quick-mode closer: You went from <original-ask> to locked brief with <N> risks mitigated in <M> minutes. Receipt for the work.


DEEP MODE -- 6 required modules + 3 optional

For substantial projects. Modules are a spine, not a checklist. Every module has a memory hook, a visible artifact, and a one-word commit.

Required spine

Module 1 -- FRAME (3 min)

Module 2 -- RECON (5-10 min)

Module 3 -- HMW (3 min)

Module 4 -- DIVERGE (8 min)

Module 5 -- CONVERGE (5 min)

Module 6 -- LOCK (2 min)

Optional modules (auto-triggered)

EXTERNAL BRIEF (5 min) -- mini PR/FAQ

Auto-triggers when: project has end-users, public launch, marketing surface, or user says "product".

Writes a 2-paragraph press-release + 5-question FAQ. Forces customer-POV thinking.

ANTI-SCOPE (2 min) -- "what we won't do"

Auto-triggers when: 5+ candidate features surfaced in DIVERGE, or domain is feature-heavy (CRM, dashboards, admin panels).

Assistant lists 5 things we could build but won't. User confirms or pulls one back in.

TRIDENT CROSS-CRITIQUE (~2 min) -- external model challenge

Auto-triggers when: new project, major refactor, public launch, or LOCK on brief > 20 lines.

Fires ijfw cross critique <brief> in background. Surfaces consensus + contested findings. User decides.

User override: skip Trident or force Trident at any LOCK.


POST-BRAINSTORM WORKFLOW

After LOCK, the brief drives every downstream phase. Same discipline, same memory hooks, same positive framing.

PLAN (after LOCK)

Design auto-fire -- if plan mentions UI, dashboard, component, page, layout, CSS, styles, content layout, brand system, document design, diagram, presentation, marketing surface, or another visual artifact:

Plan audit -- run ijfw plan-check or follow inline checklist, not silent:

EXECUTE

Phase banner -- emit at every phase transition (Brainstorm, Plan, Execute, Verify, Ship):

IJFW > BRAINSTORM (Quick mode, step 2 of 5)
IJFW > PLAN (Deep mode, module 3 of 6)
IJFW > EXECUTE (Wave 2 of 4)

Team announcement -- at plan→execute transition, emit before dispatching agents:

Assembling team: [Opus] Architect, 2x [Sonnet] Builders, [Haiku] Scout
Dispatching Wave 1...

Swarm preparation (Deep mode or 2+ parallel agents):

Task micro-audit -- one line per task:

Phase audit -- at wave/milestone boundaries:

LIVE VISUAL COMPANION (UI/design projects, opt-in)

For visual software work -- HTML, app UI, dashboards, interfaces, landing

pages, components, design systems -- offer a live preview before SHAPE:

This is visual. Want me to open a live preview while we brainstorm?

yes runs ijfw design start, writes/pushes real HTML mockups with

ijfw design push <file.html> [more.html ...], and keeps http://localhost:<port>/design

open while options evolve. Use this for brainstorm variants, design choices,

and implementation review. Durable visual identity still belongs in DESIGN.md;

the live companion is the fast feedback loop.

For architecture-only visuals, use Mermaid in .ijfw/visual/<phase>.md.

Skip visual companion for non-visual work where the brief and plan carry enough

structure.

VERIFY

SHIP

Ship gate -- single pass:


NARRATION (every transition)

One sentence at every phase entry and mid-step ping. Format:

Phase <name> -- Move <n> -- <what's happening>.

Examples:

Model routing (mandatory): Before every agent dispatch, name the actual platform/model or role tier available in the current runtime, for example Routing to builder for implementation or Routing to Sonnet for this build when Claude tiers are available. Never dispatch silently.

No hardcoded phase numbers. Narration tracks the current workflow step, not historical plan-doc coordinates.


POSITIVE FRAMING (enforced everywhere)

Replace negatives with reframes for brainstorming, planning, and ordinary user-facing progress. Do not rewrite exact failure terminology in audit, CI, preflight, security, exception, test, or log contexts where precise status words are required.

| Never | Always |

|---|---|

| "found problems" | "surfaced X points" |

| "failed" | "didn't complete -- try again?" |

| "error" (as header) | "heads up" / "one thing" |

| "missing" | "ready to add" |

| "not supported" | "standing by" |

| "broken" | "needs a sharpening pass" |

End-of-phase closer is a receipt, not a report:

You went from <input> to <outcome> in <time>.


USER OVERRIDES (one-word commits)

The skill accepts these at any prompt:


TASK TRACKING USAGE (mandatory)

When the platform exposes native task tracking, create one task per specialist or prepared swarm task before dispatch. Mark in_progress when work starts, then completed or blocked as soon as each worker reports back. If no native tracker exists, use .ijfw/blackboard/tasks.json plus concise progress updates.

[Model] prefix required -- every task title includes the model tier:

[Haiku] Scout: explore auth module
[Sonnet] Build: implement login flow
[Opus] Audit: cross-audit Wave 1

The user must see real-time progress in the platform's native form. Use strikethrough task lists where supported; otherwise use concise status updates plus .ijfw/blackboard/tasks.json. Silent dispatch is a workflow violation.

Quick-mode minimum: 5 tasks (one per move).

Deep-mode minimum: one per module + one per specialist + one per audit gate + ship gate. ~12-18 tasks per full run.


NAMING-GAP AUDIT (every turn)

Before emitting any "next step" text, scan for foreign plugin prefixes -- any <plugin>: pattern where <plugin> is not ijfw. If found as an action verb, rewrite to the IJFW-native equivalent or halt with: Rewrite needed -- foreign plugin verb detected.

Specialist swarm members (code-reviewer, silent-failure-hunter, pr-test-analyzer, type-design-analyzer) are allowed. Foreign plugin commands are not.


STATE FILE (Deep Mode)

Write .ijfw/state/workflow.json at every transition:

{
  "mode": "deep",
  "module": "HMW",
  "last_commit": "lock",
  "artifacts": ["brief.md", "research.md"],
  "next": "DIVERGE"
}

On session resume: read this file, echo the current state, offer continue / restart. Memory recall also fires on resume so context is live.


Invariant: every move the user experiences should make them feel smarter and more in control -- memory recall surfaces forgotten context, Assistant proposes before the user has to, Trident challenges before they commit, one word advances. Anything that makes them feel stupid or stuck is a workflow bug.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.