Prism can turn task-adjacent comments into structured documentation.

This is one of the fastest ways to preserve operator knowledge close to the source that implements it.

Why It Matters

Supported Marker Model

Prism uses # prism~... markers. The supported note marker is prism~note.

Common marker kinds:

Example: prism~note

Use prism~note when you want a short free-form comment to appear with task documentation.

# prism~note: verify firewall openings before first deploy

- name: Start application service
  ansible.builtin.service:
    name: my-app
    state: started

Good uses:

Example: prism~task

Use prism~task in either of these modes:

Explicit targeting example:

# prism~task: Restart application service | warning: confirm service user exists before restart
# prism~task: Restart application service | note: source=change-window-only

- name: Restart application service
  ansible.builtin.service:
    name: my-app
    state: restarted

Implicit next-task example:

# prism~task: note: verify health checks before continuing

- name: Deploy and restart application node
  ansible.builtin.service:
    name: my-app
    state: restarted

Commented-out task example:

# prism~task: warning: disabled during freeze window
#
# - name: Restart application service
#   ansible.builtin.service:
#     name: my-app
#     state: restarted

These patterns are useful when:

Example: Multiline prism~runbook

Use continuation comment lines immediately below the first marker line.

# prism~runbook:
# precheck verify health endpoint returns 200
# drain node from load balancer
#
# restart service and wait 30 seconds
#
# postcheck confirm queue depth and error rate are normal

- name: Roll application node safely
  ansible.builtin.service:
    name: my-app
    state: restarted

Authoring Rules

Provenance Advantage

Comment-driven documentation is more valuable when readers can see where facts and inferences came from.

Pair marker usage with provenance-tracking.md to understand:

Next Step

Use this guide with getting-started.md for your first role scan and user-guide.md for everyday workflows.