/ana:context-chipsfrom ana
Port or rebuild ANA's context chips — the Chip mode toggle that lets the user tap any on-screen item to attach it to the next chat message, the ✎ draw button that lets them circle things on the screen and send an annotated screenshot plus the items under the marks, and the ⟳ rescan button that registers newly added UI elements as chip targets. Use when the user says "컨텍스트 칩", "칩 모드", "그리기 버튼", "화면에 표시해서 보내기", "annotation", "요소 추가", "새로고침 버튼으로 칩 등록", or when ana-update reports context-chips / context-draw missing.
Ships in ana. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user shouldn't have to type "the second task on the Tasks tab". They switch on Chip, tap the thing, and it rides along with the next message. Or they draw on the screen.
[logo] Work Requests Evolve PRD Update ( ◉ Chip ) (✎) (⟳) (A)
│ │ └ profile, always right-aligned
│ └ rescan: register new on-screen elements as chip targets
└ draw: only shown while Chip is on, placed BEFORE ⟳
[Task] Book the venue ✕. Tapping it again removes the chip. Chips are sent as a Context: block (- [Kind] text), and the chat log view turns them back into chips on the user's bubble.#FF0000, magenta #FF00FF, blue #0000FF: pure hues the model recognizes reliably. Strokes are 5px color over a 9px white outline so they read on any background. Buttons: Undo / Cancel / Add to chat. Mostly used to circle things, like annotating a slide.modern-screenshot, served locally at /vendor/modern-screenshot.mjs) and composites the strokes on top.annotation-<tab>-<ts>.png (JPEG if > 8 MB).drawTargetsUnder), with the draw layer set to pointer-events: none while probing with elementFromPoint.CAP) is hand-written, so UI added later isn't chip-able. Rescan walks every #main section.view and finds "unit-looking" elements not covered by CAP (not containers, not control-only). It registers class-based selectors (selectorFor), so they survive re-renders, and stores them in localStorage['ana-chip-extra']. It then flashes the new ones (.chip-new) and toasts "N new element types".dashboard.html)| What | Anchors |
|---|---|
| Toggle + buttons | #modeToggle, #drawBtn, #chipScanBtn, function setMode |
| Chip state & message | contextChips, function renderChips, function addChip, function clearChips, function buildMessage |
| Targets | const CAP = [...] (selector, kind, text getter), function applyChipAffordance, function scanChipTargets, function registerChipTarget, function loadChipExtra, function selectorFor, function isControlOnly, function coveredByCap |
| Draw | #drawLayer, #drawCanvas, #drawUndo #drawCancel #drawDone, function openDraw, function closeDraw, function drawRepaint, function drawTargets, function drawTargetsUnder |
| Server | /vendor/modern-screenshot.mjs route (serves node_modules/modern-screenshot/dist/index.mjs), npm dep modern-screenshot |
npm i modern-screenshot, then add the /vendor/modern-screenshot.mjs route to the extraApi module. Uploads need /api/upload; port chat-attachments from chat-window first if it's missing.#modeToggle, #drawBtn, #chipScanBtn) into the target's header, before its profile button. Copy the CSS for .mode-toggle, .chip*, .draw-layer, .draw-bar, .chip-new.CAP for the target's own domain. das-ana has disks/volumes, not tasks. List the target's unit elements (cards, rows, KPIs) with a kind and a short text getter. This is the only part that is not copy-paste.buildMessage() must prepend the Context: block exactly as upstream, because the chat log view parses it back into chips.margin-left: auto on the toggle).Context: block. The bubble shows the chips.A blank pad for drawing a rough screen, separate from ✎ Draw (which marks up the live page). #sketchLayer with #skCanvas: pen, box, text, eraser, black / red / blue, Undo, Clear, Cancel, Send to ANA (PNG via attachFiles, input prefilled "Here is a rough sketch of a screen I want: "). Opened by any [data-sketch] button (PRD toolbar, the start card, the empty Work tab). The agent keeps sketches in the PRD as ; mdHtml shows images from /uploads/ only (.md-img).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agent-native-agent/docs-ana --plugin ana16 skills in this plugin
/agent-requestsPort ANA's Requests, Evolve, PRD and Knowledge tabs — Requests (what the agent needs from the user — pending data-change diffs, approval / decision / access requests, work only the user can do, missing information), Evolve (the agent looks at the work and the usage log and proposes what to do now and how the app should change, then builds the approved ones) and PRD (what this ANA is and does — the agent writes it, people edit it, every version is kept). Knowledge (an ontology and a graph that start empty and the agent fills from the work). Every card speaks plainly (why / ask / effect / ifNot). Also triggers on "PRD", "요구사항 문서", "지식", "온톨로지". Use when the user says "Requests 탭", "에이전트가 요청", "사용자에게 요청", "Evolve", "진화 제안", "개선 제안 탭", or when ana-update reports agent-requests / agent-evolve missing./anaAttach ANA (Agent-Native Agent) to an existing web app or service so the user can operate it by watching a dashboard and chatting with a coding agent that runs inside tmux — chat is injected via tmux paste-buffer and the session is mirrored via capture-pane, with zero dependencies (no MCP, no bridge, no hooks, no plugin runtime). Use this whenever the user wants to "add ANA / a chat+watch dashboard to my app", "attach a coding-agent chat to an existing service", "make my dashboard talk to a tmux agent", "화면 보면서 대화로 조작", "기존 서비스에 ANA 붙이기", or to scaffold the standalone ANA base app. The single file `channel-core.js` is the whole runtime — drop it in and mount it.