ptah-surface-authoring
Skill34 starsChanged 10 days agoMITView on GitHub
Authors ptah-ui blocks and HTML artifacts from verified data. Use for a turn summary, stats, file changes, test results, a chart, usage or plan limits. For a report, dashboard or visual view of work, load this skill and any design or dataviz skill, then publish an HTML artifact with ptah_artifact_publish. technical-content-writer and ui-ux-designer may still apply.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Hive-Academy/ptah-extensionword for word, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Hive-Academy/ptah-extension★ 34100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agent-lanesSkill
- angular-3d-scene-crafterSkill
- angular-frontend-patternsSkill
- angular-gsap-animation-crafterSkill
- ddd-architectureSkill
- execute-phase-gated-taskSkill
- frontend-designSkill
- humanize-librarySkill
- nestjs-backend-patternsSkill
- nestjs-deploymentSkill
- nx-workspace-architectSkill
- orchestrationSkill
- resilient-nestjs-patternsSkill
- saas-platform-patternsSkill
- saas-workspace-initializerSkill
- session-handoffSkill
- skill-creatorSkill
- technical-content-writerSkill
- tribunalSkill
- ui-ux-designerSkill
- webhook-architectureSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use a ptah-ui block for a compact recap, a comparison, a small set of statistics, changed files, test results, subagent usage, CLI plan …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reports and visual views
When the user asks for a report, a dashboard, a prototype, or any visual or representational view of their work, do not answer with ptah-ui blocks alone. Load this skill. Also load a design or data-visualization skill when one is available (frontend-design, dataviz). Gather verified data, publish one attractive self-contained HTML artifact with ptah_artifact_publish, then describe it in one sentence in chat.
ptah-ui stays the choice for a compact host-verified summary: a turn recap, stats, a diff, tests, usage, plan limits, or a small chart.
The page is one index.html of at most 2 MiB UTF-8. Keep CSS and JavaScript inline. Do not use the network, a CDN, a remote font or a remote image. Respond to the host light/dark theme message. The theme bridge in the HTML artifacts section below is required.
Use a ptah-ui block for a compact recap, a comparison, a small set of statistics, changed files, test results, subagent usage, CLI plan limits, or a chart. Use ordinary prose for normal explanation, and use ordinary code fences for code the user needs to copy.
Two targets exist. A plain ```ptah-ui fence renders inline in the message. A ```ptah-ui display or ```ptah-ui display <id> fence sends the same block to the side display panel. Reusing an id replaces that panel surface in place, so a compact summary can be refreshed instead of repeated.
Prefer host-backed sources over repeating information the host already owns. Write the source reference and let the host render the real values; never type file lists, test counts, costs, agent names or limits that a source provides. This keeps the reply compact and saves context tokens.
| Source | Gives you |
$diff | Changed files of this turn: file, addition and deletion counts, per-file rows |
$tests | Test runs of this turn: totals and one row per command |
$usage | Tokens, cost and duration of this turn |
$agents | Subagents and CLI lanes: counts, tokens, cost, per-agent rows with duration and context |
$limits | Plan limits of the CLI lanes: per lane and window, used, state and reset |
$agents session (and $agents.session.<field>) widens $agents from this turn to every turn of the session up to and including the block's own turn, never a later one. No other source takes session.
Blocks render only in the Ptah Electron app. An invalid block, or a display block that is invalid, stays an ordinary code block with a short reason line, and the display panel is left unchanged. Keep the grammar exact.
Read the ptah-ui reference before authoring a block: it carries the grammar, the display and id rules, the $agents and $limits details, worked examples and common mistakes. For the interactive surface contract read the surface catalog reference: it documents every dashboard-catalog/3 component kind with one validated JSON example per kind, and lists the dashboard-catalog/4 kinds that ptah-ui blocks produce.
HTML artifacts
Keep ptah-ui as the default for short host-verified summaries. When the user asks for a substantial visual page such as a dashboard, report or prototype, publish an HTML artifact with ptah_artifact_publish. Artifacts display in the Ptah desktop app. Supply a title and exactly one of html or path; the page is one self-contained index.html of at most 2 MiB UTF-8.
Use semantic HTML and keyboard-operable controls. Make the layout responsive from 360 px and respond to the host's light/dark theme message. Keep CSS and JavaScript inline. CSP blocks network requests, CDNs, remote fonts and remote images; use data: images and prefer inline SVG or canvas charts with your own small chart code instead of a library. After publishing, describe the artifact in one sentence without pasting its HTML. Visually check it only when a browser tool can load the page; otherwise say no visual check ran. Never claim a screenshot you did not take.
The host sends { type: 'theme', mode: 'light' | 'dark', vars, nonce } after frame load and on theme changes. Only these CSS variables are sent: --b1, --b2, --b3, --bc, --bcm, --ptah-gold, --ptah-accent-ink, --ptah-link, --state-ink-err, --state-ink-done, --surface-highlight. Echo the current nonce in each page-to-host message. The host checks the frame source, schema and nonce; height must be an integer from 160 to 1600 px, and links must be HTTP(S). This minimal bridge belongs in the page's inline script:
<script>
let nonce = null;
const sendHeight = () => {
if (!nonce) return;
const px = Math.max(160, Math.min(1600,
Math.ceil(document.documentElement.scrollHeight)));
parent.postMessage({ type: 'height', px, nonce }, '*');
};
addEventListener('message', (event) => {
if (event.source !== parent) return;
const data = event.data;
if (data?.type !== 'theme' || !['light', 'dark'].includes(data.mode) ||
typeof data.nonce !== 'string' || !data.vars ||
typeof data.vars !== 'object') return;
nonce = data.nonce;
document.documentElement.dataset.theme = data.mode;
for (const [name, value] of Object.entries(data.vars)) {
if (typeof value === 'string') document.documentElement.style.setProperty(name, value);
}
sendHeight();
});
new ResizeObserver(sendHeight).observe(document.documentElement);
addEventListener('click', (event) => {
const link = event.target instanceof Element ? event.target.closest('a[href]') : null;
if (!link) return;
const url = new URL(link.href, location.href);
if (!['http:', 'https:'].includes(url.protocol)) return;
event.preventDefault();
if (nonce) parent.postMessage({ type: 'open-link', url: url.href, nonce }, '*');
});
</script>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

