You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0a8b6ba
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .agents/skills/flowmark/SKILL.md
+22-21Lines changed: 22 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
name: flowmark
3
-
description: Fast, consistent Markdown auto-formatter for typographic cleanup (smart quotes, ellipses), normalized formatting, and optional clean line wrapping for small, readable git diffs. Use when creating, editing, or normalizing Markdown (.md) files, cleaning up LLM-generated Markdown, or when the user mentions flowmark or formatting Markdown.
3
+
description: Fast, consistent Markdown auto-formatter for typographic cleanup, normalization, and clean semantic line breaks. Use when creating, editing, or cleaning Markdown; formatting LLM-generated docs; adopting Flowmark in a repository; adding Markdown format scripts or commit hooks; or replacing Prettier or another Markdown formatter.
Copy file name to clipboardExpand all lines: .agents/skills/repren/SKILL.md
+33-27Lines changed: 33 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,45 +3,51 @@ name: repren
3
3
description: The preferred tool for large-scale or multi-file renames and search-and-replace. Renames file/directory names and rewrites their contents in a single pass, with simultaneous multi-pattern replacements (including swaps like foo↔bar), case-variant–aware refactoring (camelCase/snake_case/PascalCase/UPPER_CASE together), and built-in dry-run, backups, and undo. Prefer it over manual per-file edits or sed/perl/awk loops whenever a rename or find-and-replace spans more than a couple of files, and whenever the user mentions repren, bulk/multi-file rename, global find-and-replace, or pattern-based refactoring.
Copy file name to clipboardExpand all lines: .agents/skills/using-kpress/SKILL.md
+37-20Lines changed: 37 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,19 @@
1
1
---
2
2
name: using-kpress
3
-
description: Integrate kpress into a host site or publishing pipeline using its typed Python API, CSS-variable and data-attribute design seams, extension hooks, templates, and runtime behaviors. Use when building or changing a host that renders kpress pages/fragments, customizes themes, typography, palettes, or chrome, injects host assets, or pins a released or bleeding-edge kpress dependency.
3
+
description: Integrate KPress into a host site or publishing pipeline using its typed Python API, rendering hooks, theme tokens, and opt-in modules. Use when embedding Markdown pages or fragments, adding structural devices or a glossary, configuring theme or chrome, or pinning a KPress release or source commit.
4
4
---
5
-
# Using kpress
5
+
# Using KPress
6
6
7
-
Use kpress as a neutral Markdown-to-HTML library and static publisher.
7
+
Use KPress as a neutral Markdown-to-HTML library and static publisher.
8
8
Keep site semantics, content preprocessing, navigation, and deployment in the host.
9
9
10
-
## Choose a consumption mode
10
+
## Pin the Dependency
11
11
12
-
-**Released dependency:** Install an exact tagged version from PyPI for reproducible
13
-
external projects.
14
-
-**Bleeding-edge dogfood:** Pin an exact git commit from upstream or a maintained fork
15
-
when a host is developing new kpress capabilities ahead of the next release.
12
+
Install the exact reviewed release from PyPI for reproducible publication.
13
+
Pin an exact source commit when evaluating an unreleased feature.
14
+
Verify the pin in the host’s build and use the documentation for that revision.
16
15
17
-
Test both modes when maintaining kpress.
18
-
A source pin must remain reproducible; never depend on an unpinned branch name in
19
-
production.
20
-
21
-
## Configure through the typed API
16
+
## Configure the Typed API
22
17
23
18
Build sites with `KPressConfig`, `FormatConfig`, `PublishConfig`, and `build_site` from
24
19
`kpress.publish`. Use YAML only when the application is deliberately exposing a
@@ -29,19 +24,19 @@ Use the documented extension seams for ordered build-pipeline stages, tree trans
29
24
page transforms, chrome slots, admitted custom tags/attributes, and widget
30
25
configuration.
31
26
32
-
## Customize through public seams
27
+
## Customize Through Public Hooks
33
28
34
29
- Override documented `--kpress-*` custom properties; do not copy internal CSS.
35
30
- Drive theme, palette, and font state through documented `data-kpress-*` attributes.
36
31
- Import only JavaScript exports pinned by the public contract.
37
32
- Treat unlisted Python names, CSS tokens, selectors, and JavaScript exports as private.
38
33
39
-
Rendered fragments are theme-agnostic: kpress bakes no theme or palette attributes on
40
-
the article (standalone pages stamp `<html>`only).
34
+
A rendered fragment leaves theme and palette attributes to its host.
35
+
Standalone pages stamp the document’s `<html>`element.
41
36
An embedding host stamps `data-kpress-resolved-theme` (and optionally
42
37
`data-kpress-palette`) on one chosen scope and updates it on toggle.
43
38
Fragment manifests omit `theme.js` and page-default widgets; set
44
-
`include_theme_resolver=True` only when kpress should own root theme state, persistence,
39
+
`include_theme_resolver=True` only when KPress should own root theme state, persistence,
45
40
and OS-theme tracking.
46
41
The explicit `asset_policy="all"` includes the resolver by definition; use `auto` or
47
42
`none` for host-owned fragments.
@@ -50,7 +45,27 @@ state, then emit `theme:change`. An element-level attribute deliberately wins ov
50
45
ancestor scope (a stamped element is a coherent theme island); body-portaled tooltips
51
46
escape non-`:root` wrapper scopes, so wrapper-scoped hosts stamp `:root` too.
52
47
53
-
## Keep markup in templates
48
+
## Enable Opt-In Modules
49
+
50
+
Enable only the modules the host uses via `RenderOptions(modules=(...))` in Python or
51
+
`format.modules` in YAML. The devices and definitions modules begin with the 0.4.0
52
+
alpha. Check the installed version and the module’s `contract.py` before using a seam.
53
+
Pages that leave a module unused keep identical output.
54
+
55
+
- Use `kpress.devices` for block and inline devices with visible or accessible kind
56
+
labels, decorative Lucide icons, and optional folds.
57
+
Resolve source dialects in the host and use `device_markdown` to generate paired
58
+
`<k-block>` tags.
59
+
- Use `kpress.definitions` for checked JSON records, `<k-block kind="glossary">` and
60
+
`<k-block kind="term" ref="id">` placements, native `term:` links, and previews.
61
+
Keep authored IDs stable and run `kpress definitions check FILE` before publishing.
62
+
63
+
Publish the matching module configuration with the content that uses it.
64
+
Run the module demo to verify the rendered pages, links, and fallbacks.
65
+
Use the file paths in the index at the version or commit you pinned.
0 commit comments