repo-inspector
Skill0 starsChanged 2 months agoMITView on GitHub
Safely inspects an unfamiliar codebase to map its tech stack, architecture, entry points, build/test commands, and key directories.
- Reads credentials
In this repository49 other files it gives its agents.
- bug-reproducerSkill
- claim-checkerSkill
- command-failure-diagnoserSkill
- config-risk-reviewerSkill
- csv-validatorSkill
- deployment-checklist-makerSkill
- diff-reviewerSkill
- factual-summarizerSkill
- field-extractorSkill
- api-contract-testerSkill
- database-migration-helperSkill
- security-vulnerability-fixerSkill
- git-commit-stagerSkill
- git-conflict-resolverSkill
- github-actions-debuggerSkill
- github-issue-triagerSkill
- github-pr-creatorSkill
- github-pr-reviewerSkill
- go-code-qualitySkill
- go-lint-and-vetSkill
- go-testingSkill
- json-schema-converterSkill
- lint-and-typecheckSkill
- meaning-preserving-editorSkill
- meeting-notes-to-actionsSkill
- minimal-bug-fixSkill
- option-comparatorSkill
- py-code-qualitySkill
- py-lint-and-typecheckSkill
- py-testingSkill
- readme-writerSkill
- regression-test-writerSkill
- release-notes-drafterSkill
- research-briefSkill
- reversible-cleanup-plannerSkill
- rust-clippy-checkSkill
- rust-code-qualitySkill
- rust-testingSkill
- small-refactorSkill
- status-updateSkill
- step-by-step-tutorialSkill
- step-decomposerSkill
- tabular-analyzerSkill
- task-briefSkill
- test-runner-debuggerSkill
- ts-code-qualitySkill
- ts-lint-and-typecheckSkill
- ts-testingSkill
- skill-templateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 7 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when:
- Very specific: line 20
Do not use to run deep code review or diff analysis.
- Very specific: line 21
Do not use to plan multi-step feature implementations.
- Very specific: line 22
Do not use to diagnose a specific broken command.
- Distinctive: line 28
If no workspace root is specified, use the current working directory.
- Very specific: line 29
If the directory does not exist or is empty, stop and report: "Error: Directory <path> is empty or does not exist."
- Distinctive: line 30
Do not run commands in parent directories outside the workspace root.
- Distinctive: line 33
Follow these numbered actions:
- Very specific: line 35
Check directory listing at top level.
- Distinctive: line 37
Read the manifest file to identify runtime version, dependencies, scripts, and build tools.
- Distinctive: line 38
Do not execute package installation or build scripts during inspection.
- Very specific: line 40
Search for main.*, index.*, src/index.*, cmd/, app/, or CLI binaries declared in manifest.
- Very specific: line 42
Check test script in manifest (npm test, pytest, cargo test, go test ./...).
- Very specific: line 45
Verify that .env files, .git/, and secret credentials are NOT read into public output.
- Very specific: line 50
If multiple manifests exist (e.g.
- Very specific: line 51
If no manifest is found: inspect file extensions (.py, .sh, .c, .rs) to determine language.
- Very specific: line 52
If documentation files exist (README.md, CONTRIBUTING.md): check quickstart command lines.
- Distinctive: line 93
Stop and ask the user when:
≈ “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
Repository Inspector
Safely maps an unfamiliar repository. Discovers the project structure, language, package manager, entry points, and test commands without modifying files.
1. Purpose
Provide a quick, accurate map of a repository so subsequent development skills know where to locate source code, configurations, and test runners.
2. When to Use
Use this skill when:
- Arriving in a new or unfamiliar codebase.
- User asks "What does this repo do?" or "How do I run this project?".
- Pre-flight step before diagnosing bugs or applying code changes.
3. When Not to Use
- Do not use to run deep code review or diff analysis; use
diff-reviewer. - Do not use to plan multi-step feature implementations; use
task-brief. - Do not use to diagnose a specific broken command; use
command-failure-diagnoser.
4. Required Inputs
workspace_root: The file path to the repository root directory (default: current working directory).
5. Missing-Input Behavior
- If no workspace root is specified, use the current working directory.
- If the directory does not exist or is empty, stop and report: "Error: Directory
<path>is empty or does not exist." - Do not run commands in parent directories outside the workspace root.
6. Procedure
Follow these numbered actions:
- Action 1: List Root Files and Directories
- Check directory listing at top level. Look for manifest files:
package.json,Cargo.toml,pyproject.toml,go.mod,pom.xml,Makefile.
- Check directory listing at top level. Look for manifest files:
- Action 2: Identify Languages and Package Manager
- Read the manifest file to identify runtime version, dependencies, scripts, and build tools.
- Do not execute package installation or build scripts during inspection.
- Action 3: Discover Key Entry Points
- Search for
main.*,index.*,src/index.*,cmd/,app/, or CLI binaries declared in manifest.
- Search for
- Action 4: Discover Test Setup
- Check test script in manifest (
npm test,pytest,cargo test,go test ./...). - Identify test directory (
tests/,__tests__/,spec/,*_test.go).
- Check test script in manifest (
- Action 5: Safety and Secret Boundary Check
- Verify that
.envfiles,.git/, and secret credentials are NOT read into public output.
- Verify that
- Action 6: Emit Repository Map
- Format the findings using Section 8.
7. Decision Rules
- If multiple manifests exist (e.g. monorepo with root
package.jsonand nested packages): record repository type asMonorepoand list top-level workspaces. - If no manifest is found: inspect file extensions (
.py,.sh,.c,.rs) to determine language. - If documentation files exist (
README.md,CONTRIBUTING.md): check quickstart command lines; do not read entire large files into context.
8. Output Format
Emit the repository overview using this structured template:
### Repository Map: [Project Name or Folder]
- **Primary Language / Stack**: [e.g., TypeScript / Node.js 22]
- **Package Manager / Build Tool**: [e.g., pnpm, npm, cargo, pip]
- **Architecture Style**: [Single package | Monorepo | CLI | Library | Web App]
#### Key Directories & Files
- `src/` - [Core source files]
- `tests/` - [Test suites]
- `config/` - [Configuration files]
- Entry point: `[path to entry file]`
#### Standard Commands
- **Install**: `[e.g., npm install]`
- **Build**: `[e.g., npm run build]`
- **Test**: `[e.g., npm test]`
- **Lint / Check**: `[e.g., npm run lint]`
#### Observations & Warnings
- [Notable findings, missing test configs, or special setup requirements]9. Verification Checklist
- Root manifest was inspected without executing unverified code.
- Primary language, test command, and build command are verified from files.
- Entry point exists and was confirmed on disk.
- No secrets or personal data were captured in the output.
10. Common Failures and Recovery
| Failure Symptom | Cause | Recovery Action |
| Unrecognized stack | Proprietary or missing manifest | Check file extension counts and look for shell scripts or Makefiles. |
| Monorepo confusion | Manifests in multiple subdirectories | Inspect pnpm-workspace.yaml, lerna.json, or root workspaces field. |
| Slow or huge tree | Walking node_modules or .git | Always ignore .git, node_modules, dist, target, venv. |
11. Stop or Escalation Conditions
Stop and ask the user when:
- The workspace contains no recognisable source code or build configuration.
- The directory contains encrypted files or requires proprietary credentials to inspect.
12. Examples
Example 1: Successful Execution
Input:
Inspect workspace: /workspace/sample-service
Files found: package.json, tsconfig.json, src/server.ts, src/routes.ts, tests/server.test.ts, README.md
package.json scripts: { "build": "tsc", "test": "vitest run", "start": "node dist/server.js" }Expected Observable Actions:
- Inspected package.json scripts and dependencies.
- Verified entry point at
src/server.ts. - Verified test runner is
vitest run.
Output:
### Repository Map: sample-service
- **Primary Language / Stack**: TypeScript / Node.js
- **Package Manager / Build Tool**: npm / tsc
- **Architecture Style**: Web Service (Backend API)
#### Key Directories & Files
- `src/` - Application source code
- `src/server.ts` - Main HTTP server entry point
- `tests/` - Automated test suites
- `tsconfig.json` - TypeScript compiler configuration
#### Standard Commands
- **Install**: `npm install`
- **Build**: `npm run build`
- **Test**: `npm test`
- **Start**: `npm start`
#### Observations & Warnings
- Test command uses Vitest (`vitest run`).
- Output builds into `dist/`.Example 2: Ambiguous or Failure Case
Input:
Inspect workspace: /workspace/empty-project (0 files present)Output:
### Repository Map: Error - Empty Repository
- **Primary Language / Stack**: Unknown
- **Status**: Halted
The directory `/workspace/empty-project` is completely empty. No source files, manifests, or build scripts were found. Please clone the project repository or specify a populated workspace folder.Example 3: Expected Final Output
Output:
### Repository Map: auth-gateway
- **Primary Language / Stack**: Python 3.11 / FastAPI
- **Package Manager / Build Tool**: Poetry (`pyproject.toml`)
- **Architecture Style**: REST Microservice
#### Key Directories & Files
- `auth_gateway/` - Main Python package
- `auth_gateway/main.py` - FastAPI app initialization
- `tests/` - Unit and integration tests using pytest
- `pyproject.toml` - Dependencies and tool settings
#### Standard Commands
- **Install**: `poetry install`
- **Build**: `poetry build`
- **Test**: `poetry run pytest`
- **Lint / Check**: `poetry run ruff check .`
#### Observations & Warnings
- Dockerfile present for container deployment.
- No local `.env` required if environment variables are provided.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.

