All skills
flutter avatar

/grill-with-docs

@ae88b4d official
by flutterflutter/skills3k stars
182

Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

Use this Skill: https://skilld.dev/gh/flutter/skills/grill-with-docs

This session only. Nothing lands on disk.

CONTEXT-FORMAT.md

≈787 tokens on demand. Your agent reads this file only when SKILL.md points to it.

CONTEXT.md Format

Structure

# {Context Name}

{One or two sentence description of what this context is and why it exists.}

## Language

**Order**:
{A concise description of the term}
_Avoid_: Purchase, transaction

**Invoice**:
A request for payment sent to a customer after delivery.
_Avoid_: Bill, payment request

**Customer**:
A person or organization that places orders.
_Avoid_: Client, buyer, account

## Relationships

- An **Order** produces one or more **Invoices**
- An **Invoice** belongs to exactly one **Customer**

## Example dialogue

> **Dev:** "When a **Customer** places an **Order**, do we create the **Invoice** immediately?"
> **Domain expert:** "No — an **Invoice** is only generated once a **Fulfillment** is confirmed."

## Flagged ambiguities

- "account" was used to mean both **Customer** and **User** — resolved: these are distinct concepts.

Rules

  • Be opinionated. When multiple words exist for the same concept, pick the best one and list the others as aliases to avoid.
  • Flag conflicts explicitly. If a term is used ambiguously, call it out in "Flagged ambiguities" with a clear resolution.
  • Keep definitions tight. One sentence max. Define what it IS, not what it does.
  • Show relationships. Use bold term names and express cardinality where obvious.
  • Only include terms specific to this project's context. General programming concepts (timeouts, error types, utility patterns) don't belong even if the project uses them extensively. Before adding a term, ask: is this a concept unique to this context, or a general programming concept? Only the former belongs.
  • Group terms under subheadings when natural clusters emerge. If all terms belong to a single cohesive area, a flat list is fine.
  • Write an example dialogue. A conversation between a dev and a domain expert that demonstrates how the terms interact naturally and clarifies boundaries between related concepts.

Single vs multi-context repos

Single context (most repos): One CONTEXT.md at the repo root.

Multiple contexts: A CONTEXT-MAP.md at the repo root lists the contexts, where they live, and how they relate to each other:

# Context Map

## Contexts

- [Ordering](./src/ordering/CONTEXT.md) — receives and tracks customer orders
- [Billing](./src/billing/CONTEXT.md) — generates invoices and processes payments
- [Fulfillment](./src/fulfillment/CONTEXT.md) — manages warehouse picking and shipping

## Relationships

- **Ordering → Fulfillment**: Ordering emits `OrderPlaced` events; Fulfillment consumes them to start picking
- **Fulfillment → Billing**: Fulfillment emits `ShipmentDispatched` events; Billing consumes them to generate invoices
- **Ordering ↔ Billing**: Shared types for `CustomerId` and `Money`

The skill infers which structure applies:

  • If CONTEXT-MAP.md exists, read it to find contexts
  • If only a root CONTEXT.md exists, single context
  • If neither exists, create a root CONTEXT.md lazily when the first term is resolved

When multiple contexts exist, infer which one the current topic relates to. If unclear, ask.

Source: SKILL.md on GitHub

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides a structured method for refining project documentation, glossaries, and architectural decisions through an interactive interview process. It focuses on internal project consistency and does not perform any dangerous operations.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at ae88b4d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 5 months ago
  • Documentation
  • domain-driven-design
  • planning
  • adr
  • terminology
  • codebase-exploration
  • design-review
  • context-mapping

README badge

README badge for flutter/skills/grill-with-docs

Conducts a structured interview of your design plan against existing domain terminology and documented decisions, surfacing conflicts and gaps in the codebase. Updates CONTEXT.md and ADRs inline as the conversation resolves each decision point.

Generated from the current SKILL.md.

What's the difference between this skill and a standard code review or design doc feedback session?
This skill systematically challenges your plan against your project's existing domain model, terminology, and documented decisions (CONTEXT.md and ADRs), then updates those docs inline as ambiguities are resolved. It's not just critique — it's domain alignment plus documentation maintenance in one session.
Does this skill explore my codebase, or does it only work from what I tell it?
It actively explores your codebase to answer questions and validate claims. If a question can be resolved by reading code, it will do that instead of asking you. It also searches for existing CONTEXT.md and ADR files to cross-reference against.
Will this create new documentation files, or just update existing ones?
It creates files lazily — only when you've resolved something that needs to be captured. It will create CONTEXT.md on first use if it doesn't exist, and create docs/adr/ only when an ADR is genuinely needed (hard to reverse, surprising without context, result of a real trade-off).
How does this handle repos with multiple bounded contexts?
If your repo has a CONTEXT-MAP.md at the root, the skill recognizes you have multiple contexts and looks for CONTEXT.md and docs/adr/ folders within each context directory (e.g. src/ordering/CONTEXT.md).

Generated from the current SKILL.md. These answers refresh after source changes.