agentleFS
srinidhis05srinidhis05/agentura/skills/incubator/quality-gate/SKILL.md

quality-gate

Skill9 starsChanged 9 months agoApache-2.0View on GitHub

You verify that the pit-builder and mobile-builder agents produced code that follows each repo's conventions. You clone both repos at the feature branches, run builds, and check for convention violations. You receive JSON with upstream results from both builders: Skip a repo if its success is false — only review repos that built successfully upstream. Gate: Repos cloned. Then check conventions: 1. Isolation — pit lives entirely under projects/<pit_name>/, no cross-project imports 2. Properties — @ConfigurationProperties with correct prefix 3.…

  • Reads credentials

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If any violations are found, set success: false and list them.

    line 116
  2. Distinctive:

    NEVER modify code — this is a read-only review agent.

    line 120
  3. Very specific:

    NEVER hardcode GITHUB_TOKEN.

    line 121
  4. Distinctive:

    If a repo clone or build fails, report the error — do not skip silently.

    line 123

“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “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

Quality Gate Agent

Task

You verify that the pit-builder and mobile-builder agents produced code that follows each repo's conventions. You clone both repos at the feature branches, run builds, and check for convention violations.

Input Format

You receive JSON with upstream results from both builders:

{
  "feature_name": "expense-tracker",
  "pit_name": "expense_tracker",
  "pit_name_hyphenated": "expense-tracker",
  "backend": {
    "pr_url": "https://github.com/your-org/backend-api/pull/42",
    "branch": "feat/pit-expense-tracker",
    "success": true
  },
  "frontend": {
    "pr_url": "https://github.com/your-org/mobile-app/pull/99",
    "branch": "feat/pit-expense-tracker",
    "success": true
  }
}

Execution Protocol

Phase 1: Clone Both Repos at Feature Branches

git clone --branch <backend.branch> --single-branch \
  https://x-access-token:${GITHUB_TOKEN}@github.com/your-org/backend-api.git /tmp/backend-api

git clone --branch <frontend.branch> --single-branch \
  https://x-access-token:${GITHUB_TOKEN}@github.com/your-org/mobile-app.git /tmp/mobile-app

Skip a repo if its success is false — only review repos that built successfully upstream.

Gate: Repos cloned.

Phase 2: Backend Review (backend-api)

cd /tmp/backend-api
./gradlew build -x test

Then check conventions:

  1. Isolation — pit lives entirely under projects/<pit_name>/, no cross-project imports
  2. Properties — @ConfigurationProperties with correct prefix
  3. ExceptionHandler — @ControllerAdvice scoped to the project's controller package
  4. @Timed — every controller endpoint has @Timed annotation
  5. ApiEnvelope — all responses wrapped in ApiEnvelope
  6. Jackson — no tools.jackson imports, only com.fasterxml.jackson
  7. README.md — exists with endpoint table

Gate: Backend review complete.

Phase 3: Frontend Review (mobile-app)

cd /tmp/mobile-app
./gradlew assembleDebug

Then check conventions:

  1. Package structure — UI under ui/<feature>/, data layer under data_layer/network/<feature>/
  2. Compose — screens use @Composable, ViewModels use @HiltViewModel
  3. Incubation banner — present on all screens
  4. Feature flag — navigation gated behind Remote Config check
  5. State management — ViewModels use StateFlow, not LiveData

Optionally:

./gradlew detekt

Gate: Frontend review complete.

Phase 4: Report

Write TASK_RESULT.json:

{
  "success": true,
  "summary": "Both repos pass build and convention checks",
  "backend_review": {
    "build": "pass",
    "violations": [],
    "warnings": ["Optional: consider adding integration test"]
  },
  "frontend_review": {
    "build": "pass",
    "violations": [],
    "warnings": []
  },
  "blocking_issues": 0,
  "total_warnings": 1
}

If any violations are found, set success: false and list them. Violations are convention breaks that should block merge. Warnings are suggestions.

Guardrails

  • NEVER modify code — this is a read-only review agent.
  • NEVER hardcode GITHUB_TOKEN.
  • Report facts only — did the build pass? Are conventions followed? No subjective opinions.
  • If a repo clone or build fails, report the error — do not skip silently.

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.