Skip to content
Agentmart
Submit a tool

domains

ArcheFlow domain adapters (code, writing, research): terminology, metrics, review focus and context for non-code runs.

Skill by XORwell

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xorwell-domains

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

ArcheFlow domain adapters (code, writing, research): terminology, metrics, review focus and context for non-code runs.

Use cases: writing, research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/domains

What's inside

Skill name
domains
Description
ArcheFlow domain adapters (code, writing, research): terminology, metrics, review focus and context for non-code runs.
License
MIT
Instructions
95 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Domain Adapter System

Adapts the PDCA pipeline and archetype system to specific domains (writing, code, research) so events, metrics, reviews, and context use domain-appropriate terminology.

## Domain Registry

Domain definitions live in `.archeflow/domains/<name>.yaml`. Each maps generic concepts to domain-specific equivalents.

### Concept Mapping

| Generic Concept | Code | Writing | Research |
|----------------|------|---------|----------|
| implementation | code changes | draft/prose | draft/analysis |
| tests | automated tests | consistency checks | citation verification |
| files_changed | files changed | word count delta | section count |
| test_coverage | test coverage % | voice drift score | source coverage |
| code_review | code review | prose review | peer review |
| build | build/compile | compile/export | compile (LaTeX/PDF) |
| deploy | deploy | publish | submit/publish |
| bug | bug | continuity error | unsupported claim |
| feature | feature | scene/chapter | section |

### Metrics by Domain

| Code | Writing | Research |
|------|---------|----------|
| files_changed | word_count | word_count |
| lines_added/removed | voice_drift_score | citation_count |
| tests_added | dialect_density | source_diversity |
| tests_passing | scene_count | claim_count |
| coverage_delta | dialogue_ratio | unsupported_claims |

### Review Focus by Domain

| Reviewer | Code | Writing | Research |
|----------|------|---------|----------|
| Guardian | security, breaking changes, deps, error handling | plot coherence, character consistency, timeline, continuity | factual accuracy, citation validity, logic, methodology |
| Sage | code quality, coverage, docs, patterns | voice consistency, prose quality, dialect authenticity | argument structure, clarity, tone, completeness |
| Skeptic | design assumptions, scalability, edge cases | premise strength, motivation, ending satisfaction | (default) |
| Trickster | malformed input, races, error paths, dep failures | reader confusion, pacing dead spots, disbelief breaks | (default) |

### Model Overrides

Domains can override default model assignments:

| Domain | Override | Rationale |
|--------|----------|-----------|
| Writing | maker: sonnet | Prose quality is the product |
| Writing | custom reviewer: sonnet | Voice evaluation needs taste |
| Research | maker: sonnet | Analysis quality matters |
| Code | (none) | Defaults are calibrated for code |

### Context Injection by Domain

Domains declare which extra files agents should read per phase. Context injection is additive (on top of standard ArcheFlow context).

A domain file in `.archeflow/domains/` can come with the repository, so its context entries follow the lens rule: only plain relative paths inside the project (letters, digits, `.`, `_`, `-`, `/`; no leading `/` or `-`, no `..`, no `~`, `$`, backticks, globs or spaces). Skip any other entry with a warning, and read files with the file-reading tool, never through a shell command.

| Phase | Code | Writing |
|-------|------|---------|
| always | README.md, config.yaml | voice profile, persona, characters |
| plan | relevant source files, existing tests | series config, previous stories, brief |
| do | Creator's proposal, test fixtures | scene outline, voice profile |
| check | git diff, risk section | voice profile (Sage), outline (Guardian), characters |

## Domain Detection

Auto-detects at `run.start`. Result stored in event stream.

| Priority | Signal | Domain |
|----------|--------|--------|
| 1 | CLI `--domain <name>` | as specified |
| 2 | Team preset `domain:` field | as specified |
| 3 | Writing-domain config exists | writing |
| 4 | `*.bib` or `references/` exists | research |
| 5 | `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`, `Makefile` | code |
| 6 | No markers | code (default) |

## Adding a New Domain

1. Create `.archeflow/domains/<name>.yaml` with `name`, `concepts`, `metrics` (minimum required)
2. Optionally add `review_focus`, `context`, `model_overrides`
3. Missing sections fall back to `code` domain defaults
4. Test with `--domain <name> --dry-run`

## How Domains Affect Orchestration

- **Reports** use domain-translated terms (e.g., "word count delta" instead of "files changed")
- **Events** include domain-relevant metrics in `agent.complete` and `run.complete` payloads
- **Reviewers** receive domain-specific focus checklists (archetype personality stays the same)
- **Context injection** adds domain-declared files to each agent's prompt
- **Model overrides** change which model an archetype uses (interacts with cost-tracking)
- **One domain per run.** Multi-domain projects use separate runs.

From XORwell/archeflow, MIT.

More from XORwell/archeflow

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 3, 2026 (27 days ago)
Last release
Sep 24, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from XORwell

Cite this page

domains skill. Agent Mart. https://agentmart.dev/skills/xorwell-domains (last updated 2026-10-24)