agentleFS
AayushMSAayushMS/deploy-skills/skills/deploy-log/SKILL.md

deploy-log

Skill0 starsChanged 9 months agoMITView on GitHub

Enable continuous debug logging for deploy-skills sessions. Invoke this skill BEFORE running deploy-project (or any individual deploy-skills skill) to get step-by-step logging of every decision, command, and outcome written to DEPLOYMENT_DOCS/DEPLOYMENT_LOG.md. Use when you want to record the full deployment process for review or debugging. Triggers on "deploy with logging", "deploy with debug", "enable deploy logging", "debug mode deploy", "deploy log", "deploy my project with logging", or any request to record/trace the deployment process.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create DEPLOYMENT_DOCS/ if it doesn't exist, then create DEPLOYMENT_DOCS/DEPLOYMENT_LOG.md:

    line 12
  2. Distinctive:

    When the session's deployment work is complete (or stopped), append:

    line 75
  3. Distinctive:

    After initializing the log file, tell the user:

    line 103
  4. Distinctive:

    Log failures immediately: when they happen, not just at the end

    line 117

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

deploy-log

You are now in deployment debug mode. This persists for the entire session.

Step 1: Initialize the Log

Create DEPLOYMENT_DOCS/ if it doesn't exist, then create DEPLOYMENT_DOCS/DEPLOYMENT_LOG.md:

# Deployment Log
**Project:** [name of current directory]
**Session started:** [current date and time]
**Mode:** Debug (deploy-log active)

---

Step 2: Continuous Logging Rules

For the rest of this session, after every meaningful action, append an entry to DEPLOYMENT_DOCS/DEPLOYMENT_LOG.md. Do this throughout execution — not just at skill boundaries.

Log after:

  • Any service or framework detected
  • Any platform decision made
  • Any CLI command run (log the command and its outcome/output summary)
  • Any env var captured (name only, never value)
  • Any URL obtained
  • Any user decision (approved / rejected / changed something)
  • Any error or unexpected result
  • Any step skipped and why

Log format — one entry per action:

### [HH:MM] [skill-name] — [brief title]
[One or two lines describing what happened, what was decided, or what failed.]
[Command run if applicable: `the command`]
[Outcome: success / error message / value obtained (names only for secrets)]

Examples:

### 14:32 scan-project — Detected Next.js frontend
Found `next` in package.json dependencies. Recommending Vercel.

### 14:33 scan-project — No Redis detected
No bullmq/ioredis in deps, no REDIS_URL in .env.example. Skipping Upstash.

### 14:35 setup-auth — Vercel already authenticated
`vercel whoami` returned username. Skipping login.

### 14:36 deploy-supabase — Created project
`supabase projects create my-app-db --region us-east-1` succeeded.
PROJECT_URL and DATABASE_URL captured.

### 14:41 deploy-render — Polling for live status (attempt 3/60)
Service not yet live. Waiting 10s before retry.

### 14:52 deploy-render — Service live
`https://my-app.onrender.com` — health check returned 200.

### 14:53 deploy-project — Wiring env vars to frontend
Injecting BACKEND_URL into Vercel project env vars.

Step 3: Final Summary

When the session's deployment work is complete (or stopped), append:

---

## Session Summary — [current date and time]
**Overall result:** [Complete / Stopped at: step name and reason]

| Step | Status | Notes |
|------|--------|-------|
| scan-project | ✅/❌ | |
| setup-auth | ✅/❌ | |
| deploy-[db] | ✅/❌ | |
| deploy-[backend] | ✅/❌ | |
| deploy-[frontend] | ✅/❌ | |
| setup-cicd | ✅/❌ | |
| verify-deployment | ✅/❌ | |

**Deployed URLs:**
- Frontend: [URL or not deployed]
- Backend: [URL or not deployed]
- Database: [platform + project or not deployed]

**Total duration:** ~[N] minutes

Step 4: Proceed

After initializing the log file, tell the user:

Debug logging enabled. DEPLOYMENT_DOCS/DEPLOYMENT_LOG.md will be updated continuously throughout this session.

Ready — run /deploy-project (or any deploy-skills skill) to begin.

Then wait for the user's next command. Do not invoke deploy-project automatically.

Rules

  • Never log secret values — only variable names (e.g. RENDER_API_KEY captured, not the key itself)
  • Append only — never overwrite the log file
  • Log failures immediately when they happen, not just at the end
  • Keep entries brief — one or two lines each; this is a trace log, not an essay

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.