Skip to content
Back to skills

Build Deploy

BSecurity

Arkをビルドしてpm2で再起動する

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 13, 2026
ai-agentsbashgit

Security analysis

B88/100
  • criticalSends environment variables or credentials to an external URL

Pro shows the line behind each finding and how to fix it

Scanned November 29, 2026

npx -y skills add ignission/claude-code-ark --skill build-deploy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Deploy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Deploy
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/ignission-build-deploy/badge)](https://www.skillsdirectory.com/skills/ignission-build-deploy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build-deploy
description: Arkをビルドしてpm2で再起動する
allowed-tools: Bash
---

## 手順

手順の正本は `scripts/deploy.sh` (このスキルのディレクトリ)。ここに書くのは、どのチェックアウトのどのコミットを出すかの判断だけ。

### 1. 配信元のチェックアウトを決める

配信元は `pm2 describe claude-code-ark` のscript pathが属するチェックアウト (exec cwdではない)。

```bash
git -C "$(dirname "$(pm2 jlist | jq -r '.[] | select(.name=="claude-code-ark") | .pm2_env.pm_exec_path')")" rev-parse --show-toplevel
```

### 2. 出すコミットへ切り替える

- 切り替える前に、配信元の `git rev-parse HEAD` を見る。別のPRのコミットを指していたら、別のセッションが確認に出している最中。上書きする前にユーザーに確かめる
- mainを出すなら、`origin/main` の最新に合わせる。PRを確認に出すなら、そのPRのコミットに合わせる

### 3. 配信元のスクリプトを実行する

```bash
<配信元>/.claude/skills/build-deploy/scripts/deploy.sh
```

スクリプトは、install、check、build、再起動、反映の確認までを順に行い、失敗したところで止まる。止まったらエラーの内容を報告する。

- 配信元でないチェックアウトや、未コミットの変更があるチェックアウトからは出さない (スクリプトが止める)
- pm2のデーモンがsystemdのユニット (`pm2-admin.service`) の外にいたら、ユニットから起動し直す。Arkは一度止まるが、tmuxのセッションはpm2の外にいるので残る。`sudo` が要る
- pm2の保存envが汚れていると止まる。`--fresh` を付けて実行し直すと、登録を消して起動し直す

成功すると、同梱claudeのバージョンを出す。それを添えて「ビルド&デプロイ完了」と報告する。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.