agentleFS
amiable-devamiable-dev/llm-council/.github/skills/council-gate/SKILL.md

council-gate

Skill43 starsChanged 11 months agoMITView on GitHub

Quality gate using LLM Council multi-model consensus for CI/CD pipelines. Use for automated approval workflows and pipeline quality checks. Keywords: gate, CI, CD, pipeline, automated approval, quality gate, GitHub Actions

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add AI-powered quality checks to GitHub Actions

    line 26
  2. Distinctive:

    All deliberations are saved for audit:

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Council Gate Skill

Automated quality gate using multi-model consensus for CI/CD pipelines.

When to Use

  • Add AI-powered quality checks to GitHub Actions
  • Automate PR approval workflows
  • Gate deployments on multi-model verification
  • Enforce quality standards in pipelines

Exit Codes

CodeVerdictCI/CD Behavior
0PASSPipeline continues
1FAILPipeline fails
2UNCLEARPipeline pauses for human review

Transcript Location

All deliberations are saved for audit:

.council/logs/{timestamp}-{hash}/
├── request.json      # Input snapshot
├── stage1.json       # Model responses
├── stage2.json       # Peer reviews
├── stage3.json       # Synthesis
└── result.json       # Final verdict

GitHub Actions Integration

name: Council Quality Gate

on:
  pull_request:
    branches: [main, master]

jobs:
  council-gate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install LLM Council
        run: pip install 'llm-council-core[http]'

      - name: Run Council Gate
        env:
          OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
        run: |
          llm-council gate \
            --snapshot ${{ github.sha }} \
            --rubric-focus Security \
            --confidence-threshold 0.8

      - name: Upload Transcript
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: council-transcript
          path: .council/logs/

Configuration

ParameterDefaultDescription
confidence_threshold0.7Minimum confidence for PASS
rubric_focusnullFocus area (Security, Performance)
timeout300sMaximum execution time
tierbalancedCouncil tier (quick, balanced, high)

Output Schema

{
  "verdict": "pass",
  "confidence": 0.85,
  "blocking_issues": [],
  "rationale": "All models agreed...",
  "exit_code": 0,
  "transcript_path": ".council/logs/2025-12-31T...",
  "partial": false,
  "timeout_fired": false,
  "completed_stages": ["stage1", "stage2", "stage3"]
}

Under LLM_COUNCIL_STRUCTURED_FINDINGS=true (ADR-051) the response also carries a typed findings array (all severities) and the verdict is computed as fail iff any critical finding exists. blocking_issues is then the critical subset. Gate on the verdict / exit_code, not on blocking_issues == [] (empty even on real FAILs on the default prose-scrape path).

Timeout Handling (ADR-040)

If timeout_fired: true, the gate timed out before completing all stages. This returns exit code 2 (UNCLEAR), pausing the pipeline for human review. Check completed_stages to see how far it got. Consider using --tier quick for faster gate checks (the tier sets the timeout budget; there is no separate --timeout flag).

Example Usage

# Basic gate check
llm-council gate --snapshot $(git rev-parse HEAD)

# Security-focused gate
llm-council gate --snapshot $(git rev-parse HEAD) --rubric-focus Security --confidence-threshold 0.9

# Quick tier for faster feedback
llm-council gate --snapshot $(git rev-parse HEAD) --tier quick

Progressive Disclosure

  • Level 1: This metadata (~200 tokens)
  • Level 2: Full instructions above (~800 tokens)
  • Level 3: See references/ci-cd-rubric.md for CI/CD-specific scoring

Related Skills

  • council-verify: General verification
  • council-review: Code review with feedback

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.