mcpField
P
project-triage

project-triage

github.com/lubusinDevelopment69100 installsUpdated 12w ago
Repository

About project-triage

A project-inspection skill for developers starting work on a Frappe codebase. It identifies the project type, installed apps, Frappe version, development mode, and available tooling before changes begin.

Key features

  1. 01Detects project structure and type
  2. 02Lists installed apps
  3. 03Checks Frappe version and developer mode
  4. 04Identifies development and test tooling
  5. 05Documents triage findings

Use cases

  1. 01Assessing an unfamiliar Frappe project
  2. 02Checking versions before debugging
  3. 03Choosing the next development skill

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/lubusin/frappe-skills --skill project-triage

After installing, type/project-triagein Claude Code to confirm it loaded.

Details

From the project README

Frappe Project Triage

Quickly analyze a Frappe project to determine its type, installed apps, version, and available tooling.

When to use

  • First step when opening a new Frappe project
  • Before making any code changes to understand the codebase
  • When debugging to determine which apps/versions are involved
  • To identify the development environment (Bench vs Frappe Manager)

Inputs required

  • Project root path (where apps/, sites/, or app code lives)
  • Access to run shell commands (for version checks)

Procedure

0) Identify project structure

Check for these patterns:

PatternProject Type
apps/ + sites/ directoriesBench installation
docker-compose.yml with frappeFrappe Manager site
pyproject.toml or setup.py with frappeStandalone app
doctype/ directoryInside an app module
1) Detect installed apps
# Inside Bench/FM shell
bench --site <site> list-apps

# Or check apps directory
ls apps/
2) Check Frappe version
# Inside Bench/FM shell
bench version

# Or check from Python
bench --site <site> console
>>> frappe.__version__
3) Identify tooling
File/DirectoryTooling
ProcfileStandard bench
docker-compose.ymlDocker/FM
cypress/UI testing available
.github/workflows/CI configured
package.json with @frappe/*JS build tooling
4) Check development mode
# Check site config
bench --site <site> console
>>> frappe.conf.developer_mode

Verification

  • Project type identified (bench/FM/standalone app)
  • Installed apps listed
  • Frappe version known
  • Development mode status confirmed
  • Available tooling documented

Failure modes / debugging

  • No site found: May be inside an app directory, navigate to bench root
  • bench command not found: Not in bench environment, use fm shell or activate venv
  • Permission errors: Check if running as correct user

Escalation

If project structure is unclear:

  1. Look for hooks.py to identify app root
  2. Look for sites/common_site_config.json for bench root
  3. Check git remote for app repository identification

Output format

After triage, document:

Project Type: [bench|frappe-manager|standalone-app]
Frappe Version: X.Y.Z
Installed Apps: [list]
Developer Mode: [yes|no]
Tooling: [list]
Site Name: <site>

Use this output to route to the appropriate skill:

  • DocType work → doctype-development
  • API work → api-development
  • Testing → testing
  • Enterprise patterns → enterprise-patterns

Guardrails

  • Never modify code before completing triage - understand the project first
  • Check for custom apps that may override standard behavior
  • Verify site exists before running site-specific commands
  • Check developer_mode before making schema changes (required for DocType modifications)
  • Note Node.js version - frontend builds require compatible Node (typically 18+ for v15)

Common Mistakes

MistakeWhy It FailsFix
Running bench migrate without siteAffects wrong/default siteAlways use --site sitename
Assuming ERPNext is installedImport errors, missing DocTypesCheck list-apps output first
Missing FM shell contextbench commands not foundUse fm shell sitename first
Wrong directory levelCommands fail silentlyNavigate to bench root (where apps/ exists)
Ignoring custom app overridesUnexpected behaviorCheck hooks.py for overrides
Not checking Python versionSyntax/compatibility errorsVerify Python >= 3.10 for v15+

Comments

Markdown supported