- Home
- Skills
- Agents & Orchestration
- Codebase Architect & Bug Guard (Devrith)
More screenshots
Works with the AI Agents you already use
Codebase Architect & Bug Guard (Devrith)
by Divyam Gupta
Eliminate coding hallucinations and broken imports using AST-backed codebase engineering and verification.
Free
Codebase Architect & Bug Guard (Devrith)
Example session with this skill installed
I need to move the UserProfile class from models.py to a new profile_service.py file. Use arch-sidecar to ensure I don't break any imports or create circular dependencies.
- Read your context and instructions
- Compiled the codebase architect
I have analyzed the codebase structure and identified all references to the UserProfile class. To ensure a clean refactor without breaking imports, I utilized arch-sidecar decouple to calculate free variables and verify the dependency graph.
Refactor Plan and Verification
| Step | Action | Status | Result |
|---|---|---|---|
| 1 | arch-sidecar digest | Complete | Mapped models.py and identified 12 callers. |
| 2 | arch-sidecar decouple | Success | Calculated $FV$. Created profile_service.py. |
| 3 | Import Update | Success | Updated imports in auth.py, views.py, and admin.py. |
| 4 | arch-sidecar check | Passed | No circular dependencies or undefined symbols detected. |
| 5 | arch-sidecar feature --verify | Passed | Companion tests in tests/test_profile.py executed successfully. |
# new file: src/services/profile_service.py
from typing import Optional
from ..models.base import BaseModel
class UserProfile(BaseModel):
"""Refactored UserProfile service entity."""
def __init__(self, user_id: str, bio: Optional[str] = None):
self.user_id = user_id
self.bio = bio
super().__init__()
Next steps
- Review the updated imports in
src/api/views.pyto ensure consistency with your local coding style. - Run
arch-sidecar reportto view the full session metrics and verification ledger. - Delete the deprecated
UserProfiledefinition frommodels.pyonce you confirm the build passes in CI.
Connects securely to your tools. The creator never sees your data.
About this skill
Traditional AI coding agents often guess file paths, invent non-existent function signatures, and break dependency chains because they rely on stale context. This skill bridges the gap between LLM reasoning and the actual filesystem by integrating Devrith (arch-sidecar), an in-process AST co-processor.
What it does
- AST-Guided orientation uses structural digests to map codebase skeletons without noise from dependencies or build artifacts.
- Surgical context retrieval locates 1-indexed code slices, cross-file callers, and companion tests based on feature descriptions.
- Blast radius analysis identifies downstream impacts and subsystem coupling before you modify shared logic or utilities.
- Static preflight checks catch undefined symbols, broken imports, and circular dependencies in milliseconds.
- Evidence-backed verification executes targeted test loops and generates a verification ledger to confirm behavioral success.
How it works
- Orient using
arch-sidecar digestto understand the codebase DAG and module boundaries. - Locate targets using
arch-sidecar featureto find exact lines and related test files. - Execute changes or refactors, utilizing
decouplecommands to move symbols without breaking imports. - Verify by running static checks and automated test loops to ensure zero hallucinations.
Frameworks & tools
This tool supports Python, TypeScript, JavaScript, Go, Rust, Dart, Flutter, Kotlin, and Java. It integrates via the arch-sidecar CLI or as an MCP server for agents in Cursor or Claude Code.
Why this beats prompting it yourself
Standard prompting relies on the agent's internal "memory" of the files it has seen, leading to hallucinations in large or complex repos. This skill forces the agent to ground every edit in real-time AST data, preventing broken builds and circular import cycles that manual prompts frequently miss.
Use cases
- Legacy code exploration to quickly map symbols and dependencies in an unfamiliar repository.
- Safe refactoring of shared utilities by checking the impact on all downstream callers.
- Automated PR prep by running static preflights and verification ledgers before submission.
- Feature implementation with side-by-side creation of source logic and companion tests.
Known limitations
Static analysis may flag false negatives for dynamic code using reflection, getattr, or eval. Requires the arch-sidecar binary to be installed in the agent environment.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 8 days ago
- Free with an Agensi account
- Software
- MCP-enabledvitest
Node.jsjest
Python
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.