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.

Install it, pinned
mdr add julianromli/ai-skills/collapsible-sidebar@git:20261025.aa1a923

Pins 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

The exact contents, by fingerprint
mdr add julianromli/ai-skills/collapsible-sidebar@sha256:fafa2ece6ff273f2

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vf5flqp736vi4e5q.svg)](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.

versioncommittedcommitsizeaudit
git:20261025.aa1a923 latest2026-10-25 aa1a923 4,112 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from julianromli/ai-skills

agent-browser SKILL.md skill
julianromli/ai-skills · skills/agent-browser/SKILL.md · Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages…
git:20260505.3e57ae0 · audit A · 214 stars
brainstorming SKILL.md skill
julianromli/ai-skills · skills/brainstorming/SKILL.md · You MUST use this before any creative work - creating features, building components, adding functionality, or modifying…
git:20260505.3e57ae0 · audit A · 214 stars
clone-website SKILL.md skill
julianromli/ai-skills · skills/clone-website/SKILL.md · Reverse-engineer and clone one or more websites in one shot — extracts assets, CSS, and content section-by-section and…
git:20260505.3e57ae0 · audit A · 214 stars
AGENTS.md@skills/composition-patterns AGENTS.md file
julianromli/ai-skills · skills/composition-patterns/AGENTS.md
git:20260505.3e57ae0 · audit A · 214 stars
vercel-composition-patterns SKILL.md skill
julianromli/ai-skills · skills/composition-patterns/SKILL.md
v1.0.0 · audit B · 214 stars
convex-best-practices SKILL.md skill
julianromli/ai-skills · skills/convex-best-practices/SKILL.md · Guidelines for building production-ready Convex apps covering function organization, query patterns, validation…
git:20260505.3e57ae0 · audit A · 214 stars
deploy-to-vercel SKILL.md skill
julianromli/ai-skills · skills/deploy-to-vercel/SKILL.md · Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy…
v3.0.0 · audit A · 214 stars
design-engineer-router SKILL.md skill
julianromli/ai-skills · skills/design-engineer-router/SKILL.md · Use at the start of EVERY design, UI/UX, frontend, motion, copy-on-screen, component, review, or product-idea task…
git:20261026.1a245b1 · audit A · 214 stars
frontend-design SKILL.md skill
julianromli/ai-skills · skills/frontend-design/SKILL.md · Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to…
git:20260505.3e57ae0 · audit A · 214 stars
frontend-skill SKILL.md skill
julianromli/ai-skills · skills/frontend-skill/SKILL.md · Use when the task asks for a visually strong landing page, website, app, prototype, demo, or game UI. This skill…
git:20260505.3e57ae0 · audit A · 214 stars
gpt-taste SKILL.md skill
julianromli/ai-skills · skills/gpt-tasteskill/SKILL.md · Elite UX/UI & Advanced GSAP Motion Engineer. Enforces Python-driven true randomization for layout variance, strict AIDA…
git:20260505.3e57ae0 · audit A · 214 stars
grainy-gradient SKILL.md skill
julianromli/ai-skills · skills/grainy-gradient/SKILL.md · Use this when making soft, premium gradient backgrounds or covers (ElevenLabs / macOS wallpaper style) - blurred color…
git:20261023.b9be9dd · audit A · 214 stars

Every file in julianromli/ai-skills

Browse by kind, by grade A, or by owner.