cross-spec-validator

Validate coherence across multiple module specifications with six deterministic checks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Pyl-Tech/stream-coding --skill cross-spec-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cross-spec-validator
Source: https://github.com/Pyl-Tech/stream-coding/tree/main/.agents/skills/cross-spec-validator
Command: npx skills add https://github.com/Pyl-Tech/stream-coding --skill cross-spec-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents globally inconsistent multi-spec documentation from slipping through when each individual spec appears to pass its own gate.

Core Features & Use Cases

  • Cross-spec coherence validation: Runs deterministic checks to detect contradictions, naming drift, phantom references, and broken conventions across module specs.
  • Six enforcement checks before BUILD: Singleton/global consistency, constant naming consistency, bitfield/enum consistency, event/callback reentrancy, coverage matrix integrity, and dependency graph acyclicity.
  • Configurable, language-aware patterns: Uses .agents/cross-spec.config.yml with language auto-detection and bootstrap defaults when config is missing.
  • Report-driven remediation loop: Produces a consolidated JSON/markdown report and guides fixes until all checks pass.

Quick Start

Run the cross-spec validator for a multi-spec project by asking your agent to execute /validate-cross-spec and then fix the reported spec inconsistencies before re-running /spec-gate.

Frequently Asked Questions about cross-spec-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I catch cross-spec contradictions before build in a multi-spec project?

To catch cross-spec contradictions before build, validate coherence across multiple module specs using deterministic checks that detect naming drift and phantom references. This prevents globally inconsistent documentation from slipping through when each individual spec passes its own gate.

What is cross-spec consistency validation and when do I need it?

Cross-spec consistency validation detects contradictions, naming drift, and broken conventions across module specs. You need it during the SPEC stage when three or more module specs exist under the spec root, or immediately before the final spec gate preceding BUILD.

How do I check dependency graph acyclicity and event reentrancy across module specs?

Check dependency graph acyclicity and event reentrancy across module specs by running six deterministic enforcement checks via a configurable YAML-driven validator. It outputs a consolidated JSON and markdown report enforcing FAIL, WARN, and SKIP status rules.

Does the spec validator work without a custom configuration file?

The spec validator works without a custom configuration file by applying bootstrap defaults and language auto-detection. You can optionally provide a .agents/cross-spec.config.yml file to customize language-aware patterns for your specific project.

What's the best way to fix reported spec inconsistencies after validation?

The best way to fix reported spec inconsistencies is to follow the report-driven remediation loop. Review the consolidated JSON and markdown report, guide fixes until all checks pass, and then re-run the spec gate before proceeding to BUILD.

What specific checks are enforced to prevent global design drift in specs?

Six specific checks prevent global design drift in specs: singleton and global consistency, constant naming consistency, bitfield and enum consistency, event and callback reentrancy, coverage matrix integrity, and dependency graph acyclicity.