@offorte/show-doc 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Offorte
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,118 @@
1
+ # ShowDoc
2
+
3
+ **Write for agents. Render for people.**
4
+
5
+ ShowDoc is an agent skill for Codex, Claude Code, and other compatible coding agents. It turns
6
+ reports, plans, reviews, and explanations into polished HTML documents. You describe the document.
7
+ The skill handles the structure, components, Markdown, and browser setup.
8
+
9
+ Agents work well with Markdown. It is compact, easy to scan, and cheap to change. People often need
10
+ more visual structure. Clear type, spacing, status, columns, code, and optional detail make complex
11
+ documents easier to read.
12
+
13
+ Normal HTML artifacts solve the visual problem. They often repeat hundreds of lines of HTML, CSS,
14
+ and JavaScript. That source is expensive for an agent to inspect whenever one sentence changes.
15
+
16
+ The ShowDoc skill keeps the source small. It guides an agent to write Markdown and semantic `shw-*`
17
+ elements. ShowDoc turns that source into a polished document.
18
+
19
+ In one practical review, a normal artifact was estimated at **300 to 800 lines**. The same document
20
+ was estimated at **40 to 80 lines of ShowDoc source**. This is an illustrative comparison, not a
21
+ fixed benchmark. The exact reduction depends on the document.
22
+
23
+ ## What the skill creates
24
+
25
+ The skill creates compact source that contains the meaning and layout decision:
26
+
27
+ ```html
28
+ <shw-section heading="Decision" intro="The existing API supports the required flow.">
29
+ <shw-card heading="Recommendation" label="Approved" tone="success">
30
+ Keep the current endpoint. It has the **smallest change** and a reversible rollout.
31
+ </shw-card>
32
+ </shw-section>
33
+ ```
34
+
35
+ ShowDoc supplies the repeated presentation DOM and CSS. The agent keeps the useful content small
36
+ and easy to change.
37
+
38
+ Use ShowDoc for:
39
+
40
+ - Technical explanations and architecture reviews.
41
+ - Decision records, plans, and project updates.
42
+ - Research findings and comparison reports.
43
+ - Release notes and other documents that people scan or print.
44
+
45
+ ShowDoc is not intended for dashboards, forms, modals, or large interactive tools. Those need their
46
+ own application code.
47
+
48
+ See the complete [codebase overview artifact](./examples/codebase-overview.html). It uses ShowDoc to
49
+ explain ShowDoc. Each release also publishes this artifact as the
50
+ [live ShowDoc showcase](https://offorte.github.io/show-doc/).
51
+
52
+ ## Install the skill
53
+
54
+ After you download or clone this repository, copy the complete [`skills/show-doc`](./skills/show-doc/)
55
+ folder to your agent's personal skills directory.
56
+
57
+ For Codex:
58
+
59
+ ```sh
60
+ mkdir -p ~/.agents/skills
61
+ cp -R skills/show-doc ~/.agents/skills/
62
+ ```
63
+
64
+ For Claude Code:
65
+
66
+ ```sh
67
+ mkdir -p ~/.claude/skills
68
+ cp -R skills/show-doc ~/.claude/skills/
69
+ ```
70
+
71
+ Other compatible agents can use the same folder in their own skills directory.
72
+
73
+ ## Use the skill
74
+
75
+ Ask your agent for the document you need:
76
+
77
+ > Use the ShowDoc skill to create a visual project update.
78
+
79
+ The [`show-doc` skill](./skills/show-doc/SKILL.md) contains the full versioned runtime contract,
80
+ component reference, and authoring rules. It creates the complete HTML file for you. You do not need
81
+ to choose a CDN script or write setup code.
82
+
83
+ ## Safety
84
+
85
+ ShowDoc uses Micromark with safe defaults. Raw HTML and dangerous URL protocols are not enabled in
86
+ Markdown. Mermaid uses its strict security mode. Syntax highlighting escapes unknown code. ShowDoc
87
+ performs no lazy loading and makes no runtime request after its selected JavaScript bundle loads.
88
+
89
+ Do not run a generic HTML formatter over a finished artifact. Some formatters collapse blank lines
90
+ inside unknown custom elements. Those blank lines are meaningful Markdown input.
91
+
92
+ ## Development
93
+
94
+ The project requires Node.js `24.19.0` or newer and pnpm `10.30.0`.
95
+
96
+ ```sh
97
+ pnpm install --frozen-lockfile
98
+ pnpm dev
99
+ pnpm serve
100
+ pnpm build
101
+ pnpm agent:verify
102
+ ```
103
+
104
+ `pnpm serve` rebuilds the production bundle and serves the isolated showcase at
105
+ `http://127.0.0.1:4173`.
106
+
107
+ `pnpm agent:verify` checks formatting, lint, TypeScript, browser behavior, the Custom Elements
108
+ Manifest, bundle limits, package contents, and unused code.
109
+
110
+ ## About Offorte
111
+
112
+ Offorte is automated proposal software that helps businesses create, send, and track beautiful,
113
+ interactive proposals. It pairs smart workflows with flexible tools, so you can work faster
114
+ without losing your personal touch. [Learn more about Offorte](https://www.offorte.com/).
115
+
116
+ ## License
117
+
118
+ MIT