Skip to content
Agentmart
Submit a tool

webapp-defaults

The standing defaults when scaffolding a small vanilla web app (index.html + main.js + style.css) — dark mode ON by default and persisted to localStorage, a…

Skill by koteitan

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/koteitan-webapp-defaults

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The standing defaults when scaffolding a small vanilla web app (index.html + main.js + style.css) — dark mode ON by default and persisted to localStorage, a top-right hamburger pulldown menu, and tab/option state saved to localStorage and restored on load. Apply when creating a new simple SPA/tool page.

Use cases: frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/webapp-defaults

What's inside

Skill name
webapp-defaults
Description
The standing defaults when scaffolding a small vanilla web app (index.html + main.js + style.css) — dark mode ON by default and persisted to localStorage, a top-right hamburger pulldown menu, and tab/option state saved to localStorage and restored on load. Apply when creating a new simple SPA/tool page.
License
MIT
Instructions
53 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# webapp-defaults

Default UI conventions the user re-specifies in every small vanilla web app.
Apply them by default when scaffolding a new page unless told otherwise.

## When to invoke

- Creating a new small front-end (a tool page, toy, visualizer) from scratch,
  especially when the user says "main.js style.css index.html で作って".
- User asks for a menu / dark mode / state persistence on such a page.

## Defaults

1. **Stack:** plain `index.html` + `main.js` + `style.css` (vanilla, no build
   step) unless the project already uses a framework.

2. **Dark mode:**
   - **Default is DARK.**
   - Toggle lives as a checkbox in the menu (below).
   - Persist the choice to `localStorage` and restore it on load.

3. **Menu:** a **hamburger pulldown menu in the top-right corner**. Put the
   dark-mode checkbox and any options in it.

4. **State persistence:** save UI state — selected tab, chosen options,
   toggles — to `localStorage`, and **restore it on load** so a reload
   reproduces the last state.

## Sketch

```js
// main.js — dark mode default + persistence
const KEY = 'ui';
const state = JSON.parse(localStorage.getItem(KEY) || '{}');
const dark = state.dark ?? true;                 // default dark
document.documentElement.classList.toggle('dark', dark);

function save(patch) {
  Object.assign(state, patch);
  localStorage.setItem(KEY, JSON.stringify(state));
}
// on tab switch: save({ tab: id });  on load: restore state.tab
```

```css
/* style.css — dark by default via :root, .dark just re-affirms/toggles */
:root { color-scheme: dark; background:#1a1a1a; color:#d4d4d4; }
```

Keep it minimal and dependency-free. Match existing project style if one
exists.

From koteitan/my-skills, MIT.

More from koteitan/my-skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Aug 8, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from koteitan

Cite this page

webapp-defaults skill. Agent Mart. https://agentmart.dev/skills/koteitan-webapp-defaults (last updated 2026-10-24)