agentleFS
gologo13gologo13/agent-skills/skills/docker-logs/SKILL.md

docker-logs

Skill0 starsChanged 10 months agoMITView on GitHub

Tail logs from Docker containers to check for errors and monitor application behavior; keywords: docker, error. Use only on explicit request; skip in routine implementation discussions.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When user requests to check container logs:

    line 12
  2. Very specific:

    Use appropriate command: Run docker logs with suitable flags based on their needs

    line 22
  3. Very specific:

    Run docker ps to discover available containers

    line 76
  4. Distinctive:

    Ask which container(s) they want to tail

    line 78
  5. Distinctive:

    Ask if they want any filters (errors only, last N lines, since time, etc.)

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Docker Logs Tail

Tail logs from Docker containers to check for errors and monitor application behavior.

Instructions

When user requests to check container logs:

  1. Discover running containers: First, list all running containers to see what's available:

    docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Image}}"
  2. Ask user which container(s): Present the list and ask which container(s) they want to monitor
  3. Use appropriate command: Run docker logs with suitable flags based on their needs

Common Commands

List running containers

docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Image}}"

Tail logs for a specific container

docker logs -f <container_name>

Tail logs with timestamps

docker logs -f --timestamps <container_name>

Tail last N lines

docker logs -f --tail 100 <container_name>

Check logs since specific time

docker logs -f --since 5m <container_name>

View logs from all containers (with docker compose)

docker compose logs -f

View logs from specific services

docker compose logs -f <service1> <service2>

Filter for errors

docker logs <container_name> 2>&1 | grep -i error

Usage Flow

  1. Run docker ps to discover available containers
  2. Present the container list to the user
  3. Ask which container(s) they want to tail
  4. Ask if they want any filters (errors only, last N lines, since time, etc.)
  5. Execute the appropriate docker logs command

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.