Skip to content
alinaqi avatar

Existing Repo

Guardrail-first skill for existing repos: audits structure and conventions before adding hooks, linters, and commit rules.

CCM score
54 of 100
skills.sh installs
256
GitHub stars
712
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers repo analysis, convention detection, a guardrails audit, and setup for JavaScript/TypeScript and Python projects
  • Runs read-only detection commands for stack, monorepo layout, test setup, CI workflows, and existing hook managers
  • Enforces "only add missing guardrails; never overwrite existing configurations" and documents conventions before any change
  • Integrates Husky, lint-staged, pre-commit, and commitlint, with sample ESLint, Prettier, and lint-staged configs

Install

$ npx -y skills add alinaqi/maggy --skill existing-repo -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Existing Repository Skill

For working with existing codebases - analyze structure, respect conventions, and set up proper guardrails without breaking anything.

Sources: Husky | lint-staged | pre-commit | commitlint


Core Principle

Understand before modifying. Existing repos have conventions, patterns, and history. Your job is to work within them, not reorganize them.


Phase 1: Repository Analysis

ALWAYS run this analysis first when joining an existing repo.

1.1 Basic Detection

# Check git status
git remote -v 2>/dev/null
git branch -a 2>/dev/null
git log --oneline -5 2>/dev/null

# Check for existing configs
ls -la .* 2>/dev/null | head -20
ls *.json *.toml *.yaml *.yml 2>/dev/null

1.2 Tech Stack Detection

# JavaScript/TypeScript
ls package.json tsconfig.json 2>/dev/null

# Python
ls pyproject.toml setup.py requirements*.txt 2>/dev/null

Details

Repository
github.com/alinaqi/maggy
Categories
Code Review & Quality, Git & Releases
First seen
Jun 3, 2026

Questions

What does the existing-repo skill do?

The existing-repo skill analyzes an existing codebase before any changes are made, including its structure, tech stack, entry points and conventions. It then adds only the missing guardrails such as pre-commit hooks, linting, type checking and commit message checks, without overwriting existing configuration.

Where does existing-repo rank in Code Review & Quality?

existing-repo sits in the Code Review & Quality category on Claude Marketplaces, next to improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Its own focus is onboarding into a repository and setting up guardrails, so it covers the first look at a codebase rather than reviewing individual changes.

How do I install the existing-repo skill?

Run npx -y skills add alinaqi/maggy --skill existing-repo -y inside your project. Once installed, the existing-repo skill lets the agent analyze the repo, detect conventions, and set up guardrails when you first work in an existing codebase.

Who should use the existing-repo skill?

The existing-repo skill suits developers who are working with an existing codebase for the first time or want to add guardrails to it. Its SKILL.md says it is meant for joining an unfamiliar repo and respecting its conventions rather than reorganizing it.

What tools does the existing-repo skill use?

The existing-repo skill is allowed to use Read, Glob, Grep and Bash, so it can inspect files and run shell commands like git log and directory listings. Its analysis phases are built on those commands to map structure and detect tooling.

More from alinaqi/maggy

All 54

Similar to Existing Repo

More Code Review & Quality