codacy
Skill2 starsChanged 10 days agoMITView on GitHub
Use the Codacy CLI for local static analysis and cloud data queries. Use the Analysis CLI (`codacy-analysis`) to run local analysis without pushing to Codacy Cloud, or the Cloud CLI (`codacy`) to query remote repositories, issues, security findings, pull requests, and patterns. Use when the user wants to analyze code locally, check code quality metrics on Codacy Cloud, inspect remote PR results, browse vulnerabilities, or search patterns — even if they just say "run codacy" or "check code quality". Not for generic linter triage (use static-analysis).
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- d-oit/rust-2026-templatetheir own version, first seen Jun 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- d-oit/rust-2026-template★ 15same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository63 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/avoid-ai-writing/AGENTS.mdAGENTS.md
- .agents/skills/do-web-doc-resolver/AGENTS.mdAGENTS.md
- .agents/skills/skill-evaluator/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- accessibility-auditorSkill
- agent-browserSkill
- agentic-abstentionSkill
- agents-mdSkill
- api-design-firstSkill
- architecture-diagramSkill
- avoid-ai-writingSkill
- cicd-pipelineSkill
- cloudflare-worker-apiSkill
- codeberg-apiSkill
- code-review-assistantSkill
- css-render-performanceSkill
- database-devopsSkill
- debuggerSkill
- delegateSkill
- dependency-upgradesSkill
- dist-channel-selectionSkill
- docs-hookSkill
- document-rendering-and-locatorsSkill
- dogfoodSkill
- dora-reportSkill
- do-web-doc-resolverSkill
- durable-objectsSkill
- eu-ai-act-complianceSkill
- git-github-workflowSkill
- goap-agentSkill
- implementerSkill
- intent-classifierSkill
- iterative-refinementSkill
- jules-delegatorSkill
- learnSkill
- lifecycle-managementSkill
- local-context-sanitizationSkill
- memory-contextSkill
- migration-refactoringSkill
- nested-build-isolationSkill
- privacy-firstSkill
- progressive-deliverySkill
- pwa-offline-syncSkill
- reader-ui-uxSkill
- readme-best-practicesSkill
- secrets-managementSkill
- secure-invite-and-accessSkill
- security-code-auditorSkill
- shell-script-qualitySkill
- skill-creatorSkill
- skill-evaluatorSkill
- static-analysisSkill
- testing-strategySkill
- test-runnerSkill
- triz-solverSkill
- turso-dbSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
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
- Very specific: line 66
Always use --output-format json for structured output in agentic workflows.
- Very specific: line 132
Use --output json on any command for machine-readable output.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Glossary: See glossary.md for shared definitions of Codacy concepts (issues, findings, severity, coverage, tools, patterns, etc.).
Codacy provides two CLI tools:
- Analysis CLI (
codacy-analysis): Runs static analysis locally without pushing code to Codacy Cloud - Cloud CLI (
codacy): Queries remote Codacy data (repositories, issues, PRs, security findings)
Both share credentials at ~/.codacy/credentials. Logging in with either CLI applies to both.
When to Use
- User wants to analyze code locally without pushing to Codacy Cloud
- Need to run CLI-based linting (ESLint, Ruff, Semgrep, RuboCop)
- Scanning staged changes or setting up local Codacy tooling
- User wants to check code quality metrics on Codacy Cloud
- Need to inspect remote PR analysis results or browse vulnerabilities
- Enabling/disabling tools or searching patterns on Codacy Cloud
- Even if they just say "run codacy" or "check code quality"
Setup
# Install Analysis CLI (local analysis)
npm i -g @codacy/analysis-cli
# Install Cloud CLI (remote queries)
npm install -g @codacy/codacy-cloud-cli
# Verify
codacy-analysis --help
codacy --helpAuthentication (optional for local, required for cloud)
# Option 1: Interactive login (shared by both CLIs)
codacy login
# Option 2: Token flag
codacy login --token <your-api-token>
# Option 3: Environment variable
export CODACY_API_TOKEN=<your-api-token>
# Obtain tokens: Codacy > My Account > Access Management
# Remove credentials
codacy logoutShared session: Both CLIs share ~/.codacy/credentials. Logging in/out with either applies to both.
Local Analysis (Analysis CLI)
The Analysis CLI (codacy-analysis) runs static analysis locally. It detects languages, selects tools, and reports issues — without pushing code to Codacy.
Always use --output-format json for structured output in agentic workflows.
Analysis Workflow
1. Initialize configuration
2. Inspect tool availability (dry-run)
3. Install missing dependencies
4. Run analysis
5. Interpret resultsStep 1: Initialize configuration
codacy-analysis init
# Or with remote config:
codacy-analysis init --remote --provider gh --organization my-org --repository my-repoStep 2: Inspect tool availability
codacy-analysis analyze --inspect --output-format json
# See which tools are ready
codacy-analysis analyze --inspect --output-format json | jq '.capability.ready[] | {toolId, version}'
# See which tools are missing
codacy-analysis analyze --inspect --output-format json | jq '.capability.unavailable[] | {toolId, reason}'Step 3: Install missing dependencies
codacy-analysis analyze --install-dependencies --output-format jsonStep 4: Run analysis
codacy-analysis analyze --output-format jsonStep 5: Interpret results
See references/analysis-interpret.md for details.
Cloud Queries (Cloud CLI)
The Cloud CLI (codacy) queries remote Codacy data. Auto-detects provider, organization, and repository from git remote.
# List issues
codacy issues
# Check repository status
codacy repository
# Inspect a pull request
codacy pull-request 42
# Trigger reanalysis and wait
codacy repository --reanalyze-and-waitUse --output json on any command for machine-readable output.
How Codacy data works
- Data reflects the HEAD commit — issue lists, coverage, and security findings show the latest analyzed commit
- Configuration changes are not instant — enable/disable tools only take effect after next analysis
- Organization standards are enforced — cannot be overridden at repository level
Reanalysis
# Trigger reanalysis and wait for results (preferred)
codacy repository --reanalyze-and-wait
codacy repository -w -o json # JSON delta report
# Fire-and-forget reanalysis
codacy repository --reanalyzeFilesystem conventions
| Location | Scope | Contents |
.codacy/ (repo root) | Per-project | codacy.config.json, generated/ (tool configs) |
~/.codacy/ (home dir) | Machine-wide | Runtimes, tool binaries, caches, logs, credentials |
The analyzed repository is never modified outside of .codacy/.
Common workflows
- Local analysis: See references/analysis-workflows.md
- Cloud queries: See references/cloud-workflows.md
- Cloud commands: See references/cloud-commands.md
Rationalizations
| Rationalization | Reality |
| "The CLI is slow" | Better to wait for local results than to wait 10+ minutes for a CI failure. |
| "I'll just fix it later" | Unfixed quality gate failures compound technical debt and block others. |
| "I can just check the dashboard" | CLI is faster for automation and scripting than navigating a UI. |
Red Flags
- Ignoring Codacy failures and pushing anyway.
- Suppressing issues as "FalsePositive" without verifying they actually are.
- Running
codacy-analysis analyzewithout the--prflag on a large codebase (may be slow). - Using the issue
hashfor CLI suppressions (requires numericresultDataId). - Assuming configuration changes take effect immediately without reanalysis.
See Also
static-analysis— Generic linter triage across any languagecode-review-assistant— PR review workflow
Troubleshooting
See references/analysis-troubleshooting.md for details.
Voice & Context
- Default:
professional+blog - Reference:
voice-profilesskill for definitions and auto-detection.
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
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.

