update-inventory
Skill3 starsChanged 7 months agoMITView on GitHub
Use when the user wants to update the Inventory changelog Confluence page with recently shipped DLRINV items. Trigger on: '/update-inventory', 'update inventory changelog', 'log what shipped', 'update the changelog', 'what went to prod this week'. Queries the DLRINV Jira board for Done items and appends them to https://carsales.atlassian.net/wiki/spaces/DEAL/pages/3928391694/Inventory+changelog
In this repository35 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ckm:banner-designSkill
- ckm:brandSkill
- challenge-meSkill
- define-productSkill
- ckm:designSkill
- ckm:design-systemSkill
- discoverySkill
- jira-story-creatorSkill
- log-decisionSkill
- meeting-notesSkill
- one-pager-creatorSkill
- experiment-designerSkill
- release-readinessSkill
- release-noteSkill
- release-readinessSkill
- review-okrsSkill
- ckm:slidesSkill
- brainstormingSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
- ckm:ui-stylingSkill
- ui-ux-pro-maxSkill
- update-customerSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
If the user passed a number of days, use that
- Very specific: line 21
Run this JQL query using searchJiraIssuesUsingJql:
- Distinctive: line 45
Only include items where the answer is clearly yes:
- Distinctive: line 121
If the user edits or removes entries, update your candidate list and loop back to the preview until they confirm.
- Distinctive: line 131
Always group entries by month.
- Distinctive: line 140
Update the heading for the current month to reflect the new total (e.g.
- Distinctive: line 141
If a month heading already exists in the page body, prepend the new entries immediately after the heading and update the count
- Distinctive: line 142
If no heading exists for this month yet, add a new month heading with the correct count above the previous month's section
- Distinctive: line 204
After a successful update, output:
≈ “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.
Files
Update Inventory Changelog
Overview
Queries the DLRINV Jira board for items recently moved to Done, shows a preview, and appends new entries to the Inventory changelog Confluence page.
Phase 1: Fetch Recent DLRINV Completions
Determine the lookback window:
- If the user passed a number of days, use that
- Otherwise default to 7 days
Run this JQL query using searchJiraIssuesUsingJql:
project = DLRINV
AND status changed to "Done" AFTER -Xd
AND issuetype in (Story, Bug, Task)
ORDER BY updated DESCcloudId:carsales.atlassian.net- Fields to fetch:
summary,status,resolutiondate,updated,issuetype,labels,assignee,created - Max results: 50
- Response format:
markdown
Filter out noise — exclude from the candidate list:
- Issues whose summary starts with or contains: "Deploy ", "Test ", "[Retro]", "[Rollback]", "SPIKE", "Spike", "Design Review", "Refactor", "Coordinate", "Decommission", "Shutdown", "Migrate", "Migration"
- Never include Teams thread links — entries that link to a Teams thread instead of a Jira ticket must be excluded, both when adding new entries and when restoring/rebuilding the page. Every entry must reference a Jira ticket. If an entry has no Jira key, skip it entirely.
- Issues with no
resolutiondate - Duplicate summaries
- Issues that are clearly internal ops, infrastructure, or tech debt (e.g. database changes, service deprecations, code cleanup, internal tooling)
Apply the dealer experience test — after filtering noise, apply one more pass:
Would a dealer notice this change, or benefit from it? If not, exclude it.
Only include items where the answer is clearly yes:
- A new feature or capability dealers can use
- A bug fix that affected something dealers could see or do
- A rule or behaviour change that impacts listings, publishing, or pricing
- A fix that restores something that was broken for dealers
Exclude items where the value is internal:
- Infrastructure work (migrations, decommissions, service shutdowns)
- Developer tooling or code quality improvements
- SPIKEs, design reviews, coordination tasks
- Performance improvements that are invisible to dealers
- Schema or data changes with no UI or workflow impact
When unsure, ask the user: "DLRINV-XXXX ([summary]) — does this have a visible impact on dealers? Should I include it?"
Phase 2: Read Current Changelog
Fetch the current page using getConfluencePage:
cloudId: carsales.atlassian.net
pageId: 3928391694
contentFormat: adfNote the version number from the response — you'll need it for the update step.
Also note the date of the most recent entry so you can skip any Jira items already logged.
Phase 3: Preview & Confirm
Present the proposed new entries to the user in this format:
New entries to add (X items):
2026-03-23 — Special Offers side panel released with vehicle details and OEM offer display [DLRINV-8116](https://carsales.atlassian.net/browse/DLRINV-8116)
2026-03-23 — Publishing rules updated to restrict new & demo Mazda listings [DLRINV-8131](https://carsales.atlassian.net/browse/DLRINV-8131)
What would you like to do?
a) Add all and update the page
b) Remove specific entries (tell me which ones)
c) Edit a description (tell me which one and what to say)
d) CancelGrouping rule — club related tickets into a single entry: Before writing descriptions, look for tickets that together form one coherent piece of value (e.g. multiple stories delivering one feature, a bug and its follow-up fix, front-end and back-end halves of the same change). Group these into a single entry with a combined description. List all contributing Jira keys as linked references at the end.
The audience is senior leadership — they care about business outcomes and dealer experience, not implementation details.
- Always link every Jira ticket referenced — never output a bare key. Format:
[DLRINV-XXXX](https://carsales.atlassian.net/browse/DLRINV-XXXX). For grouped entries, list all keys:[DLRINV-100](…) [DLRINV-101](…)
Include vs exclude examples:
| Ticket | Decision | Reason |
| Special Offers - Create side panel | ✅ Include | Dealers can now see and apply OEM offers — visible new capability |
| Publishing rules updated to restrict Mazda listings | ✅ Include | Directly affects what dealers can publish |
| Fixed Hyundai stock not appearing in Special Offers | ✅ Include | Bug fix dealers would have noticed |
| Coordinate Bike/Boats Opportunity Index migration | ❌ Exclude | Internal data migration, no dealer impact |
| Shutdown legacy group dashboard service | ❌ Exclude | Infrastructure decommission, not dealer-facing |
| Refactor stats query to use DCP Stats API | ❌ Exclude | Internal code change, no visible change for dealers |
| SPIKE: Block bulk publishing of test stocks | ❌ Exclude | Investigation task, not a shipped change |
| Automations - Design Review | ❌ Exclude | Internal process, not a shipped change |
Description writing rules:
- Describe the value delivered, not the work done. Ask: what can a dealer now do that they couldn't before? or what problem is now solved?
- Plain English — no Jira jargon, no tech terms (no "endpoint", "migration", "refactor", "schema", "API", "pipeline")
- Present tense, sentence case (e.g. "OEM special offers now display automatically on eligible listings at publish")
- Max 120 characters for the description text
If the user edits or removes entries, update your candidate list and loop back to the preview until they confirm.
Phase 4: Update the Confluence Page
Once approved, update the page using updateConfluencePage.
Month grouping
Always group entries by month. Each month heading includes a total change count:
March 2026 - 10 changesWhen building the updated page:
- Count all entries (new + existing) that fall within each month
- Update the heading for the current month to reflect the new total (e.g. if there were 6 entries and you're adding 4, the heading becomes "March 2026 - 10 changes")
- If a month heading already exists in the page body, prepend the new entries immediately after the heading and update the count
- If no heading exists for this month yet, add a new month heading with the correct count above the previous month's section
ADF structure
Build the updated page body in ADF format.
Month heading block:
[
{
"type": "heading",
"attrs": { "level": 2 },
"content": [{ "type": "text", "text": "March 2026 - 10 changes" }]
}
]Each new entry is a numbered list item with:
- A Confluence date inline node (
type: "date",attrs.timestamp: epoch ms in UTC at midnight) - A text node for the description:
— [one-line description] - A linked text node for the Jira key pointing to
https://carsales.atlassian.net/browse/DLRINV-XXXX
Example ADF snippet for a single entry (wrap all entries in "type": "orderedList"):
{
"type": "listItem",
"content": [{
"type": "paragraph",
"content": [
{
"type": "date",
"attrs": { "timestamp": "1742688000000" }
},
{
"type": "text",
"text": " — Special Offers panel released to inventory list page "
},
{
"type": "text",
"text": "[DLRINV-8116]",
"marks": [{
"type": "link",
"attrs": { "href": "https://carsales.atlassian.net/browse/DLRINV-8116" }
}]
}
]
}]
}Update call
updateConfluencePage:
cloudId: carsales.atlassian.net
pageId: 3928391694
title: Inventory changelog
version: <current version + 1>
body: <full updated ADF body>After a successful update, output:
✓ Changelog updated — X new entries added
https://carsales.atlassian.net/wiki/spaces/DEAL/pages/3928391694/Inventory+changelogDo not send any Teams, Slack, or other notifications. Updating the Confluence page is the only output.
Error Handling
| Scenario | Response |
| No Done items found in the lookback window | Tell the user, offer to extend the window |
| All candidates are filtered as noise | Show the raw list and ask the user to pick manually |
| Page version conflict (409) | Re-fetch the page, get new version number, retry once |
| Confluence update fails | Show the error, output the formatted entries as text so the user can paste manually |
| User has no Confluence write access | Output the formatted entries as text for manual copy-paste |
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.

