fix-and-deploy
Skill0 starsChanged 19 days agoMITView on GitHub
Fix a bug in a running homelab service, check the fix against the original symptom, apply it to the live container, proxy or DNS path, then check the live target again before reporting it fixed. Use when a fix must reach something already running, not only a commit or a local copy.
In this repository13 other files it gives its agents.
- architecture-diagramSkill
- cloudflare-oneSkill
- cloudflareSkill
- containersSkill
- dashmotionSkill
- diagramSkill
- expose-a-service-safelySkill
- getting-startedSkill
- homelab-health-checkSkill
- homelab-troubleshootingSkill
- network-diagramSkill
- runbookSkill
- systematic-debuggingSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Before you change anything, make the failure happen again:
- Distinctive: line 21
Run the request that failed.
- Very specific: line 23
Use the homelab-troubleshooting skill to find the cause when it is not clear.
- Distinctive: line 31
Check the fix where you made it.
- Distinctive: line 35
Every deploy change follows the dry run, go-ahead, approval flow.
- Very specific: line 55
If the target is reachable from the internet, check it from outside your network.
- Distinctive: line 72
If the target is public, the proof must be public too.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Fix and deploy
A fix counts as deployed when the live target shows the fix. A passing local test, a container that restarted, or a 200 from a health endpoint does not prove the reported bug is gone. Verify against the symptom the user reported, on the target where they saw it.
The sequence
1. Reproduce the original symptom
Before you change anything, make the failure happen again:
- Record the exact target: the public URL, the container name, or the DNS name.
- Record the exact symptom: the status code, the error text, or the behavior.
- Run the request that failed. If you cannot reproduce it, you do not yet know what "fixed" means. Ask the user for the steps they took.
Use the homelab-troubleshooting skill to find the cause when it is not clear.
2. Fix the cause
Change one thing at a time. Write the cause in one sentence before you edit the config or image. Stop when the fix addresses that cause, not the symptom.
3. Check the fix before deploying
Check the fix where you made it. A local test or a dry run proves the change is valid. It does not prove the live service works. Call this the pre-deploy check, and report it as a separate step.
4. Deploy through Homelab
Every deploy change follows the dry run, go-ahead, approval flow. Pick the call that matches what changed:
| What changed | Call | Dry run first |
| Container image or config | docker_containers with restart, or pull then restart for a new image tag | Yes |
| Proxy host forward target or SSL | proxy_hosts with update | Yes |
| DNS record target | dns_records with update | Yes |
| Certificate after a domain change | proxy_certificates with request | Yes |
Show each dry-run plan to the user. The person approves each change in the MCP client. If the client returns approval_unavailable, stop and explain the setting that the message names. Do not set it yourself.
5. Check the live target against the original symptom
Repeat step 1's request exactly. Check these first:
- The container started after the deploy. Compare
docker_containerswithget: the state isrunning, and the start time is after the deploy. A container that did not restart still runs the old code. diagnose_servicewith the domain. Every hop passes.
6. Check the public path from outside
If the target is reachable from the internet, check it from outside your network. Use a phone on cellular data, or a request from a host that is not on the LAN. Run curl -sI https://<domain> from that host and repeat the failing request.
A check from inside the network can pass while the public path still fails. This is the step that catches a stale DNS record, a missing certificate or a proxy rule that only applies locally.
7. Report
Report four facts:
- The original symptom, as the user reported it.
- The cause and the change.
- The pre-deploy check result.
- The live result, from outside the network when the service is public.
Say "fixed" only after step 6 passes. If step 6 does not pass, say which hop failed and what you checked.
The rule
If the target is public, the proof must be public too. A check that reaches the service only from the same machine proves less than the user's check.
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
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.

