# 2892 Linting Discovery Protocol C691aead

> Linting Discovery Protocol

- Skill: `tools-only/2892-linting-discovery-protocol-c691aead` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/2892-linting-discovery-protocol-c691aead`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/2892-linting-discovery-protocol-c691aead/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/tools-only/2892-linting-discovery-protocol-c691aead

---

# Linting Discovery Protocol

Language plugins MUST implement a discovery sequence before executing quality gates. The harness does not assume lint/format/typecheck tools are present or configured.

---

## Discovery Sequence

1. **Git hook** — Check for pre-commit or similar hooks that run quality gates
2. **CI config** — Check for GitHub Actions, GitLab CI, etc. that define gate commands
3. **Project config** — Read pyproject.toml, package.json, etc. for tool config
4. **Fallback** — Use manifest defaults; if tool not found, skip that gate with a warning

---

## Order of Precedence

| Source | Use when |
|--------|----------|
| Project-local override | `.claude/quality-gates.md` or equivalent exists |
| Manifest declaration | Default from language manifest |
| Inferred from file types | No manifest; harness infers from extensions |

---

## Gate Skipping

- **typecheck: (none)** — Skip typecheck gate entirely (non-typed languages)
- **Tool not found** — Skip gate, log warning, continue pipeline
- **Config missing** — Use manifest defaults; warn if tool fails at runtime

