Skip to content
symmetric-dogfooding logo

Symmetric Dogfooding

symmetric-dogfooding

Bidirectional integration validation where two repositories validate each other before release.

terrylica/cc-skills0installs75stars

SKILL.md

Full skill instructions

Symmetric Dogfooding

Bidirectional integration validation pattern where two repositories each consume the other for testing, ensuring both sides work correctly together before downstream adoption.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

Pattern Overview

┌─────────────────────────────────────────────────────────────────┐
│                    SYMMETRIC DOGFOODING                         │
│                                                                 │
│        Repo A ◄─────── mutual validation ───────► Repo B        │
│                                                                 │
│   EXPORTS:                              EXPORTS:                │
│   - Library/​API                         - Library/​API           │
│   - Data structures                     - Data structures       │
│                                                                 │
│   VALIDATES WITH:                       VALIDATES WITH:         │
│   - Repo B real outputs                 - Repo A real outputs   │
│   - Production-like data                - Production-like data  │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

When to Use This Skill

Use this skill when:

  • Two repos have a producer/​consumer relationship
  • APIs evolve independently and need integration testing
  • Data formats may drift between repos
  • Both repos are actively developed

TodoWrite Task Templates

Template A: Setup Symmetric Dogfooding Between Two Repos

1. Identify integration surface (exports from A consumed by B and vice versa)
2. Document data formats, schemas, API signatures at boundary
3. Configure cross-repo dev dependencies in both repos
4. Pin versions explicitly (tags or SHAs, never main)
5. Create integration/ test directory in both repos
6. Write bidirectional validation tests (A validates with B outputs, B validates with A outputs)
7. Add validation tasks to mise.toml or Makefile
8. Document pre-release protocol in both CLAUDE.md files
9. Run full symmetric validation to verify setup
10. Verify against Symmetric Dogfooding Checklist below

Template B: Pre-Release Validation

1. Run validate:symmetric task in releasing repo
2. Check if other repo has pending changes affecting integration
3. If yes, test against other repo's feature branch
4. Document any failures in validation log
5. Fix integration issues before release
6. Update version pins after successful validation
7. Coordinate if breaking changes require simultaneous release
8. Verify against Symmetric Dogfooding Checklist below

Template C: Add New Integration Point

1. Identify new export/​import being added
2. Update integration surface documentation
3. Add tests in both repos for new integration point
4. Run symmetric validation in both directions
5. Update version pins if needed
6. Verify against Symmetric Dogfooding Checklist below

Symmetric Dogfooding Checklist

After ANY symmetric dogfooding work, verify:

  • Both repos have integration tests that import the other
  • Version pins are explicit (tags or commit SHAs)
  • Pre-release checklist includes cross-repo validation
  • Integration tests use real data (not mocks of the other repo)
  • Breaking changes coordination documented
  • Validation task runnable via single command

Post-Change Checklist (Self-Maintenance)

After modifying THIS skill:

  1. Templates cover common symmetric dogfooding scenarios
  2. Checklist reflects current best practices
  3. Example in references/ still accurate
  4. Append changes to evolution-log.md

Implementation Guide

Phase 1: Discovery and Mapping

Identify the integration surface:

  • List all exports from Repo A consumed by Repo B
  • List all exports from Repo B consumed by Repo A
  • Document data formats, schemas, API signatures

Map validation scenarios:

  • What real-world data from B can validate A outputs?
  • What real-world data from A can validate B outputs?
  • Identify edge cases that only appear in production usage

Phase 2: Dependency Configuration

Configure cross-repo dev dependencies:

Python (uv/​pip):

# Repo A pyproject.toml
[project.optional-dependencies]
validation = ["repo-b"]

[tool.uv.sources]
repo-b = { git = "https://github.com/​org/​repo-b", tag = "<tag>" }  # SSoT-OK
# Repo B pyproject.toml
[project.optional-dependencies]
validation = ["repo-a"]

[tool.uv.sources]
repo-a = { git = "https://github.com/​org/​repo-a", tag = "<tag>" }  # SSoT-OK

Rust (Cargo):

[dev-dependencies]
repo-b = { git = "https://github.com/​org/​repo-b", tag = "<tag>" }  # SSoT-OK

Node.js:

{
  "devDependencies": {
    "repo-b": "github:org/​repo-b#<tag>"
  }
}

Critical: Pin to tags or commit SHAs. Never use main/​master branches.

Phase 3: Test Infrastructure

Directory structure in both repos:

repo-a/
└── tests/
    ├── unit/              # Internal tests
    └── integration/       # Tests using repo-b real outputs
        └── test_with_repo_b.py

repo-b/
└── tests/
    ├── unit/              # Internal tests
    └── integration/       # Tests using repo-a real outputs
        └── test_with_repo_a.py

Bidirectional validation test pattern:

# repo-a/​tests/​integration/​test_with_repo_b.py
"""Validate Repo A outputs work correctly with Repo B inputs."""

def test_a_output_consumed_by_b():
    # Generate output using Repo A
    a_output = repo_a.generate_data()

    # Feed to Repo B - should work without errors
    b_result = repo_b.process(a_output)

    # Validate the round-trip
    assert b_result.is_valid()

Phase 4: Task Automation

mise.toml example:

[tasks."validate:symmetric"]
description = "Validate against partner repo"
run = """
uv sync --extra validation
uv run pytest tests/​integration/ -v
"""

[tasks."validate:pre-release"]
description = "Full validation before release"
depends = ["test:unit", "validate:symmetric"]

Phase 5: Pre-Release Protocol

Before releasing Repo A:

  1. Run validate:symmetric in Repo A (tests against current Repo B)
  2. If Repo B has pending changes, test against Repo B branch too
  3. Update version pins after successful validation

Before releasing Repo B:

  1. Run validate:symmetric in Repo B (tests against current Repo A)
  2. If Repo A has pending changes, test against Repo A branch too
  3. Update version pins after successful validation

Coordinating breaking changes:

  • If A needs to break compatibility, update B first
  • If B needs to break compatibility, update A first
  • Consider simultaneous releases for tightly coupled changes

Anti-Patterns

Anti-PatternProblemSolution
One-direction onlyMisses half the bugsAlways test both directions
Using main branchUnstable, breaks randomlyPin to tags or SHAs
Skipping for small changesSmall changes cause big breaksAlways run full validation
Mocking partner repoDefeats the purposeUse real imports
Ignoring version matrixSilent production failuresMaintain compatibility matrix

References

External:


Troubleshooting

IssueCauseSolution
Dependency resolution failsVersion pin outdatedUpdate tag/​SHA pin to latest stable version
Tests pass locally fail CIDifferent partner repo versionPin exact same version in both environments
Breaking change not caughtOne-direction testing onlyRun validate:symmetric in BOTH repos
Integration surface unclearUndocumented exportsMap all imports/​exports before setting up tests
Too many parts movingUncoordinated releasesCoordinate breaking changes, test branches first
Mock data hiding bugsUsing stubs instead of realAlways import real partner repo for integration
Version matrix explosionToo many combinationsLimit support to N-1 versions, document clearly
Circular dependencyBoth repos require each otherUse optional-dependencies for validation only

Post-Execution Reflection

After this skill completes, reflect before closing the task:

  1. Locate yourself. — Find this SKILL.md's canonical path before editing.
  2. What failed? — Fix the instruction that caused it.
  3. What worked better than expected? — Promote to recommended practice.
  4. What drifted? — Fix any script, reference, or dependency that no longer matches reality.
  5. Log it. — Evolution-log entry with trigger, fix, and evidence.

Do NOT defer. The next invocation inherits whatever you leave behind.

More skills from terrylica

code-hardcode-audit logo
terrylica/cc-skills

code-hardcode-audit

Detect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.

75 152
View
calcom-access logo
terrylica/cc-skills

calcom-access

Access Cal.com API via CLI with 1Password API key. Use when user wants to list bookings, create event types, manage schedules, or.

75 0
View
schema-e2e-validation logo
terrylica/cc-skills

schema-e2e-validation

Earthly E2E validation for YAML schema contracts. TRIGGERS - schema validation, YAML schema, schema contracts, regenerate types.

75 0
View
glossary-management logo
terrylica/cc-skills

glossary-management

Manage terminology glossary with Vale. TRIGGERS - sync terms, glossary validation, add terms, Vale vocabulary.

75 0
View
log-reader logo
terrylica/cc-skills

log-reader

Read MetaTrader 5 log files. TRIGGERS - MT5 logs, Experts pane, indicator errors, compilation errors.

75 0
View
daemon-start logo
terrylica/cc-skills

daemon-start

Start the asciinema chunker daemon. TRIGGERS - start daemon, resume chunker, enable backup.

75 0
View
sred-commit logo
terrylica/cc-skills

sred-commit

Create a git commit with SR&ED (CRA tax credit) trailers. TRIGGERS - sred commit, sred, cra commit, tax credit commit, scientific research commit.

75 0
View
doppler-workflows logo
terrylica/cc-skills

doppler-workflows

Manage credentials and secrets through Doppler for publishing and deployment workflows. Use whenever the user needs to publish Python packages.

75 0
View
distributed-job-safety logo
terrylica/cc-skills

distributed-job-safety

Concurrency safety patterns for distributed pueue + mise + systemd-run job pipelines.

75 0
View
diagnose logo
terrylica/cc-skills

diagnose

Diagnose Kokoro TTS issues. TRIGGERS - kokoro not working, tts diagnose, kokoro error, tts troubleshoot.

75 0
View
bootstrap-monorepo logo
terrylica/cc-skills

bootstrap-monorepo

Autonomous polyglot monorepo bootstrap meta-prompt on the moon + proto + Bun stack (Nx-convergent). TRIGGERS - new monorepo, new repository, polyglot setup, scaffold repo, moon proto bootstrap, monorepo from scratch.

75 0
View
fork-intelligence logo
terrylica/cc-skills

fork-intelligence

Discover valuable GitHub fork divergence beyond stars. TRIGGERS - fork analysis, fork intelligence, find forks

75 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View