agentleFS
ehm3dkehm3dk/claude-skills-for-pms/skills/log-decision/SKILL.md

log-decision

Skill3 starsChanged 7 months agoMITView on GitHub

Use when the user wants to log an architectural, product, or technical decision to Confluence. Trigger on: '/log-decision', 'log a decision', 'document a decision', 'create a decision log', 'record this decision', 'ADR'. Asks structured questions then creates a new child Confluence page with a two-column ADF decision log table.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask each question one at a time in the order below.

    line 23
  2. Distinctive:

    After collecting all answers, show a summary and ask: "Looks good — shall I write this to Confluence?"

    line 37
  3. Distinctive:

    If the user provided a parent page URL or ID as an argument, create the child page under that parent.

    line 39
  4. Very specific:

    Date: Use a Confluence date inline node: { "type": "date", "attrs": { "timestamp": "EPOCH_MS_UTC_MIDNIGHT" } }

    line 87
  5. Very specific:

    Call getConfluenceSpaces with the space key to get the numeric id:

    line 108
  6. Very specific:

    Use the id field from the result (e.g.

    line 116
  7. Very specific:

    Call createConfluencePage with the exact parameter names below:

    line 120
  8. Distinctive:

    After a successful create, output:

    line 132

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

Log Decision

Overview

Guides the user through a structured set of questions one at a time, then creates a new child Confluence page under a specified parent page. The page contains a two-column ADF decision log table with the decision title as the page title.

What this skill does:

  • Asks 9 questions one at a time (title, date, contributors, linked work, considerations, decision, estimated effort, consequences, next steps)
  • Shows a summary and asks for confirmation before writing
  • Looks up the numeric spaceId from the space key using getConfluenceSpaces
  • Creates a new child page under the parent using createConfluencePage with ADF content

Phase 1: Ask Questions

Ask each question one at a time in the order below. Wait for the user's answer before moving to the next. Skip Linked Work and Estimated Effort if the user says "skip" or "none".

#FieldQuestion to ask
1Title"What's a short title for this decision?"
2Date"What date was this decision made? (default: today)"
3Contributors"Who were the contributors? (names or @mentions)"
4Linked Work"Any linked Jira tickets or Confluence pages? (or skip)"
5Considerations"What's the context or background that drove this decision? What problem or situation prompted it?"
6Decision"What was decided? Be specific."
7Estimated Effort"What's the estimated engineering effort? (or skip)"
8Consequences"What are the positive outcomes? What are the risks or negatives?"
9Next Steps"What actions or follow-ups come from this decision?"

After collecting all answers, show a summary and ask: "Looks good — shall I write this to Confluence?"

If the user provided a parent page URL or ID as an argument, create the child page under that parent. Otherwise ask: "Which Confluence page should this live under? (paste parent page URL or page ID)"


Phase 2: Build ADF Table

Build the decision log as a 2-column table — narrow left column (labels) and wide right column (values).

Full ADF table structure:

{
  "type": "table",
  "attrs": { "layout": "center", "width": 1800 },
  "content": [
    { "ROW": "Date" },
    { "ROW": "Contributors" },
    { "ROW": "Linked Work" },
    { "ROW": "Considerations" },
    { "ROW": "Decision" },
    { "ROW": "Estimated Effort" },
    { "ROW": "Consequences" },
    { "ROW": "Next Steps" }
  ]
}

Each row structure:

{
  "type": "tableRow",
  "content": [
    {
      "type": "tableHeader",
      "attrs": { "colspan": 1, "rowspan": 1, "colwidth": [236] },
      "content": [{ "type": "paragraph", "content": [{ "type": "text", "text": "LABEL", "marks": [{ "type": "strong" }] }] }]
    },
    {
      "type": "tableCell",
      "attrs": { "colspan": 1, "rowspan": 1, "colwidth": [1563] },
      "content": [ ... cell content ... ]
    }
  ]
}

Cell content rules:

  • Date: Use a Confluence date inline node: { "type": "date", "attrs": { "timestamp": "EPOCH_MS_UTC_MIDNIGHT" } }
  • Contributors: Plain text (names as typed, or mention nodes if account IDs are known)
  • Linked Work: Paragraph with inline links for Jira keys and Confluence URLs; empty paragraph if skipped
  • Considerations: One paragraph per point, key phrases bolded
  • Decision: One paragraph with key outcome bolded
  • Estimated Effort: Single paragraph; empty paragraph if skipped
  • Consequences: Positive bold paragraph + bullet list of positives, then Negative / Risks bold paragraph + bullet list of risks
  • Next Steps: One paragraph per step

Phase 3: Write to Confluence

Step 1 — Extract page ID and space key from URL

Given a URL like https://carsales.atlassian.net/wiki/spaces/DEAL/pages/3510665321/Inventory+Decision+Log:

  • pageId = 3510665321
  • spaceKey = DEAL

Step 2 — Look up the numeric spaceId

Call getConfluenceSpaces with the space key to get the numeric id:

getConfluenceSpaces:
  cloudId: carsales.atlassian.net
  keys: <spaceKey>

Use the id field from the result (e.g. "id": "14614629").

Step 3 — Create the child page

Call createConfluencePage with the exact parameter names below:

createConfluencePage:
  cloudId: carsales.atlassian.net
  spaceId: <numeric id from Step 2>
  parentId: <pageId from Step 1>
  title: <decision title>
  contentFormat: adf
  body: <full ADF doc with the table>

After a successful create, output:

✓ Decision logged
  <new Confluence page URL>

Error Handling

ScenarioResponse
User skips a required field (Considerations, Decision)Re-ask once with a simpler prompt
No parent page providedAsk for parent page URL or ID before proceeding
400 — page with same title already existsTell the user and ask for a different title
Any other page creation failureShow the error message and ask the user to verify the parent page URL

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.