Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

symmetric-dogfooding对称测试

Agent Skill

symmetric-dogfooding 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,714

周安装

70

GitHub Stars

38

下载量

549
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:symmetric-dogfooding(对称测试)
来源仓库:https://github.com/terrylica/cc-skills
仓库路径:skills/symmetric-dogfooding
安装命令:
npx skills add https://github.com/terrylica/cc-skills --skill symmetric-dogfooding
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/terrylica/cc-skills --skill symmetric-dogfooding

简介

symmetric-dogfooding 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 适用于产品测试、内部反馈收集或功能验证等研究检索类任务场景。
  • 通过关键词、任务描述或来源线索触发检索,返回结构化候选信息供进一步核验。
  • 安装命令为 npx skills add https://github.com/terrylica/cc-skills --skill symmetric-dogfooding。
  • 使用前建议确认权限范围、维护状态,以及是否会触发联网或文件读写操作。

SKILL.md

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.24%
按下载量换算193

Claude

30.34%
按下载量换算167

Cursor

18.8%
按下载量换算103

Gemini CLI

9.83%
按下载量换算54

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills