bama
BAMA: Build Any Mac App. Agent skills to research, clone, design, build, optimize, and test native macOS apps with Swift and SwiftUI.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Skills and cookbooks that teach coding agents to install a Cookie Compliance consent banner the right way: loaded first, blocking trackers before consent, and set up through the Cookie Compliance MCP server.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Skills and cookbooks that teach coding agents to add a Cookie Compliance consent banner to a website, and to set it up so the consent actually holds.
Status: early. Structure and the install path are in place. Items marked planned are not published yet.
Ask a coding agent to "add a cookie banner so we comply with GDPR" and it usually writes one by hand: a popup that stores the visitor's choice in localStorage. By then the analytics tag at the top of the page has already run.檢視完整 README ↗Skills and cookbooks that teach coding agents to add a Cookie Compliance consent banner to a website, and to set it up so the consent actually holds.
Status: early. Structure and the install path are in place. Items marked planned are not published yet.
Paste this into your coding agent (Claude Code, Cursor, Windsurf, GitHub Copilot, Codex, or any agent that can read a web page):
Install the Cookie Compliance consent banner on this website, start to finish.
Read https://manual.hu-manity.co/start.md and follow it.
Mode: autopilot. Decide the technical steps yourself. Ask me only for what only I can do (sign in or register, the legal region choice, anything that costs money), one question at a time with your recommended answer first.
Do not write your own banner.
More prompts: prompts.md. Connect your AI app to your account: connect.md. The page the agent follows: start.md.
Ask a coding agent to "add a cookie banner so we comply with GDPR" and it usually writes one by hand: a popup that stores the visitor's choice in localStorage. By then the analytics tag at the top of the page has already run.
Consent law cares about what runs before the visitor chooses, not about whether a notice is shown. A banner that appears after the trackers have fired is decoration.
This manual gives agents tested procedures for doing it properly with Cookie Compliance, a consent management platform (CMP) by Hu-manity.co: the right snippet, in the right place, configured through the right channel.
A hand-rolled banner is a popup and a localStorage flag. A Cookie Compliance banner, installed the way this manual describes, also:
This isn't hypothetical. A controlled trial of Cookie Compliance's MCP server (n=5 per arm, same method as any experiment this size — a signal, not a rate) measured what an agent actually does: given the install tool, hand-rolling a banner went from 5/5 runs to 0/5, and a supplied AppID got a correct live install 5/5. That's the failure mode this manual exists to close off, whether the agent reaches Cookie Compliance through the MCP server or through the skills and cookbooks here.
None of the above is a claim that installing Cookie Compliance this way makes a site legally compliant with any law. That depends on the site's configuration, its vendors, and its own legal review. It's a claim about what the banner does, verified against a real install, once it's placed the way this manual describes.
| Folder | What it holds | Who it's for |
|---|---|---|
start.md, connect.md, prompts.md | The page an agent follows to install start to finish, how to connect each AI app to the MCP server, and copy-paste prompts. | Everyone |
skills/ | Installable agent skills. Each folder has a SKILL.md that an agent loads and follows. | Agents |
cookbooks/ | Worked recipes per platform and scenario. Each one covers the problem, the common wrong approach, the right approach, and how to check that it worked. | Developers and agents |
gallery/ | Example banner designs: a screenshot, a caption and the exact design JSON for each, with a separate page for the v2 banner at gallery/v2/. Generated from gallery/examples.json. | Developers and agents |
site/ | Documentation website — HTML for people, llms.txt + raw markdown for agents. Live at manual.hu-manity.co. Generated by scripts/sync-site.sh from , and the root docs — edit the source, never directly. |
install-banner calls this at its own verify step; it also stands alone for checking a banner someone else installed.| Cookbook | Status |
|---|---|
plain-html.md | Shipped |
wordpress.md | Shipped |
nextjs.md | Shipped |
gtm.md | Shipped |
nuxt.md | Shipped |
astro.md | Shipped |
angular.md | Shipped |
vite.md | Shipped |
sveltekit.md | Shipped |
shopify.md | Shipped |
gallery/ shows example banner designs (also at manual.hu-manity.co/gallery/), and gallery/v2/ shows designs for the v2 banner (also at manual.hu-manity.co/gallery/v2/); the two pages link to each other. Everything in both comes from gallery/examples.json, where each example names its engine. To change or add one: edit examples.json, run node scripts/gallery.mjs render <id> (needs npm i playwright) to retake the screenshot, then node scripts/gallery.mjs build and scripts/sync-site.sh. CI runs node scripts/gallery.mjs build --check.
Blocking works by execution order, and code that has already run cannot be un-run. So the Cookie Compliance snippet must be:
<head>.async, defer or type="module", and never moved or merged by a bundler or a "combine JS" optimiser.Prefer live HTML from MCP install.getSnippet or the dashboard Integrations → Manual Integration. Once the app is published (a domain added in the dashboard is published automatically; after later edits, click Publish Now), those sources emit the correct CDN path for the app's banner engine (hu-banner.min.js for v1, /v2/hu-banner.min.js for v2). Do not hardcode the script URL from memory after an engine switch.
Every skill and cookbook here is built on this rule.
Cookie Compliance runs a remote MCP server (Streamable HTTP). Existing customers add https://mcp.cookie-compliance.co/mcp/account and sign in in the browser; to try it with no account, add https://mcp.cookie-compliance.co/mcp. Steps for each AI app: connect.md.
| Situation | Tool |
|---|---|
| The site owner has a Cookie Compliance AppID | install.getSnippet returns the live snippet and the placement rules. |
| Signed in, need an AppID for this domain | account.listApps then account.createApp if missing. Ask the owner once about the GDPR starter (configure-regions). |
| No account yet | help.startSignup returns the signup link; pass the site's domain and the add-domain step is pre-filled. The free tier needs no card. A new paid subscription's first payment can use code JOIN-40D (details in start.md); the signup links here carry it. No MCP: sign up here. |
| Just want to see how it would look | demo.generateSnippet gives a preview only. It records and enforces no consent, so never leave it on a live site. |
| Match the banner to the site's colours | demo.suggestDesign |
| Change a live banner's design or settings | the account.* tools, which need the account address and a signed-in connection (connect.md) |
The skills in this repo tell an agent when to reach for each tool, and what to check afterwards.
On WordPress, install the Cookie Compliance plugin instead of pasting a snippet. The plugin handles placement and script order.
The prompt above works without installing anything: the agent fetches the skill from this site. To keep the skill on hand, clone or add this repo where your agent reads skills, then point it at skills/install-banner/ (the folder that contains SKILL.md). Cookbooks used offline are copied into skills/install-banner/references/ by scripts/sync-references.sh — run that after editing anything under cookbooks/.
Example (Claude Code-compatible skill layout): ensure skills/install-banner/SKILL.md is on the skill search path for the session.
Issues and pull requests are welcome. Every contribution is reviewed before it is merged, because agents will follow what these pages say.
A contribution must:
YOUR_APP_ID and example.com. CI runs scripts/check-no-real-data.sh on every PR.skills/*/references/. Those copies are generated; CI runs scripts/sync-references.sh --check.site/*.md or site/llms.txt. Those are generated by scripts/sync-site.sh; CI runs it with --check. Only the top-level site/index.html is hand-written and excluded from the sync.MIT. "Cookie Compliance" is a trademark of Hu-manity.co; this license covers the skills and cookbooks in this repo, not the trademark or the hosted service.
Cookie Compliance is a product of Hu-manity.co.
skills/cookbooks/site/*.md| Everyone |