Back to list
stharrold

tech-stack-adapter

by stharrold

MCP research toolkit for pregnancy medication studies. Aggregates data from social media, academic databases (PubMed, Scholar), government sources (FDA, CDC), and clinical platforms. Features IRB-compliant anonymization, structured exports for NVivo/Atlas.ti. Contact: emkinney@iu.edu .

0🍴 0📅 Jan 3, 2026

SKILL.md


name: tech-stack-adapter version: 5.0.0 description: | Detects Python project configuration and provides commands for testing, building, coverage, and containerization.

Use when: Starting workflow, detecting project stack, need TEST_CMD

Triggers: detect stack, what commands, initial setup

Outputs: TEST_CMD, BUILD_CMD, COVERAGE_CMD, COVERAGE_CHECK, MIGRATE_CMD

Tech Stack Adapter

Purpose

One-time detection of Python/uv project configuration. Returns standardized commands for use throughout workflow.

Detection Script

Run scripts/detect_stack.py to analyze the project and generate command configuration.

Usage in Workflow

# Run once at workflow start
python .claude/skills/tech-stack-adapter/scripts/detect_stack.py > /tmp/stack_config.json

# Access in other skills
export TEST_CMD=$(jq -r '.test_cmd' /tmp/stack_config.json)
export BUILD_CMD=$(jq -r '.build_cmd' /tmp/stack_config.json)
export COVERAGE_CHECK=$(jq -r '.coverage_check' /tmp/stack_config.json)

Output Format

{
  "stack": "python",
  "package_manager": "uv",
  "project_name": "project-name",
  "repo_root": "/path/to/repo",
  "install_cmd": "uv sync",
  "test_cmd": "uv run pytest",
  "build_cmd": "uv build",
  "coverage_cmd": "uv run pytest --cov=src --cov-report=term",
  "coverage_check": "uv run pytest --cov=src --cov-report=term --cov-fail-under=80",
  "database": "sqlite",
  "orm": "sqlalchemy",
  "migrate_cmd": "uv run alembic upgrade head",
  "container": "podman",
  "has_containerfile": false,
  "has_compose": false,
  "test_framework": "pytest",
  "has_pytest_cov": true
}

Detected Configuration

The script detects:

  • Package manager: uv or pip
  • Test framework: pytest, unittest, or none
  • Coverage tool: pytest-cov presence
  • Database: SQLite, PostgreSQL (via SQLAlchemy), or none
  • ORM: SQLAlchemy, none
  • Migrations: Alembic presence
  • Container: Containerfile and podman-compose.yml existence

Integration with Other Skills

All other skills should call this detector first to get project-specific commands:

import json
import subprocess

# Run detector
result = subprocess.run(
    ['python', '.claude/skills/tech-stack-adapter/scripts/detect_stack.py'],
    capture_output=True,
    text=True
)

config = json.loads(result.stdout)

# Use detected commands
subprocess.run(config['test_cmd'].split())
subprocess.run(config['coverage_check'].split())

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon