본문으로 건너뛰기
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>

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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의 스킬 모두 보기

이 스킬의 문제 신고