AGENT SKILL

bama-router

Build any Mac app. Start here to pick the next skill for a native macOS app.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 2
Forks
0

01 前言 Front Matter

name
bama-router
description
Build any Mac app. Start here to pick the next skill for a native macOS app.
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

<!-- Version-Timestamp: 2026-10-27 07:36:32 AST -->

Adapted execution contract

This is the pinned, MIT-attributed BAMA capability adapted for the owned design kit. Read ADAPTATION.md at the BAMA package root before executing helpers. Project instructions, approved DESIGN.md and canonical tokens take precedence. Use supported Codex or Claude Code tools. Resolve this skill's sibling files relative to its installed SKILL.md; skill_dir is a task-local shell variable that you set to that resolved directory before running the examples in either host. Invoke a named bama-* skill through the host's supported skill mechanism.

Stage local builds by default. Installation, signing identity selection, launch, CLI linking, MCP registration, system setting changes and capture access are separate explicit operations. Existing task authorization applies; ask only for an action not already authorized. Stage or commit only when the current task or repository workflow authorizes it. Stage explicit paths and include required attribution. The helpers do not commit. Preserve the feature, story and testing workflow below using the hardened helpers. Legacy installed-app paths in examples must be replaced by the staged binary returned by build.sh.

Before a new scaffold exists, keep planning evidence under the selected <AppName>-planning/docs/ sibling or an existing approved planning folder. Treat docs paths below as relative to that planning folder until the fresh app is scaffolded, then copy the planning docs explicitly without replacing existing files. For an existing app, keep its current project layout.

The upstream acceptance statements describe checks to perform, never completed results. Screenshots, runtime behavior, permissions and cross-host acceptance require actual evidence. Use synthetic data and owned temporary test roots. Do not run a hosted session over real app data without project authorization.

Build any Mac app

Find where the user is on the path below, then invoke the host-supported skill mechanism for that step. One skill per call.

idea -> research -> clone (optional) -> app-brief -> user-stories -> new-mac-app
     -> mac-design + design-system + app-icon -> improve-loop (ux, code, design, verify, commit) -> repeat

Pick the name first (app-brief, step 1). Keep research, screenshots, brief and stories in <parent>/<AppName>-planning/docs/, or the approved existing planning folder. Leave <parent>/<AppName> absent until the scaffold helper creates it. Then copy the planning docs explicitly into the new app without overwriting an existing file, and switch the work packet to that app root. Existing apps keep their current repository layout. Design follows the scaffold, using project tokens from the first view. Icon design can proceed as source work; actual native icon rendering requires its toolchain.

Plan

The user has Skill
A vague idea, or asks "what should I build" bama-research, then bama-app-brief
An app they want to replace or rebuild bama-clone
A brief or a screen index, no backlog bama-user-stories
A spec from BAMA's specs/ folder bama-app-brief (it copies the spec)

Build

The user wants to Skill
Start a new project bama-new-mac-app
Write or fix Swift and SwiftUI code bama-swift-swiftui
Hook into macOS: hotkeys, menu bar, windows, screen capture, Shortcuts bama-os-integrations
Make it fast: hangs, stutter, GPU, video, memory bama-performance
Let Claude Code, Codex, or scripts drive the app: a CLI, an MCP server bama-agent-cli
Refactor, clean up, or check the code as it grows bama-improve-architecture

Design

The user wants to Skill
Decide how a feature works and what it says: names, flow, modals, accessibility bama-ux-design
Make it look and feel like a Mac app bama-mac-design
An accent or brand color, a color picker, tokens bama-design-system
Their own parts and feel, not Apple's: buttons, rows, sidebar, icons bama-design-kit
The look of an app they name, or screenshots of one bama-design-from-app
One set of colors, radii, motion, and controls for the whole app bama-design-system
Fix spacing and alignment, or check the layout on the grid bama-layout-grid
An app icon bama-app-icon

Ship

The user wants to Skill
Build it and look at every page bama-build-and-verify
Tests, a self-test, or an agent that drives the running app bama-test-mac-app
Work through the backlog on its own bama-improve-loop

Done when

You named the step, called its skill, and told the user which skill comes after it.

04 同仓库更多 Skills

newmindsgroup
newmindsgroup/visual-design-kit

web-design

Load before planning, designing, auditing or launching any website, landing page, cinematic hero, microsite or above-the-fold layout, or a prompt for Lovable, Bolt or v0 to build one, including regulated (prescription drug, health, finance), multilingual or market-specific launches. Covers page types (home, product, pricing, about, blog), conversion and ethical persuasion, responsive and fluid layouts, Core Web Vitals, SEO and structured data, localization and language-law requirements, stack and CMS choice (Astro, Next.js, WordPress, Webflow, Framer) and launch QA.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

ux-design

Load before designing or reviewing any flow, form, onboarding, navigation or content for real users, especially low-literacy, older, neurodivergent, child or other specific audiences. Covers research and usability tests, heuristic reviews, personas and jobs to be done, journeys and service blueprints, information architecture, UX laws, SUS, SEQ and HEART metrics, plain language and reading level, and microcopy and error messages.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

ui-design

Load before designing or specifying any interface screen or component, even a quick one: forms, tables, navigation, dashboards, onboarding, auth and passkeys, pricing, checkout, search and filters, settings, empty, loading and error states, notifications, consent and age-appropriate flows, and AI chat and agent interfaces, all to WCAG 2.2 AA. Also picks React UI libraries (toasts, drawers, command menus). Gives component specs, state matrices, sizes, density and keyboard and accessibility behavior.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

typography

Choose, pair, size and set type for brand, web, app, print, slides, signage and motion: modular scales, fluid clamp() type, measure, leading, tracking, OpenType features, font licensing and web font loading, and multiscript setting for CJK, Arabic, Hebrew, Devanagari and Thai. Use when selecting or pairing fonts, building a type scale or type tokens, fixing weak hierarchy or bad line breaks, setting long-form text or numbers, loading web fonts, or localizing type for another market.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

reference-reconstruction

Reconstructs the observed interface and behavior of a supplied app, site or screenshot set using a screen index, measurements, state and command maps, reusable components and matched-condition comparisons. Use when asked to reverse engineer, clone, reproduce or match a reference product, then adapt it if requested.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

print-packaging-social

Load before any print, packaging, label, barcode, social, out-of-home, slide-deck or email design question, even a quick one, and before making finished collateral files. Specs: bleed, safe zones, 300ppi, CMYK, PDF/X preflight, dielines, barcodes, social formats with 9:16 safe areas, billboard letter heights, 16:9 decks, bulletproof email. Renders token-driven brand books, sell sheets, cards, carousels and decks to PDF and PNG with a Canva editable twin.

★ 2