Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Cratis/AInpx agentmods add skills/cratis/ai/cratis-components-submit-formWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cratis/ai/cratis-components-submit-form)<a href="https://agentmods.dev/skills/cratis/ai/cratis-components-submit-form"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-components-submit-form/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cratis/ai/cratis-components-submit-form"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-components-submit-form.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00041 | $0.01217 |
| Opus 5.5 | $0.00016 | $0.00487 |
| Sonnet 5.5 | $0.00008 | $0.00243 |
| Haiku 4.5 | $0.00004 | $0.00122 |
Grade A, and why
cratis-components-submit-form scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Open a dialog to register an author
Default to one CommandDialog for a short submission. Bind the state change's input to the generated command. Submitting requests the change; it does not prove that an event committed.
- Under the app's
ArcandCratisComponentsProvider, use the generated command from the app's proxy tree. For the generatedid: Guid, callGuid.create(). UseinitialValuesfor the ID the reader doesn't type. Bind the Name field directly to the command property.
import { useState } from 'react';
import { CommandDialog } from '@cratis/components/CommandDialog';
import { InputTextField } from '@cratis/components/CommandForm';
import { Guid } from '@cratis/fundamentals';
import { RegisterAuthor } from '../../../generated/Features/Authors/Registration/RegisterAuthor';
export function AddAuthor() {
const [initialValues] = useState(() => ({ id: Guid.create() }));
return <CommandDialog<RegisterAuthor> command={RegisterAuthor} title="Add author"
okLabel="Add" initialValues={initialValues}>
<InputTextField<RegisterAuthor> value={author => author.name} title="Name" />
</CommandDialog>;
}
- Open that dialog from the owning screen. Render the component returned by
useDialogonce, beside the button.useDialogsupplies this custom dialog's context. To also offer the shared confirmation and busy dialogs, register DialogComponents inApp.tsx.
import { useDialog } from '@cratis/arc.react/dialogs';
import { AddAuthor } from './AddAuthor';
export function AddAuthorButton() {
const [Dialog, show] = useDialog(AddAuthor);
return <><button type="button" onClick={() => void show()}>Add author</button><Dialog /></>;
}
- Render
AddAuthorButtonbeside the list, independent of row selection. Add no submit handler. OK runs the command. The dialog stays open on failure so the reader can correct the name; keep both field errors and the form summary visible.
Choose this when one command genuinely needs several stages: use StepperCommandDialog. Import { StepperCommandDialog, StepperPanel } from @cratis/components/CommandDialog. Replace both CommandDialog tags with StepperCommandDialog, and wrap each field group with <StepperPanel header="Author details">…</StepperPanel> using a distinct header per step. Next and Previous move between panels without executing; the final Submit runs the command only after validation across all steps. Verify that returning to fix a required field on an earlier step preserves the other inputs and enables one final submission.
Choose this when editing a selected item: pass the selected ID and name to show({ id, name }). In the edit dialog component, which receives those values as props, capture that opening's snapshot with const [initialValues] = useState(() => ({ id, name }));. Pass it to CommandDialog as above. useDialog unmounts the dialog on close, so the next opening starts with its own values. Pass validateOnInit when the prefilled values may be invalid and errors should appear on open.
Read the generated command type before choosing field accessors; use its property names, not the labels shown in the dialog. Put required values already known to the caller in initialValues, not onBeforeExecute (validation runs first). For a Date property, choose CalendarField from @cratis/components/CommandForm; set showTime when the time is required. Put caller-owned post-save effects in onSuccess, not in a click or close handler.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +5 lines · -1 tokens per session a8badb1b9b1f
- 2d ago First seen · 66 lines · 42 tokens per session scan A c92dcedf4452
cratis-components-submit-form is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 1,217 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.
cratis-components-submit-form compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cratis-components-submit-formCratis/AI | Skill | 4 | today | MIT | A | 41 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |