From host-terminal
Expertise in exploring, understanding, and navigating codebases. Use when asked to explore a project, understand architecture, find files, or analyze code structure.
npx claudepluginhub ankitaa186/host-terminal-mcp --plugin host-terminalThis skill uses the workspace's default tool permissions.
Expert guidance for exploring and understanding codebases.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Expert guidance for exploring and understanding codebases.
# Get directory tree (limit depth)
tree -L 2 -d
# List top-level contents
ls -la
# Check for documentation
ls README* CONTRIBUTING* docs/ doc/
# Identify project type by manifest files
ls package.json pyproject.toml Cargo.toml go.mod pom.xml build.gradle Gemfile
# Entry points
cat main.py src/index.js cmd/main.go
# Configuration
cat config/*.yaml .env.example
# Dependencies
cat package.json requirements.txt Cargo.toml
| File | Project Type | Next Steps |
|---|---|---|
package.json | Node.js | Check scripts, dependencies |
pyproject.toml | Python (modern) | Check [project], [tool.*] |
requirements.txt | Python (legacy) | Check dependencies |
Cargo.toml | Rust | Check [package], [dependencies] |
go.mod | Go | Check module path, dependencies |
pom.xml | Java (Maven) | Check <dependencies> |
build.gradle | Java (Gradle) | Check dependencies block |
Gemfile | Ruby | Check gems |
composer.json | PHP | Check require |
Makefile | C/C++/Generic | Check targets |
# Common entry point names
find . -name "main.*" -o -name "index.*" -o -name "app.*" | head -20
# Scripts directory
ls bin/ scripts/ cmd/
# Config files
find . -name "*.config.*" -o -name "*.yaml" -o -name "*.toml" | grep -v node_modules
# Test directories and files
find . -type d -name "test*" -o -type d -name "__tests__"
find . -name "*test*.py" -o -name "*.test.js" -o -name "*_test.go"
# Common API patterns
grep -r "app\.\(get\|post\|put\|delete\)" --include="*.js" --include="*.ts"
grep -r "@app\.route\|@router" --include="*.py"
grep -r "func.*Handler\|http\.Handle" --include="*.go"
# Python
grep -rn "^def \|^async def \|^class " --include="*.py"
# JavaScript/TypeScript
grep -rn "function \|const .* = \|class " --include="*.js" --include="*.ts"
# Go
grep -rn "^func " --include="*.go"
# Python
grep -rn "^import \|^from .* import" --include="*.py"
# JavaScript
grep -rn "^import \|require(" --include="*.js" --include="*.ts"
# Go
grep -rn "^import" --include="*.go"
grep -rn "TODO\|FIXME\|HACK\|XXX" --include="*.py" --include="*.js" --include="*.go"
# NPM
npm ls --depth=0
# Python
pip list
# Cargo
cargo tree --depth=1
# Lines of code by type
find . -name "*.py" | xargs wc -l | tail -1
find . -name "*.js" -not -path "*/node_modules/*" | xargs wc -l | tail -1
# File counts
find . -name "*.py" | wc -l
When exploring a codebase, structure findings as:
๐ Project: {name}
๐ Type: {language} ({framework})
๐ฆ Package Manager: {manager}
## Structure
{tree output, annotated}
## Key Files
- {file}: {purpose}
- {file}: {purpose}
## Dependencies
{key dependencies with versions}
## Entry Points
- {main entry point}
- {API entry if applicable}
## Architecture Notes
{observations about patterns, structure}
.github/workflows/, .gitlab-ci.yml reveal build processdocs/, doc/, wiki, README sections