Ijfw team

From FerroxLabs/wayland-core · View interactive version

Ijfw team is an AI agent skill from the GitHub repository FerroxLabs/wayland-core. Generate project-specific agent teams during workflow Discovery. Trigger: 'set up a team', 'create agents for', or auto-triggered by ijfw-workflow deep mode after Discovery.

How to use this skill

Skill file

IJFW Team Assembly

Assembles a project-specific operating team. Team Assembly is

project-agnostic: it works for software, books, content, design, research,

business strategy, education, operations, and mixed projects.

Do not treat every team as a code-generation swarm. Generate the agents plus

the operating contracts that let those agents coordinate around artifacts,

claims, reviews, and handoffs.

CLI entry point: ijfw team init [--archetype <type>] [--name <team-name>].

ijfw team is the skill/workflow trigger; ijfw team init is the concrete

command that writes .ijfw/team/, .ijfw/agents/, and Codex agent files.


How It Works

  1. Receive project brief from Discovery stage (or ask for context)
  2. Infer one or more project archetypes and artifact types
  3. Identify the roles needed for creation, review, integration, and verification
  4. Generate portable agent markdown files with proper frontmatter
  5. Generate Codex custom-agent TOML when the Codex surface is present
  6. Generate the team charter and workflow manifest
  7. Present the proposed team and operating model for approval
  8. Save approved outputs to .ijfw/agents/, .codex/agents/, and .ijfw/team/ as applicable

Operating Outputs

Team Assembly 2.0 produces three coordinated surfaces:

Keep .ijfw/agents/*.md lightweight and role-focused. Put machine-readable

ownership, dependency, review, and coordination details in the charter and

workflow manifest.

Codex TOML agents are platform-native projections, not a separate source of

truth. Regenerate them with ijfw codex sync-agents after changing the team

charter, and check the local Codex install with ijfw codex doctor.


Project Archetypes

Infer archetypes from the brief, repository signals, existing files, and user

corrections. Support mixed projects instead of forcing one label.

Common archetypes:


Domain Templates (starting points -- always customize to the project)

Software Development

Book / Long-Form Writing

Content / Marketing

Business / Strategy

Design / Creative

Any Other Domain

If the project doesn't match a template above, ask:

"What roles would you need on a team to build this well?"

Then generate agents from the user's description. Map each role to a model tier:

Examples of non-standard teams:

The templates above are starting points. Every team is customized to the specific project.


Role Contract Guidance

Every role should have a contract in .ijfw/team/charter.json with:

Example contract shape:

{
  "name": "ux-researcher",
  "role_type": "research",
  "model": "sonnet",
  "effort": "medium",
  "phase_scope": ["discovery", "shape", "review"],
  "owns": [
    {"artifact_type": "user_flow", "paths": ["design/flows/**"]}
  ],
  "reviews": [
    {"artifact_type": "screen", "criteria": ["usability", "accessibility"]}
  ],
  "handoff": {
    "format": "markdown",
    "required_sections": ["findings", "risks", "recommendations", "changed_artifacts"]
  },
  "coordination": {
    "parallel_safe": true,
    "conflicts_with": ["ui-designer when editing design/tokens/**"],
    "claim_required": true
  }
}

Workflow Manifest Guidance

The workflow manifest describes work in domain terms. It is not just a file

list and must not assume code-only verification.

Each artifact entry should include:

Each wave should include:

Example manifest shape:

{
  "project_archetypes": ["software", "design"],
  "artifacts": [
    {
      "id": "design-preview-flow",
      "type": "prototype",
      "paths": [".planning/brainstorm/*.html"],
      "owner": "ui-designer",
      "reviewers": ["ux-designer", "accessibility-reviewer"],
      "depends_on": [],
      "verification": ["ijfw design push .planning/brainstorm/*.html"]
    }
  ],
  "waves": [
    {
      "id": "w1",
      "mode": "parallel",
      "artifact_ids": ["schema-foundation", "design-command-docs"]
    }
  ]
}

Agent File Format

Each generated agent follows this structure:

---
name: <role-name>
model: <haiku|sonnet|opus>
effort: <low|medium|high>
description: <when to use this agent -- 1-2 lines>
allowed-tools: <relevant tools for this role>
---

<Role-specific instructions for this project>

Context from project brief:
<Relevant details from the brief that this agent needs>

Rules:
<Role-specific rules>

Codex Custom Agent Format

When Codex is available, Team Assembly also writes .codex/agents/*.toml from

the same role contracts. If .codex/ is absent, unwritable, or intentionally

out of scope for the project, keep .ijfw/team/charter.json as canonical,

write .ijfw/agents/ markdown role files, and tell the user to run

ijfw codex sync-agents later from a writable Codex-enabled checkout. Each

Codex TOML file includes:

blackboard discipline, verification, handoff format, and non-revert rules

Optional Codex-only model fields are included only when the role explicitly

defines them. Keep the canonical role contract in .ijfw/team/charter.json;

use ijfw codex sync-agents to refresh TOML files after team edits.

Codex runtime caveat: some tool-backed sessions expose a generic spawn_agent

without named custom-agent invocation. In that case, use the generated TOML as

durable role documentation and paste ijfw swarm prompt <task-id> --codex into

the built-in worker or explorer agent. The prompt is designed to carry the full

artifact scope and blackboard contract even without named custom-agent routing.


Team Presentation

After generating, present the team and operating outputs as:

Project team ready:

  architect (opus)  -- system design, security model, API surface
  senior-dev (sonnet) -- auth flow, payment integration, complex features
  dev (sonnet) -- CRUD endpoints, tests, UI components
  qa (sonnet) -- test strategy, edge cases, regression suite
  security (opus) -- threat model, auth audit, data protection

Agents saved to .ijfw/agents/
Codex agents saved to .codex/agents/ when Codex agent sync is available; otherwise .ijfw/team/charter.json remains canonical
Charter saved to .ijfw/team/charter.json
Workflow saved to .ijfw/team/workflow.json
Codex health check: ijfw codex doctor
Adjust with: "swap qa for a dedicated performance engineer"

Positive framing. Team is "ready" not "generated." Feels like hiring, not configuring.


Execution Model

During workflow Execute stage, tasks are dispatched through the workflow

manifest and charter:

Review examples:


Blackboard Coordination

Team Assembly should prepare agents to coordinate through the project

blackboard when execution begins:

Claims are artifact-aware. A claim can be a file glob, chapter, design token

set, research corpus, strategy model, lesson plan, or any project-specific

artifact. Agents must release or hand off claims when their task completes.


Worktree Policy

Worktrees are optional and only for code-heavy projects or code-heavy portions

of mixed projects.

Use git worktrees when:

Do not require worktrees for:

For non-code and mixed non-code work, use blackboard claims, artifact-scoped

output paths, and staged review gates instead.


Custom Agent Requests

User can always:

Modifications update .ijfw/agents/ immediately. AGENTS.md remains the

canonical cross-platform instruction surface; after team changes, update only

the IJFW-AGENTS managed region with the current role names, owned artifacts,

and agent file paths. Preserve all content outside IJFW markers. If the

block-aware AGENTS merger is available, use it; otherwise record a checkpoint

and state exactly which AGENTS region still needs mirroring.


Portability

Agents in .ijfw/agents/ work with any platform that reads agent markdown.

If .forge/ directory exists, IJFW also reads agents from there.

.ijfw/ and .forge/ are treated as compatible project directories.

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.