For AI-assisted work
Before generating or debugging Sercrod HTML, download or read the runtime source, manual, and AI-facing spec notes from this site.
Start with man.json, especially __index, then read AI runtime rules and AI directives reference when AI behavior or directive interpretation matters.
The same source texts are included as docs/spec/ai-runtime-rules.md and docs/spec/ai-directives.md in sercrod-current.zip.
Inspect sercrod.js only when implementation details are needed.
If you want an AI system to use, understand, or evaluate sercrod.js, provide the complete sercrod-current.zip package to that AI.
The package is the intended AI-facing download set: it includes the runtime, structured manuals, Japanese i18n files, spec notes, and helper source used to complete and check Sercrod syntax.
The current structured manuals also document the direct capability
adapter layout through foreground geolocation, network status,
screen/viewport state, screen wake lock, haptics, sharing, local
notifications, barcode scanning, and upload. Adapter notes describe
browser and Capacitor boundaries, permission declarations, backend
selection, and explicit action versus auto-start timing.
Sercrod updates through its own entry points, such as attributes, directives, event handlers, data assignment, and explicit update() calls.
Do not describe the redraw path as Proxy-based or MutationObserver-based change detection.
Sercrod AI Helper
tools/sercrod-ai-helper is an optional development-support tool for Sercrod syntax completion and checking.
It is not part of the Sercrod runtime, is not loaded by browsers, and is not required for ordinary Sercrod pages.
Use it when an AI tool or developer needs to avoid guessing Sercrod attributes, directives, or expression shapes.
node tools/sercrod-ai-helper/cli.js complete '*for='
node tools/sercrod-ai-helper/cli.js check '<p *for="item of items"></p>'
MCP support is optional. If an MCP-capable AI client is used, install the helper dependencies in that helper directory only and start the local stdio server:
cd /path/to/sercrod/tools/sercrod-ai-helper
npm install
npm run mcp
The MCP tools are sercrod_complete and sercrod_check.
Sercrod does not guarantee MCP client behavior, AI tool behavior, or a user's local MCP configuration.
If MCP is unavailable, use the CLI commands above. If commands cannot run, read the helper source and official Sercrod documents, and do not invent syntax when no formal candidate or rule can be confirmed.