rhecosystemappeng/agentic-collections/detect-project
Claude Code and agent skill by rhecosystemappeng/agentic-collections
- community
Checking that the SKILL.md file is still in the repository.
Analyze a project folder or GitHub repository to detect programming language, framework, and version requirements. Use this skill when containerizing an application, selecting an S2I builder image, deploying to OpenShift or RHEL, or determining a project's tech stack. Supports Node.js, Python, Java, Go, Ruby, .NET, PHP, and Perl. Triggers on /detect-project command or when user needs build strategy recommendations. Run before /s2i-build or /rhel-deploy.
Install
npx vskill@latest install rhecosystemappeng/agentic-collections/detect-projectSKILL.md
The same SKILL.md was published earlier as rhecosystemappeng/agentic-collections/detect-project.
/detect-project Skill
Critical Restrictions
- DO NOT CLONE remote repositories unless the user explicitly selects the "Clone & Inspect" option.
- ALWAYS use
github-mcp-servertools (list_directory,get_file_contents) for initial analysis of remote URLs. - NEVER assume you have permission to write to the local filesystem for analysis purposes.
Analyze the project to detect language/framework and recommend a build strategy. This skill handles both local project directories and remote Git repositories.
When to Use This Skill
- User wants to containerize or deploy an application and needs language/framework detection
- User asks what tech stack a project uses or needs a build strategy recommendation
- Run before
/s2i-build,/recommend-image, or/rhel-deployto identify project type
Critical: Human-in-the-Loop Requirements
See Human-in-the-Loop Requirements for mandatory checkpoint behavior.
Workflow
Step 1: Context Analysis
Scenario A: Local Files Available If you are in a project directory with source code:
- Proceed to Step 2: Scan Project Files.
Scenario B: Remote Git URL Provided If the user provided a Git URL (e.g., https://github.com/...):
Use the github-mcp-server to analyze the repository directly without cloning:
- Use
mcp_github_get_file_contents(owner, repo, path="/")to list repository contents - Read key files using
fetch_mcp_resourcewith URI format:repo://{owner}/{repo}/contents/{file-path}
- Example:
repo://myorg/myrepo/contents/package.json
- Proceed with analysis as if local files
If GitHub MCP is unavailable or repo is private without access:
WAIT for user confirmation before proceeding.
Scenario C: No Context If no files and no URL:
- Ask the user for the Git URL or to navigate to a project folder.
Step 2: Scan Project Files (Local Only)
Look for these indicator files in the project root:
| File | Language | Framework Hint | |
|---|---|---|---|
Chart.yaml | Helm Chart | Existing Helm deployment available | |
package.json | Node.js | Check for next, angular, vue, react | |
pom.xml | Java | Check for spring-boot, quarkus deps | |
build.gradle / build.gradle.kts | Java | Check for spring, quarkus plugins | |
requirements.txt | Python | - | |
Pipfile | Python | Pipenv | |
pyproject.toml | Python | Poetry or modern Python | |
go.mod | Go | - | |
Gemfile | Ruby | Check for rails | |
composer.json | PHP | Check for laravel, symfony | |
*.csproj / *.sln | .NET | - | |
Cargo.toml | Rust | No official S2I | |
Dockerfile / Containerfile | Pre-containerized | May not need S2I |
Helm Chart Detection
Also check for Helm charts in these locations (in order):
| Priority | Path | Description | |
|---|---|---|---|
| 1 | ./Chart.yaml | Root directory | |
| 2 | ./chart/Chart.yaml | Chart subdirectory | |
| 3 | ./charts/*/Chart.yaml | Charts directory | |
| 4 | ./helm/Chart.yaml | Helm subdirectory | |
| 5 | ./deploy/helm/Chart.yaml | Deploy directory |
If Chart.yaml is found, parse it to extract:
name: Chart nameversion: Chart version (SemVer)appVersion: Application versiondescription: Chart description
Also check for:
values.yaml: Default configurationtemplates/: Template files
Step 3: Detect Version Requirements
For each detected language, extract version info:
Node.js:
- Check
engines.nodein package.json - Example:
"engines": { "node": ">=18" }
Python:
- Check
python_requiresin pyproject.toml - Check
runtime.txtfor version - Check
.python-versionfile
Java:
- Check
<java.version>or<maven.compiler.source>in pom.xml - Check
sourceCompatibilityin build.gradle
Go:
- Check
godirective in go.mod - Example:
go 1.21
Step 4: Detect Framework
Look for framework-specific indicators:
Node.js frameworks:
next.config.jsornext.config.mjs→ Next.jsangular.json→ Angularvue.config.jsorvite.config.tswith vue → Vue.jsremix.config.js→ Remix
Java frameworks:
quarkusin dependencies → Quarkusspring-bootin dependencies → Spring Bootmicronautin dependencies → Micronaut
Python frameworks:
djangoin requirements → Djangoflaskin requirements → Flaskfastapiin requirements → FastAPI
Step 4.5: Detect Python Entry Point (Python projects only)
For Python projects, detect the application entry point to ensure proper S2I configuration:
Check for entry point files (in order of S2I preference):
app.py- Default S2I Python entry point (no config needed)application.py- Alternative defaultwsgi.py- WSGI modulemain.py- Common alternative (requires APP_MODULE config)- Any file with
if __name__ == "__main__"and Flask/FastAPI app
Check requirements.txt/Pipfile/pyproject.toml for WSGI server:
gunicorn- Required for APP_MODULE to work with S2I Pythonuwsgi- Alternative WSGI server
Step 5: Present Findings
Format your response:
WAIT for user confirmation before proceeding.
- If user says "yes" → Save configuration with quick image selection
- If user says "smart" → Invoke
/recommend-imageskill - If user provides corrections → Update values and show again for confirmation
Note: If the user selects "smart", invoke the /recommend-image skill with the detected LANGUAGE, FRAMEWORK, and VERSION values.
Output Variables
After successful detection, these values should be available for other skills:
| Variable | Description | Example | |
|---|---|---|---|
APP_NAME | Application name | my-nodejs-app | |
LANGUAGE | Detected language | nodejs | |
FRAMEWORK | Detected framework | express | |
VERSION | Language version | 20 | |
BUILDER_IMAGE | Full S2I image reference | registry.access.redhat.com/ubi9/nodejs-20 | |
BUILD_STRATEGY | Build strategy | Source (S2I) or Podman | |
CONTAINER_PORT | Application listen port | 8080 | |
HELM_CHART_PATH | Path to Helm chart | ./chart |
Dependencies
Required MCP Servers
github- Remote repository analysis via GitHub API (for URL-based detection)
Related Skills
/s2i-build- Build with the detected S2I builder image/recommend-image- Advanced image selection based on detection results/rhel-deploy- Deploy to RHEL using detected project info
Reference Documentation
- references/builder-images.md - Language detection matrix, version-to-image mapping, S2I builder selection
- references/python-s2i-entrypoints.md - Python entry point detection, APP_MODULE configuration
- references/prerequisites.md - Required tools (git)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrh-developer/skills/detect-project/SKILL.md
Popularity
- Repository stars
- 48
- Repository forks
- 32
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rhecosystemappeng/agentic-collections/detect-project)