协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
skill-063【开发与工程】Generate language-specific Makefile with common development targets
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate a Makefile with standard development targets for Python, Rust, or TypeScript projects.
Common targets:
help - Show available targetsinstall - Install dependencies with uvlint - Run ruff lintingformat - Format code with rufftypecheck - Run mypy type checkingtest - Run pytesttest-coverage - Run tests with coverage reportcheck-all - Run all quality checksclean - Remove generated files and cachesbuild - Build distribution packagespublish - Publish to PyPICommon targets:
help - Show available targetsfmt - Format with rustfmtlint - Run clippycheck - Cargo checktest - Run testsbuild - Build release binaryclean - Clean build artifactsCommon targets:
help - Show available targetsinstall - Install npm dependencieslint - Run ESLintformat - Format with Prettiertypecheck - Run tsc type checkingtest - Run Jest testsbuild - Build for productiondev - Start development server# Check for language indicators
if [ -f "pyproject.toml" ]; then
LANGUAGE="python"
elif [ -f "Cargo.toml" ]; then
LANGUAGE="rust"
elif [ -f "package.json" ]; then
LANGUAGE="typescript"
fi
from pathlib import Path
template_path = Path("plugins/attune/templates") / language / "Makefile.template"
metadata = {
"PROJECT_NAME": "my-project",
"PROJECT_MODULE": "my_project",
"PYTHON_VERSION": "3.10",
}
from template_engine import TemplateEngine
engine = TemplateEngine(metadata)
engine.render_file(template_path, Path("Makefile"))
make help
Users can add custom targets after the generated ones:
# ============================================================================
# CUSTOM TARGETS
# ============================================================================
deploy: build ## Deploy to production
./scripts/deploy.sh
Skill(attune:project-init) - Full project initializationSkill(abstract:makefile-dogfooder) - Makefile testing and validation