本文へ移動
cccskills
無料GitHub で公開

python-project-deployment-troubleshooting

Read-only first troubleshooting workflow for Python project deployments, including systemd startup failures, dependency issues, encoding problems, permissions, proxy setup, and readiness gates.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Python Project Deployment Troubleshooting

Purpose

Diagnose Python deployment failures safely before changing code, packages, files, permissions, service units, or runtime configuration. This skill turns common failure patterns into a read-only evidence collection workflow.

When to use

  • A Python service fails under systemd or another process supervisor.
  • Startup exits with import errors, syntax errors, invalid arguments, readiness blockers, or dependency failures.
  • A deployment package may have Windows line endings, BOM, path separator, or archive layout issues.
  • The service has proxy, external API, permission, virtualenv, or readiness problems.

Safety rules

  • Default workflow is read-only.
  • Do not install packages, edit files, chmod/chown, restart services, unpack archives into production, or modify systemd without explicit approval.
  • Do not print .env, credentials, API keys, database URLs, tokens, private endpoints, or raw logs containing user data.
  • Replace real names and paths with <PROJECT_NAME>, <PROJECT_ROOT>, <SERVICE_NAME>, <VENV_PATH>, <UPLOAD_DIR>, and <EXTERNAL_ENDPOINT>.
  • Prefer summarizing traceback types and module names over dumping full logs.

Read-only workflow

  1. Establish the failed component, time window, deployment method, and expected startup path.
  2. Check service status and recent journal summaries without restarting.
  3. Identify the actual command, working directory, service user, virtualenv, and environment keys present.
  4. Inspect package/archive metadata in staging only: file names, size, timestamp, and whether archive layout looks plausible. Do not unpack into production.
  5. Check script encoding indicators safely: file type, first bytes if needed, line-ending class, shebang, and shell syntax validity plan. Do not modify the file.
  6. Check dependency failure class: missing module, incompatible version, optional extra missing, mirror/source issue, or wrong virtualenv.
  7. Check permissions by summarizing ownership and mode of key directories, especially project root, virtualenv, logs, data, and package directories.
  8. Check proxy/network requirements and whether the service runtime sees only the required environment variable names, not values.
  9. Check readiness gates and current artifact timestamps to avoid treating stale failures as current truth.
  10. Produce a remediation plan grouped by approval level: safe checks, package install, permission fix, config edit, restart, or rollback.

Evidence to collect

  • Service active/substate, exit code, restart count, and main PID if present.
  • Safe traceback summary: exception type, module name, top-level failing area.
  • Entrypoint, working directory, and virtualenv summary.
  • Artifact metadata and archive layout concerns.
  • Encoding/line-ending/shebang classification.
  • Dependency/import failure matrix.
  • Permissions summary for required directories.
  • Proxy/environment key presence without values.
  • Readiness artifact status and freshness.

Stop conditions

  • The next step requires modifying source, installing packages, changing permissions, restarting services, or unpacking deployment artifacts.
  • Logs or config contain secrets that cannot be summarized safely.
  • It is unclear whether the inspected machine is the deployment target.
  • The failure may require code changes and the user has not approved development work.

Optional user-approved actions

Only after explicit user approval:

  • Convert line endings or remove BOM.
  • Install missing dependencies or change package indexes.
  • Change permissions or ownership.
  • Edit systemd unit or environment file.
  • Unpack artifacts to staging or production.
  • Restart/reload services.
  • Add or run diagnostic tests.
  • Roll back to a previous deployment artifact.

Final report format

Summary: <deployment diagnosis>
Project: <PROJECT_NAME>
Service state: <state/exit/restarts>
Failure class: <encoding/dependency/permission/proxy/readiness/archive/unknown>
Evidence:
- Logs: <safe summary>
- Entrypoint: <summary>
- Dependencies: <summary>
- Files/permissions: <summary>
- Readiness: <summary>
Likely cause: <ranked hypothesis>
Recommended remediation: <approval-gated steps>
Needs approval: <specific changes>

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Route CEO-first multi-window work into owner-led role loops. Use for 总控/CEO、架构/CTO、内容主编、角色派发与复用、模型路由、来源窗口回调、role-windows 台账、skill 命中统计或 multi-window loop engineering。

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

Read-only first workflow for diagnosing application incidents by collecting service, log, network, configuration, and functional evidence before proposing any fix.

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

Run user-authorized black-box web security tests and evidence-based reports. Use for 黑盒安全测试、渗透测试、数据泄露、未授权访问、公开 JS/API、登录爆破防护、CORS 或安全响应头检查。

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

Choose the narrowest reliable browser surface across Codex Browser, signed-in Chrome, Playwright CLI, and platform scripts. Use for browser automation, logged-in workflows, UI inspection, screenshots, form filling, publish previews, or frontend QA.

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

提议并执行 rubric 或 bucket 升级。两种模式:**完整 rubric bump**(最高风险动作,5 步强制 + 跨模型审核)和 **--bucket-only 轻量重校**(只换 bucket 边界,不动 rubric 公式)。**Phase 2 强制走 cheat-score-blind sub-agent 给校准池重打分**——不接受 self-scored fallback。触发词:"升级 rubric"/"bump rubric"/"更新公式"/"我想加一个维度"/"调整权重"/"重校桶"/"recalibrate bucket"。

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

初始化 cheat-on-content 内容校准工作区。仅在用户明确开始该工作流,或其子 skill 确认缺少 .cheat-state.json 时使用;不响应一般项目初始化、安装诊断或 Codex 首次会话。

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

Dirtytrii のスキルをすべて見る

このスキルの問題を報告する