Markdown Article Formatter
JimLiu/baoyu-skills
Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.
默认法律收录与更新流程:将 .temp/lawsmd 中的法律 Markdown 规范化为 Just Laws VuePress 站点交付件,可配对读取 Word 原件,同步 category、sidebar 与 LAWSPROGRESS.md;更新已有法律时识别当前、未来和历史版本,维护 versions.json、多版本页面及生效日轮换。
$ npx skills add ImCa0/just-laws --skill law-pipeline -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ImCa0/just-laws law-pipeline --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ImCa0/just-laws.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/law-pipeline .claude/skills/law-pipeline && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "law-pipeline" agent skill from https://github.com/ImCa0/just-laws/tree/master/.agents/skills/law-pipeline into .claude/skills/law-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "law-pipeline", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ImCa0/just-laws/tree/master/.agents/skills/law-pipelineType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ImCa0/just-laws --skill law-pipeline -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ImCa0/just-laws law-pipeline --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ImCa0/just-laws.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/law-pipeline .agents/skills/law-pipeline && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "law-pipeline" agent skill from https://github.com/ImCa0/just-laws/tree/master/.agents/skills/law-pipeline into .agents/skills/law-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "law-pipeline", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ImCa0/just-laws --skill law-pipeline -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ImCa0/just-laws law-pipeline --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ImCa0/just-laws.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/law-pipeline .cursor/skills/law-pipeline && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "law-pipeline" agent skill from https://github.com/ImCa0/just-laws/tree/master/.agents/skills/law-pipeline into .cursor/skills/law-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "law-pipeline", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ImCa0/just-laws.git --path .agents/skills/law-pipeline--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ImCa0/just-laws --skill law-pipeline -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ImCa0/just-laws law-pipeline --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ImCa0/just-laws.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/law-pipeline .gemini/skills/law-pipeline && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "law-pipeline" agent skill from https://github.com/ImCa0/just-laws/tree/master/.agents/skills/law-pipeline into .gemini/skills/law-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "law-pipeline", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ImCa0/just-laws law-pipelineInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ImCa0/just-laws --skill law-pipeline -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ImCa0/just-laws.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/law-pipeline .github/skills/law-pipeline && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "law-pipeline" agent skill from https://github.com/ImCa0/just-laws/tree/master/.agents/skills/law-pipeline into .github/skills/law-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "law-pipeline", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ImCa0/just-laws --skill law-pipeline -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ImCa0/just-laws law-pipeline --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ImCa0/just-laws.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/law-pipeline .opencode/skills/law-pipeline && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "law-pipeline" agent skill from https://github.com/ImCa0/just-laws/tree/master/.agents/skills/law-pipeline into .opencode/skills/law-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "law-pipeline", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
law-pipeline默认法律收录与更新流程:将 .temp/lawsmd 中的法律 Markdown 规范化为 Just Laws VuePress 站点交付件,可配对读取 Word 原件,同步 category、sidebar 与 LAWSPROGRESS.md;更新已有法律时识别当前、未来和历史版本,维护 versions.json、多版本页面及生效日轮换。
Law Pipeline is an agent skill from ImCa0/just-laws. 默认法律收录与更新流程:将 .temp/lawsmd 中的法律 Markdown 规范化为 Just Laws VuePress 站点交付件,可配对读取 Word 原件,同步 category、sidebar 与 LAWSPROGRESS.md;更新已有法律时识别当前、未来和历史版本,维护 versions.json、多版本页面及生效日轮换。
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/known_slugs.json` and `scripts/normalize_law.py`).
It sits in Documents & Office. The repository describes itself as: 一个简洁、便捷的中国法律文库 | A Simple and Convenient Laws Library of China. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit b947e4e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
npmpythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Law Pipeline loads about 1.5k tokens when it runs, and up to ~19k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 253 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from ImCa0/just-laws at commit b947e4e, republished under its MIT licence (© ImCa0). 253 words, ~1,531 tokens.
.claude/skills/law-pipeline/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.这是仓库默认的法律收录技能。用于把 .temp/laws_md 中明确选定的文件作为输入,输出可部署的 Just Laws 站点文件。优先使用脚本完成机械格式整理和配置更新,遇到 warning 再人工复核;不要先按旧 addlaws 流程逐部手工整理。
输入:
.temp/laws_md/*.md:法律原文 Markdown,也是默认输入目录;脚本不会自动扫描,必须显式传入文件。.temp/laws/*.docx:可选的同名 Word 原件;Markdown 含表格时,脚本优先读取其表格网格以保留合并单元格占位。references/known_slugs.json:预置的 法律名 -> 分类/slug/type/编文件名 映射。输出:
docs/{category}/{slug}/:法律正文交付件。docs/{category}/{slug}/versions.json 与 versions/{effectiveFrom}/README.md:已有单文件法律出现新版本时的版本元数据和非现行正文。docs/category/{category}.md:分类页链接。docs/.vuepress/config.js:仅 C 类法律新增 sidebar。LAWS_PROGRESS.md:收录状态、分类进度和总进度。--json 指定的 JSON:本次处理的法律元信息和 warnings。预览和正式执行均建议写入 .temp/law-pipeline/,不作为站点交付件提交。先在临时目录生成结果,查看 warnings:
$inputs = @(Get-ChildItem .temp/laws_md -Filter *.md -File).FullName
python .agents/skills/law-pipeline/scripts/normalize_law.py @inputs `
--out .temp\law-pipeline\out `
--json .temp\law-pipeline\laws.json `
--docs docs `
--progress LAWS_PROGRESS.md `
--known-slugs .agents\skills\law-pipeline\references\known_slugs.json `
--only-uncollected确认后写入站点交付件并同步配置:
$inputs = @(Get-ChildItem .temp/laws_md -Filter *.md -File).FullName
python .agents/skills/law-pipeline/scripts/normalize_law.py @inputs `
--out docs `
--docs docs `
--progress LAWS_PROGRESS.md `
--json .temp\law-pipeline\applied-laws.json `
--known-slugs .agents\skills\law-pipeline\references\known_slugs.json `
--only-uncollected `
--apply-site--apply-site 要求 --out 与 --docs 指向同一个目录,避免只更新配置却没有把正文写进站点。
单部或小批量收录时,不要把整个目录传给脚本,应直接指定文件:
$inputs = @(
".temp\laws_md\中华人民共和国种子法_20211224.md"
)PowerShell 不应依赖把 .temp\laws_md\*.md 自动展开给 Python;先用 Get-ChildItem 收集文件,或显式列出输入。
README.md,不加 frontmatter。README.md,添加 sidebar: auto。README.md 和各编文件,并输出 C 类 warning。**第一条** 格式,支持 第一百二十条之一。序言、附件一、附件二 等整理为标题。--only-uncollected 只处理 LAWS_PROGRESS.md 中状态不是“已收录”的法律;表外输入会 warning 后跳过,避免批处理误收录。.old 备份、删除旧分编文件或创建 Git 提交。启用 --apply-site 后脚本会同步:
docs/category/{category}.md 写入 [{简称}](../{category}/{slug}/),已存在则跳过;新增后按法律简称拼音重排。docs/.vuepress/config.js 的 sidebar 对象中插入该法律 children,children 不包含 README.md。LAWS_PROGRESS.md 中把对应法律标记为 ✅ 已收录,并重算顶部进度、分类进度、统计表和总计。laws.json 中的 warnings。--apply-site。npm run docs:build.temp/。更新已收录法律时,先判断是同一版本的内容勘误,还是具有独立公布、生效记录的新版本。勘误直接修正对应正文,不创建版本;新修订、修正或重新公布的正文按下述流程处理。
当前版本能力只完整支持单文件 A/B 类法律。C 类法律的各编页面尚不能整体切换版本;遇到 C 类更新时停止应用,先扩展版本路由、sidebar 和轮换脚本,不要只给封面页添加 versions.json。
显式传入已有法律的输入文件,移除 --only-uncollected,只输出到临时目录,不使用 --apply-site:
$inputs = @(
".temp\laws_md\中华人民共和国商标法_20260626.md"
)
python .agents/skills/law-pipeline/scripts/normalize_law.py @inputs `
--out .temp\law-pipeline\out `
--json .temp\law-pipeline\updated-laws.json `
--docs docs `
--progress LAWS_PROGRESS.md `
--known-slugs .agents\skills\law-pipeline\references\known_slugs.json复核临时 README.md、warnings、公布日期和生效日期,并与站点根目录正文、现有 versions.json 和立法记录比较。日期状态统一按北京时间判断。
versions/{effectiveFrom}/README.md,新增或更新 versions.json。禁止对未来版本运行 --apply-site,否则会提前覆盖现行正文。versions/{effectiveFrom}/README.md 并登记元数据,再运行轮换预览和 --apply;不要手工交换根目录与版本目录。versions/{effectiveFrom}/README.md 并登记实际 effectiveTo,不执行轮换。versions/ 入口,不新增版本记录。根目录 README.md 始终是当前有效版本。versions/ 只保存未来版或历史版,不复制当前有效正文。
版本文件固定使用以下结构,不写入派生状态或来源链接:
{
"schemaVersion": 1,
"lawId": "civil-and-commercial/trademark-law",
"title": "中华人民共和国商标法",
"versions": [
{
"id": "2019-amendment",
"label": "2019年修正版",
"promulgatedOn": "2019-04-23",
"effectiveFrom": "2019-11-01",
"effectiveTo": "2027-01-01",
"entry": "README.md"
},
{
"id": "2026-revision",
"label": "2026年修订版",
"promulgatedOn": "2026-06-26",
"effectiveFrom": "2027-01-01",
"effectiveTo": null,
"entry": "versions/2027-01-01/README.md"
}
]
}约束:
effectiveTo 是不包含该日的失效日期;相邻版本通常满足旧版 effectiveTo == 新版 effectiveFrom。YYYY-MM-DD,id 和 entry 不得重复。README.md,且该版本必须是校验日期的当前有效版本。status、展示用截止日和页面路径由构建时派生,不持久化。LAWS_PROGRESS.md 的年份表示最新公布版本,不用生效状态覆盖,也不因版本轮换重复新增法律。登记未来版本或历史版本后先校验:
npm run laws:versions:validate如果登记时新版已经生效,旧版仍在根目录会触发“现行版本尚未提升”的预期校验错误;此时不要运行构建或绕过校验,直接使用下述 promote 命令预览,应用轮换后再执行完整校验。
新版本生效时,先预览:
npm run laws:versions:promote -- civil-and-commercial/trademark-law --as-of 2027-01-01确认预览会把旧根正文归档到 versions/{旧版effectiveFrom}/README.md、把新正文提升到根目录并移除原未来版目录后,再应用:
npm run laws:versions:promote -- civil-and-commercial/trademark-law --as-of 2027-01-01 --apply轮换后再次运行版本校验和 npm run docs:build。搜索只索引法律根目录直接 Markdown:生效前应只搜到当前版,轮换后自动改为搜索新版;不要把 versions/ 加入搜索索引。
--apply-site 对已存在的 category 链接和 sidebar 路由会跳过;新增 category 链接后会调用 Node.js 排序脚本按拼音重排该分类页。优先从既有 docs slug 补全 references/known_slugs.json。没有既有翻译时,提前人工翻译并写入映射;不要依赖脚本在运行时自动生成英文 slug。
© ImCa0, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (scripts, references) in .agents/skills/law-pipeline of ImCa0/just-laws.
Open the folder on GitHubat commit b947e4e
Law Pipeline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Law Pipeline this skillImCa0/just-laws | 781 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Markdown Article FormatterJimLiu/baoyu-skills | 27k | 6 repos | ~3.5k | Automated safety check: Pass | MIT | |
| Obsidian MarkdownAtmosphere/atmosphere | 3.8k | 20 repos | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| DOCXrvdbreemen/OTGW-firmware | 207 | 33 repos | ~4.3k | Automated safety check: Pass | Proprietary | |
| Word Document Reader and WriterHKUDS/DeepTutor | 41k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Crosspostingwasp-lang/wasp | 19k | — | ~1.1k | Automated safety check: Pass | MIT |
JimLiu/baoyu-skills
Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.
Atmosphere/atmosphere
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.
rvdbreemen/OTGW-firmware
A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).
HKUDS/DeepTutor
Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.
wasp-lang/wasp
Crosspost Wasp blog articles (MDX) to DEV.to and Medium. An agent skill from wasp-lang/wasp.
ningzimu/image-to-editable-ppt-skill
Rebuild slide images, scanned or image-based PPT/PPTX files, and PDF decks into object-level editable PowerPoint (.pptx), preserving speaker notes when supplied.
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
ImCa0/just-laws
已弃用的旧法律手工收录入口;默认改用 law-pipeline。
Categories
默认法律收录与更新流程:将 .temp/lawsmd 中的法律 Markdown 规范化为 Just Laws VuePress 站点交付件,可配对读取 Word 原件,同步 category、sidebar 与 LAWSPROGRESS.md;更新已有法律时识别当前、未来和历史版本,维护 versions.json、多版本页面及生效日轮换。. Law Pipeline is an agent skill from ImCa0/just-laws.
Law Pipeline fits situations like: documents & Office work in your project.
Run `npx skills add ImCa0/just-laws --skill law-pipeline -a claude-code`. Or copy the skill folder (.agents/skills/law-pipeline in ImCa0/just-laws) into .claude/skills/law-pipeline in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ImCa0/just-laws --skill law-pipeline -a codex`. Or copy the skill folder (.agents/skills/law-pipeline in ImCa0/just-laws) into .agents/skills/law-pipeline in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ImCa0/just-laws --skill law-pipeline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/law-pipeline, .gemini/skills/law-pipeline, .github/skills/law-pipeline and .opencode/skills/law-pipeline in your project.
Going by SKILL.md and its folder, Law Pipeline needs Python for the scripts in its folder and the command-line tools its instructions call (npm and python). Our summary lists: Python 3; Node.js.
SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Law Pipeline is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Law Pipeline: Markdown Article Formatter (JimLiu/baoyu-skills, 27k stars), Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars), DOCX (rvdbreemen/OTGW-firmware, 207 stars) and Word Document Reader and Writer (HKUDS/DeepTutor, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ImCa0 (a GitHub user) maintains it in ImCa0/just-laws, which has 781 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.
Source: ImCa0/just-laws on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.