collapsible-sidebar SKILL.md skillA
collapsible-sidebar from julianromli/ai-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add julianromli/ai-skills/collapsible-sidebar@git:20261025.aa1a923Pins git:20261025.aa1a923 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- julianromli/ai-skills
- Path
skills/collapsible-sidebar/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261025.aa1a923, committed Oct 25, 2026
- Size
- 4,112 bytes
- Repository stars
- 214
- License
- none declared
Use this when building a sidebar that collapses to an icon rail, or any element that toggles between shown and hidden. Labels fade out before display:none and fade in on show, using CSS transition-behavior allow-discrete plus @starting-style, with no JS animation library.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Collapsible sidebar (allow-discrete fade)
Source: @nonzeroexitcode (Daniel Petho) on Threads, https://www.threads.com/@nonzeroexitcode/post/De4xkSrE0Ze. Working demo: `examples/index.html` (normal vs allow-discrete, side by side).
## The problem
`display` is a discrete property. It has no in-between value. When a label goes to `display: none`, it disappears in the first frame, and any opacity transition on it never shows.
`transition-behavior: allow-discrete` makes the browser hold the old `display` value until the transition ends. Then `display: none` applies. `@starting-style` gives the entry a start value, so the element fades in when it comes back.
## Recipe
1. Sidebar width: transition `width` between the open and collapsed sizes. Use 200ms with a strong ease-out, `cubic-bezier(0.23, 1, 0.32, 1)`. Set `overflow: hidden` on the sidebar.
2. Label: put the text in its own element (`<span class="label">`). Keep the icon outside it. Icons never move or fade.
3. Label transition:
```css
.label {
opacity: 1;
transition: opacity 150ms ease-out, display 150ms allow-discrete;
}
.sidebar[data-collapsed] .label {
opacity: 0;
display: none;
}
…Read the whole file at its exact version.
How to install
mdr add julianromli/ai-skills/collapsible-sidebar@sha256:fafa2ece6ff273f2The line at the top of this page pins the label git:20261025.aa1a923, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_vf5flqp736vi4e5q)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 25, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4112 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
julianromli/ai-skills · 214 stars · license none declared · pushed 2026-10-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_vf5flqp736vi4e5q GET https://markdownregistry.com/api/v1/resolve?ref=julianromli/ai-skills/collapsible-sidebar GET https://markdownregistry.com/api/v1/blob/fafa2ece6ff273f2c98c5bf57752ad93052f5ee584ac98afe953d05020e3853f
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.