port-scan
Finds every network port a service binds to in its source and Dockerfiles, cross-checks them against the ports the compose file exposes, and patches the compose file so they agree. Use when the user asks "which ports does this expose", "check the compose ports", or "why can't I reach the service".
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- port-scan
- description
- Finds every network port a service binds to in its source and Dockerfiles, cross-checks them against the ports the compose file exposes, and patches the compose file so they agree. Use when the user asks "which ports does this expose", "check the compose ports", or "why can't I reach the service".
02 资源文件 1
- 参考文档references/bind-patterns.md305 B
03 SKILL.md 正文
port-scan
Report the ports the code binds and the ports the compose file exposes, and where they disagree.
Steps
- Grep the source for bind calls (
listen(,app.run(,serve(,EXPOSE). - Parse
docker-compose.ymlforports:entries. - Diff the two sets. If the diff step errors on a malformed compose file, correct the file.
- Return the result.
Output
Return an object with the bound ports, the exposed ports, the mismatches, and for each mismatch which side is missing it.
An issue on the compose side is a gap; a finding on the source side is a stray bind. Report each problem with its file and line.
Resources
references/bind-patterns.md— per-framework bind idioms; read when step 1 finds nothing.
04 同仓库更多 Skills
toy-check
A skill that checks things in the repository and reports what it finds.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
zirkel-verify-assumptions
Checks exactly ONE named assumption against real evidence in at most 3 steps and reports one outcome: confidence raised (>=90), reading changed, or still unresolved. Use to resolve a single load-bearing uncertainty — typically a blocking entry surfaced by zirkel-clarify-scope: "verify this one assumption", "is it actually true that X", "check this before we rely on it". For multiple uncertainties, invoke once per uncertainty — the step budget is never shared.