Skip to content

feat: add Codacy Cloud CLI documentation#2673

Closed
claudiacodacy wants to merge 8 commits into
masterfrom
feat/codacy-cloud-cli-docs
Closed

feat: add Codacy Cloud CLI documentation#2673
claudiacodacy wants to merge 8 commits into
masterfrom
feat/codacy-cloud-cli-docs

Conversation

@claudiacodacy
Copy link
Copy Markdown
Contributor

Summary

  • Adds a new docs/codacy-cloud-cli/index.md page under the Codacy AI section covering installation, authentication, the optional Claude Code skill, and a capability-focused overview with example workflows
  • Updates mkdocs.yml to include the new page in the navigation
  • Adds cross-references from 5 existing pages: Codacy AI, API tokens, Using the Codacy API, Issues, and Pull Requests

What the page covers

  • Install via npm (or from source)
  • Authenticate with codacy login (interactive) or --token / CODACY_API_TOKEN for CI/CD
  • Optional Claude Code skill (claude plugin install codacy-skills@codacy) for natural-language interaction
  • Capability sections (not a command dump): manage repos, review issues, investigate security findings, inspect PRs, configure tools and patterns
  • Example workflows: terminal-first PR review, combining with gh CLI + AI Reviewer, monthly JSON quality report, scheduled GitHub Actions triage

Video

Includes a Loom embed of the walkthrough video.

Test plan

  • Preview the docs site and confirm "Codacy Cloud CLI" appears under "Codacy AI" in the nav
  • Verify the Loom embed renders on the new page
  • Click all cross-reference links and confirm they resolve correctly
  • Spot-check command examples against codacy --help output

🤖 Generated with Claude Code

Introduces a dedicated page for the Codacy Cloud CLI under the Codacy AI
section, covering installation, authentication, the optional Claude Code
skill, capability overview with examples, and example workflows. Adds
cross-references from Codacy AI, API tokens, Using the Codacy API, Issues,
and Pull Requests pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@claudiacodacy claudiacodacy requested a review from a team as a code owner May 19, 2026 09:43
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

Overall readability score: 54.22 (🟢 +0.04)

File Readability
pull-requests.md 66.48 (🔴 -1.38)
issues.md 66.7 (🟢 +0)
index.md 66.53 (-)
using-the-codacy-api.md 55.74 (🔴 -1.51)
api-tokens.md 68.13 (🟢 +0.58)
View detailed metrics

🟢 - Shows an increase in readability
🔴 - Shows a decrease in readability

File Readability FRE GF ARI CLI DCRS
pull-requests.md 66.48 55.03 10.13 10 10.32 7.11
  🔴 -1.38 🔴 -0.61 🔴 -0.29 🔴 -0.3 🔴 -0.06 🔴 -0.08
issues.md 66.7 47.18 9.6 9.9 10.38 6.94
  🟢 +0 🟢 +0 🔴 -0.02 🟢 +0 🟢 +0 🟢 +0.01
index.md 66.53 51.34 8.92 9.4 10.94 7.55
  - - - - - -
using-the-codacy-api.md 55.74 42.61 11.12 13 11.89 7.24
  🔴 -1.51 🔴 -0.31 🔴 -0.24 🔴 -0.4 🔴 -0.17 🔴 -0.07
api-tokens.md 68.13 40.24 8.67 9.5 10.66 6.69
  🟢 +0.58 🟢 +0.3 🟢 +0.17 🟢 +0.1 🔴 -0.05 🟢 +0.05

Averages:

  Readability FRE GF ARI CLI DCRS
Average 54.22 43.13 10.91 12.3 12.24 8.01
  🟢 +0.04 🟢 +0.03 🟢 +0.01 🟢 +0.01 🟢 +0 🟢 +0
View metric targets
Metric Range Ideal score
Flesch Reading Ease 100 (very easy read) to 0 (extremely difficult read) 60
Gunning Fog 6 (very easy read) to 17 (extremely difficult read) 8 or less
Auto. Read. Index 6 (very easy read) to 14 (extremely difficult read) 8 or less
Coleman Liau Index 6 (very easy read) to 17 (extremely difficult read) 8 or less
Dale-Chall Readability 4.9 (very easy read) to 9.9 (extremely difficult read) 6.9 or less

@codacy-production
Copy link
Copy Markdown
Contributor

codacy-production Bot commented May 19, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

Copy link
Copy Markdown
Contributor

@codacy-production codacy-production Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

The PR successfully adds comprehensive documentation for the Codacy Cloud CLI, covering installation, authentication, and core workflows. Codacy analysis indicates the changes are up to standards with no new quality issues detected.

Two primary concerns should be addressed before merging:

  • The current navigation structure nests the CLI documentation under 'Codacy AI', which may hide its general-purpose utility for non-AI workflows such as repository and issue management.
  • Hardcoded values in GitHub Actions documentation snippets reduce the 'copy-paste' usability for end-users and should be replaced with context variables.

About this PR

  • No Jira ticket was provided to confirm broader project requirements or tracking.

Test suggestions

  • Verify all relative links (cross-references) added to existing documentation files correctly resolve to the new CLI page or specific anchors.
  • Validate the syntax and functionality of the provided 'jq' reporting examples against standard JSON output from the CLI.
  • Ensure the Loom video embed (iframe) renders correctly and is responsive across different screen sizes.
  • Verify the command syntax in all provided examples against the latest CLI help output (codacy --help).
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify all relative links (cross-references) added to existing documentation files correctly resolve to the new CLI page or specific anchors.
2. Validate the syntax and functionality of the provided 'jq' reporting examples against standard JSON output from the CLI.
3. Ensure the Loom video embed (iframe) renders correctly and is responsive across different screen sizes.
4. Verify the command syntax in all provided examples against the latest CLI help output (codacy --help).

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

Comment thread mkdocs.yml Outdated
- codacy-guardrails/codacy-guardrails-faq.md
- Codacy AI:
- codacy-ai/codacy-ai.md
- Codacy Cloud CLI: codacy-cloud-cli/index.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 MEDIUM RISK

Suggestion: The Codacy Cloud CLI is a general-purpose tool for repository and issue management. Consider moving it from the 'Codacy AI' section to a more prominent location, such as a new top-level section named 'Codacy CLI' located after 'Codacy Guardrails', to improve discoverability for non-AI use cases.

Comment thread docs/codacy-cloud-cli/index.md Outdated
env:
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
run: |
codacy issues gh ${{ github.repository_owner }} my-repo \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ LOW RISK

Suggestion: Use the ${{ github.event.repository.name }} variable instead of the hardcoded my-repo to make the workflow example more reusable across different repositories.

Suggested change
codacy issues gh ${{ github.repository_owner }} my-repo \
codacy issues gh ${{ github.repository_owner }} ${{ github.event.repository.name }} \

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces comprehensive documentation for the new Codacy Cloud CLI, including a dedicated index page and cross-references throughout the existing documentation. The feedback focuses on technical refinements: replacing deprecated iframe attributes with modern HTML5 standards, adding usage examples for specific CLI flags, and ensuring shell script safety in CI/CD examples by quoting variables.

Comment thread docs/codacy-cloud-cli/index.md Outdated

Pair it with the [Codacy Claude Code skill](#install-the-claude-code-skill) to interact with your Codacy data in plain language directly from your AI assistant.

<div style="position: relative; padding-bottom: 61.224489795918366%; height: 0;"><iframe src="https://www.loom.com/embed/1960b3f07f2c419682a1e22e2b2928d1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The frameborder, webkitallowfullscreen, and mozallowfullscreen attributes are deprecated in HTML5. It is recommended to use the standard allowfullscreen attribute and set the border via CSS for better compatibility and adherence to modern standards.

Suggested change
<div style="position: relative; padding-bottom: 61.224489795918366%; height: 0;"><iframe src="https://www.loom.com/embed/1960b3f07f2c419682a1e22e2b2928d1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 61.224489795918366%; height: 0;"><iframe src="https://www.loom.com/embed/1960b3f07f2c419682a1e22e2b2928d1" allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;"></iframe></div>

Comment thread docs/codacy-cloud-cli/index.md Outdated
codacy findings gh my-org --scan-types SCA,IaC --severities High
```

Findings are tracked with statuses like `Overdue`, `OnTrack`, and `DueSoon`. Use `--statuses` to filter accordingly.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It would be helpful to include a concrete example of how to use the --statuses flag to show the expected format (e.g., comma-separated values).

Suggested change
Findings are tracked with statuses like `Overdue`, `OnTrack`, and `DueSoon`. Use `--statuses` to filter accordingly.
Findings are tracked with statuses like Overdue, OnTrack, and DueSoon. Use --statuses to filter accordingly (e.g., --statuses Overdue,DueSoon).

Comment thread docs/codacy-cloud-cli/index.md Outdated
env:
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
run: |
codacy issues gh ${{ github.repository_owner }} my-repo \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In GitHub Actions, it is a best practice to quote variables used in shell commands to prevent issues with word splitting or special characters, even if the current value is expected to be a single word.

Suggested change
codacy issues gh ${{ github.repository_owner }} my-repo \
codacy issues gh "${{ github.repository_owner }}" my-repo \

- Replace spaced em dashes with parentheses/periods (Microsoft.Dashes)
- Add unignore to vale vocabulary accept list
- Fix PR's possessive to pull request
- Wrap GitHub Actions YAML example in raw tags to prevent Jinja2 parsing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot temporarily deployed to Netlify May 19, 2026 09:51 Inactive
- Clarify that credentials are stored encrypted at ~/.codacy/credentials
- Complete the API token path to include "API Tokens" step

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot temporarily deployed to Netlify May 19, 2026 10:01 Inactive
- Move Codacy Cloud CLI from under Codacy AI to its own top-level section
  between Codacy Guardrails and Codacy AI (CLI covers repo/issue/findings
  management, not AI features)
- Remove misplaced tip from codacy-ai.md
- Remove deprecated iframe attributes (frameborder, webkitallowfullscreen,
  mozallowfullscreen) per HTML5 standards
- Add --statuses example to security findings section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot temporarily deployed to Netlify May 19, 2026 10:04 Inactive
Replace alternating prose/code/prose/code pattern with grouped, commented
code blocks. Reduces 18 code blocks to 12 across the What you can do
section. Also removes italics from skill prompt examples.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot temporarily deployed to Netlify May 19, 2026 10:11 Inactive
Rename section from Claude Code-specific to general AI assistant guidance.
Cover both Claude Code and Claude.ai installation paths. Add note for
non-Claude users pointing them to the skills repo as a reference. Add
codacy-skills repo to See also.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot temporarily deployed to Netlify May 19, 2026 10:14 Inactive
Remove monthly quality report section and simplify the CI example to a
minimal, honest skeleton. The previous example only echoed to stdout
without actually doing anything useful. Users can wire up the JSON output
themselves.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot temporarily deployed to Netlify May 19, 2026 10:16 Inactive
…default

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot temporarily deployed to Netlify May 19, 2026 10:18 Inactive
@claudiacodacy
Copy link
Copy Markdown
Contributor Author

Closing in favour of a clean squashed PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant