Skip to content

ARCH-3773 Keep the architecture commands to data access - #1384

Merged
madalin-antonoiu-sonarsource merged 2 commits into
masterfrom
task/ma/ARCH-3773-install-only-architecture-skill
Nov 27, 2026
Merged

madalin-antonoiu-sonarsource merged 2 commits into
masterfrom
task/ma/ARCH-3773-install-only-architecture-skill

Conversation

@madalin-antonoiu-sonarsource

@madalin-antonoiu-sonarsource madalin-antonoiu-sonarsource commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

sonar architecture install-skill installs only the architecture skill and no longer adds a coding section to CLAUDE.md and AGENTS.md. The architecture commands stay focused on giving agents access to architecture data.


Summary by Gitar

  • Legacy cleanup:
    • Removes the old managed coding block from CLAUDE.md and AGENTS.md when install-skill runs
  • Command help:
    • Updated --global and description text to reflect skill-only installation

This will update automatically on new commits.

@netlify

netlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sonarqube-cli ready!

Name Link
🔨 Latest commit 9f00e24
🔍 Latest deploy log https://app.netlify.com/projects/sonarqube-cli/deploys/6b094200d42a2563fb89d7e9
😎 Deploy Preview https://deploy-preview-1384--sonarqube-cli.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

ARCH-3773

@madalin-antonoiu-sonarsource
madalin-antonoiu-sonarsource force-pushed the task/ma/ARCH-3773-install-only-architecture-skill branch from 86aeddf to 2b1b59a Compare November 25, 2026 10:24
install-skill installs only the architecture skill and no longer adds a coding
section to CLAUDE.md and AGENTS.md. The architecture commands stay focused on
giving agents access to architecture data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@madalin-antonoiu-sonarsource
madalin-antonoiu-sonarsource force-pushed the task/ma/ARCH-3773-install-only-architecture-skill branch from 2b1b59a to 530733f Compare November 25, 2026 10:26
@madalin-antonoiu-sonarsource madalin-antonoiu-sonarsource changed the title ARCH-3773 Install only the architecture skill ARCH-3773 Keep the architecture commands to data access Nov 25, 2026
@madalin-antonoiu-sonarsource
madalin-antonoiu-sonarsource marked this pull request as ready for review November 25, 2026 12:42

@kirill-knize-sonarsource kirill-knize-sonarsource left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. One question about existing installs.

src/commands/architecture/install-skill.ts:51
install-skill shipped the sonarqube-architecture-coding block in 1.13.0, so existing users still have it in CLAUDE.md/AGENTS.md, and re-running the command now leaves it untouched. Should the installer remove an existing block with that marker, or is leaving it to users deliberate?

@gitar-bot

gitar-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

The installer now removes legacy architecture blocks from CLAUDE.md and AGENTS.md, which could change guidance available to coding agents.

Changes sonar architecture install-skill to install only the architecture skill, dropping the coding section from CLAUDE.md and AGENTS.md, and now removes the previously written managed coding block from those files. Resolved the finding that the existing coding block was never removed. No open issues found.

✅ 1 closed
✅ Edge Case: Coding block already written to CLAUDE.md/AGENTS.md is never removed

📄 src/commands/architecture/install-skill.ts:62-69 📄 src/commands/architecture/install-skill.ts:23
The previous install-skill wrote a managed <!-- sonar:begin:sonarqube-architecture-coding --> block into the repository's CLAUDE.md and AGENTS.md. That version has shipped: the release-generated docs/llms.txt and docs/data/commands.json still describe it. This PR stops writing the block but adds nothing that removes it. The command also isn't recorded as an integration (see line 23), so system reset won't clean it up either. Users who already ran the command keep agent instructions that say they were "installed by sonar architecture install-skill", and running the command again leaves them in place. That goes against the PR's stated intent that Vortex, not this command, decides how agents use architecture data while coding. Fix: for project installs, run textSnippetRemover with the old marker on both files, so a re-install removes the old block.

Verification Repos 1 inspected · PRs 4 inspected

Functional validation No results

Rules 5 not applicable

Broader impact Repos 1 inspected PRs 4 inspected
Cross-repo 1 repository inspected 0 open impacts

SonarSource/sonarlint-intellij Inspected

Cross-PR 4 PRs inspected 0 open impacts

PR 1301: CLI-1593 Remove dead integrate, HTTP, state and core code Inspected
PR 1355: ARCH-3741 Support Architecture commands on SonarQube Server 2026.6 Inspected
PR 1382: ARCH-3770 Show assertion deviations in architecture findings and summary Inspected
PR 1262: DEX-179 Redesign root help layout and command groups Inspected

Auto-approval Withheld

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqubecloud

Copy link
Copy Markdown

@madalin-antonoiu-sonarsource

Copy link
Copy Markdown
Contributor Author

Looks good. One question about existing installs.

src/commands/architecture/install-skill.ts:51 install-skill shipped the sonarqube-architecture-coding block in 1.13.0, so existing users still have it in CLAUDE.md/AGENTS.md, and re-running the command now leaves it untouched. Should the installer remove an existing block with that marker, or is leaving it to users deliberate?

@kirill-knize-sonarsource 9f00e24 Added installer remove here

@madalin-antonoiu-sonarsource
madalin-antonoiu-sonarsource merged commit cd2b1b7 into master Nov 27, 2026
28 checks passed
@madalin-antonoiu-sonarsource
madalin-antonoiu-sonarsource deleted the task/ma/ARCH-3773-install-only-architecture-skill branch November 27, 2026 14:57
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.

2 participants