当前位置: 首页 > Skill >

Nm Attune Workflow Setup

Nm Attune Workflow Setup

1.9.16 2026.11.20 浏览:975
获取Skill文件查看使用说明
作者:顾宁许可证:
本文目录展开

Night Market Skill — ported from claude-night-market/attune. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Table of Contents

  • When To Use
  • Standard Workflows
  • Python Workflows
  • Rust Workflows
  • TypeScript Workflows
  • Workflow
  • 1. Check Existing Workflows
  • 2. Identify Missing Workflows
  • 3. Render Workflow Templates
  • 4. Validate Workflows
  • Workflow Best Practices
  • Use Latest Action Versions
  • Matrix Testing (Python)
  • Caching Dependencies
  • Updating Workflows
  • Related Skills

Workflow Setup Skill

Set up GitHub Actions workflows for continuous integration and deployment.

When To Use

  • Need CI/CD for a new project
  • Adding missing workflows to existing project
  • Updating workflow versions to latest
  • Automating testing and quality checks
  • Setting up deployment pipelines

When NOT To Use

  • GitHub Actions workflows already configured and current
  • Project uses different CI platform (GitLab CI, CircleCI, etc.)
  • Not hosted on GitHub
  • Use /attune:upgrade-project instead for updating existing workflows

Standard Workflows

Python Workflows

  1. test.yml - Run pytest on push/PR
  2. lint.yml - Run ruff linting
  3. typecheck.yml - Run mypy type checking
  4. publish.yml - Publish to PyPI on release

Rust Workflows

  1. ci.yml - Combined test/lint/check workflow
  2. release.yml - Build and publish releases

TypeScript Workflows

  1. test.yml - Run Jest tests
  2. lint.yml - Run ESLint
  3. build.yml - Build for production
  4. deploy.yml - Deploy to hosting (Vercel, Netlify, etc.)

Workflow

1. Check Existing Workflows

ls -la .github/workflows/

Verification: Run the command with --help flag to verify availability.

2. Identify Missing Workflows

from project_detector import ProjectDetector

detector = ProjectDetector(Path.cwd())
language = detector.detect_language()

required_workflows = {
    "python": ["test.yml", "lint.yml", "typecheck.yml"],
    "rust": ["ci.yml"],
    "typescript": ["test.yml", "lint.yml", "build.yml"],
}

missing = detector.get_missing_configurations(language)

Verification: Run pytest -v to verify tests pass.

3. Render Workflow Templates

workflows_dir = Path(".github/workflows")
workflows_dir.mkdir(parents=True, exist_ok=True)

for workflow in required_workflows[language]:
    template = templates_dir / language / "workflows" / f"{workflow}.template"
    output = workflows_dir / workflow

    engine.render_file(template, output)
    print(f"✓ Created: {output}")

Verification: Run the command with --help flag to verify availability.

4. Validate Workflows

# Syntax check (requires act or gh CLI)
gh workflow list

# Or manually check YAML syntax
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/test.yml'))"

Verification: Run pytest -v to verify tests pass.

Workflow Best Practices

Use Latest Action Versions

# Good - pinned to major version
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

# Avoid - unpinned or outdated
- uses: actions/checkout@v2
- uses: actions/setup-python@latest

Verification: Run pytest -v to verify tests pass.

Matrix Testing (Python)

strategy:
  matrix:
    python-version: ["3.10", "3.11", "3.12"]
    os: [ubuntu-latest, macos-latest, windows-latest]

Verification: Run pytest -v to verify tests pass.

Caching Dependencies

- uses: actions/setup-python@v5
  with:
    python-version: '3.10'
    cache: 'pip'  # Cache pip dependencies

Verification: Run python --version to verify Python environment.

Shell Script Safety in Workflows

When writing inline shell scripts in workflows, ensure proper exit code handling:

# BAD - pipeline masks exit code
- run: |
    make typecheck 2>&1 | grep -v "^make["
    echo "Typecheck passed"  # Runs even if make failed!

# GOOD - use pipefail
- run: |
    set -eo pipefail
    make typecheck 2>&1 | grep -v "^make["

# GOOD - capture exit code explicitly
- run: |
    output=$(make typecheck 2>&1) || exit_code=$?
    echo "$output" | grep -v "^make[" || true
    exit ${exit_code:-0}

For complex wrapper scripts, run /pensive:shell-review before integrating.

Updating Workflows

To update workflows to latest versions:

/attune:upgrade-project --component workflows

Verification: Run the command with --help flag to verify availability.

Related Skills

  • Skill(attune:project-init) - Full project initialization
  • Skill(sanctum:pr-prep) - PR preparation with CI checks

相关文章

更多
langchain-ollama 1.2.0 发布:Ollama 最低版本要求提升至 v0.6.3

LangChain 仓库通过 GitHub Actions 发布了 langchain-ollama 1.2.0。新版集成包将 Ollama 的最低版本要求提高至 v0.6.3,旨在更好地支持高阶推理与思考层级(thinking levels)。此次更新同步更新了相关依赖包,但摘要未列出具体包名和版本明细。升级前需确认当前环境中的 Ollama 版本,若低于 v0.6.3 则需先升级 Ollama。

2026.11.23 573
Skill 文件
  • SKILL.md
    • Table of Contents
    • Workflow Setup Skill
    • When To Use
    • When NOT To Use
    • Standard Workflows
      • Python Workflows
      • Rust Workflows
      • TypeScript Workflows
    • Workflow
      • 1. Check Existing Workflows
      • 2. Identify Missing Workflows
      • 3. Render Workflow Templates
      • 4. Validate Workflows
    • Workflow Best Practices
      • Use Latest Action Versions
      • Matrix Testing (Python)
      • Caching Dependencies
      • Shell Script Safety in Workflows
    • Updating Workflows
    • Related Skills
  • 项目或源文件

相关 Skill

更多
Security Audit Tools Security Audit Tools 在任何下载前,检查第三方 Claude/OpenClaw/Codex/OpenCode 技能、插件、仓库、npm 包、pip 包、Shell 安装程序和 GitHub Actions。
阿拉丁·CI/CD与部署编排工坊|多平台流水线·Docker/K8s·质量门禁·本地校验 阿拉丁·CI/CD与部署编排工坊|多平台流水线·Docker/K8s·质量门禁·本地校验 阿拉丁·CI/CD与部署编排工坊把"交付上线"工程化:①自动探测仓库——识别语言/框架/构建/测试/端口,免手填;②多平台 CI 一键齐发——GitHub Actions + GitLab CI + Jenkinsfile 三大主流;③容器化——多阶段 Dockerfile(非 root/多语言基础镜像) + docker-compose;④编排部署——Kubernetes Deployment/Service/Ingress + Helm 骨架(带探针/资源限制/健康检查);⑤质量门禁联动——把 aladin-code-pilot(审查)/aladin-api-pilot(契约测试)/aladin-sql-forge(迁移) 嵌成流水线 stage;⑥本地校验 dry-run——纯标准库做 YAML 结构/密钥占位符/:latest 告警/端口/探针校验;⑦发布流水线——语义版本 bump + CHANGELOG + 标签 + 发布说明;⑧多格式导出——.yml/.yaml/.groovy/Dockerfile + HTML 看板 + MD 部署文档。相比 skillhub 飙升的
CI/CD Pipeline CI/CD Pipeline 使用 GitHub Actions 创建、调试和管理 CI/CD 流水线。适用于需要设置自动化测试、部署、发布或工作流的场景。涵盖工作流语法、常用模式、密钥管理、缓存、矩阵构建及故障排查。
GitHub 智能代码审查与 CI/CD 自动化 GitHub 智能代码审查与 CI/CD 自动化 GitHub 智能代码审查与 CI/CD 自动化工作流。收到 PR 或代码提交时,自动进行 AI 代码审查(bug/安全/逻辑),并根据审查结果智能生成或推荐 GitHub Actions 工作流。触发词:代码审查、review PR、生成 CI/CD、GitHub Actions。
DevOps Bridge DevOps Bridge Unified developer operations bridge connecting GitHub, CI/CD (GitHub Actions), Slack, Discord, and issue trackers (Linear, Jira, GitHub Issues) into cross-to...