Community编程与开发github.com

EastDong314/agent-skills

查询《中华人民共和国民法典》条文原文(1260 条 / 7 编 84 章 / 附则)。当用户询问民法典的任何条文或制度时使用,例如「第 1042 条」「离婚冷静期」「居住权」「保证合同」「高空抛物」「诉讼时效」「夫妻共同债务」;也用于需要引述、比对、解释民法典原文的场景。回答必须逐字引用条文原文并标注条号,不做改写。 | Look up verbatim articles of the PRC Civil Code (中华人民共和国民法典). Use when the user asks about any Civil Code article, needs the exact statutory text, or wants to cite, quote, or compare provisions.

agent-skills 是什么?

agent-skills is a Claude Code agent skill that 查询《中华人民共和国民法典》条文原文(1260 条 / 7 编 84 章 / 附则)。当用户询问民法典的任何条文或制度时使用,例如「第 1042 条」「离婚冷静期」「居住权」「保证合同」「高空抛物」「诉讼时效」「夫妻共同债务」;也用于需要引述、比对、解释民法典原文的场景。回答必须逐字引用条文原文并标注条号,不做改写。 | Look up verbatim articles of the PRC Civil Code (中华人民共和国民法典). Use when the user asks about any Civil Code article, needs the exact statutory text, or wants to cite, quote, or compare provisions.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/EastDong314/agent-skills/tree/HEAD/skills/minfadian

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

PRC Civil Code Query

Data & Version

  • Text: Adopted at the Third Session of the 13th National People's Congress on May 28, 2020, effective January 1, 2021; comprising 1260 articles, 7 parts, 84 chapters, plus supplementary provisions (Articles 1259–1260).
  • The Civil Code itself has not been amended since its effective date; when the user asks for the "latest" version, this is the one.
  • This skill does NOT include: judicial interpretations, guiding cases, other laws (e.g., Civil Procedure Law), or local regulations. These must be verified separately and must not be substituted with articles from this skill.
  • Laws, regulations, and other legislative documents are not protected by copyright law; the full text may be freely quoted.

Resources

FileContentArticle Range
references/Part-1-General-Provisions.mdPart I: General Provisions (10 chapters)Articles 1–204
references/Part-2-Property-Rights.mdPart II: Property Rights (20 chapters)Articles 205–462
references/Part-3-Contracts.mdPart III: Contracts (29 chapters)Articles 463–988
references/Part-4-Personality-Rights.mdPart IV: Personality Rights (6 chapters)Articles 989–1039
references/Part-5-Marriage-and-Family.mdPart V: Marriage and Family (5 chapters)Articles 1040–1118
references/Part-6-Inheritance.mdPart VI: Inheritance (4 chapters)Articles 1119–1163
references/Part-7-Tort-Liability.mdPart VII: Tort Liability (10 chapters)Articles 1164–1258
references/Supplementary-Provisions.mdSupplementary ProvisionsArticles 1259–1260
references/Article-Quick-Lookup.mdArabic numeral → Chinese numeral + part/chapterAll 1260 articles
scripts/build_minfadian.pyScript to rebuild all files from official HTML—

An identical copy of the full text is also stored in the knowledge base: 法规/民法典/民法典全文.md (with frontmatter, searchable and linkable in Obsidian). The two versions are identical; if updated, they must be rebuilt together.

Query Flow

By article number (most common) — Note that the body text uses Chinese numerals; users usually say Arabic numerals, so first consult the quick-lookup table:

cd <this skill directory>
grep "^1042 " references/Article-Quick-Lookup.md          # → 1042 | 第一千零四十二条 | 第五编 婚姻家庭 · 第一章 一般规定
grep -h "^第一千零四十二条 " references/Part-5-Marriage-and-Family.md

By topic (when article number is unknown) :

grep -n "居住权" references/*.md | head -20        # first locate candidate articles
grep -rn "离婚冷静期\|三十日" references/Part-5-Marriage-and-Family.md

When context is needed (surrounding articles, entire section): use the read tool to read only the target line range, e.g., read references/Part-5-Marriage-and-Family.md offset=... limit=....

⚠️ Do not read an entire file: the full text is approximately 96,000 characters (roughly 60,000–90,000 tokens); the largest single part, Part III (Contracts), is 138,000 bytes. Always use grep to locate the relevant section first, then read only a slice.

Citation Rules

  • Quote verbatim, and mark "Article X"; preserve the original full-width punctuation (;「、」) and sub-item structure ((1) (2) …).
  • Distinguish between "original article text" and "interpretation/applicable opinion": interpretations must be clearly labeled as explanation and must not be mixed in with the quotation.
  • Present items and sub-items of an article in their original order; do not combine or rephrase.
  • Content not covered by this skill (judicial interpretations, case precedents, other laws) must be stated as requiring separate verification; do not fabricate from memory.
  • If no search result is found, explicitly state that; do not fabricate article numbers or text.

Data Source & Validation (2026-09-21)

  • Base text: Full text of the Civil Code of the People's Republic of China republished by the Anhui Provincial People's Government (text authorized by Xinhua News Agency), with correct full-width punctuation.
  • Cross-validation: Compared article-by-article with the official full texts from Guizhou Provincial People's Congress and Beijing Municipal People's Congress, resulting in zero textual differences across all 1260 articles.
  • Structural validation: 1260 articles form a continuous sequence with no missing or duplicate numbers; 7 parts + supplementary provisions; 84 chapters and 37 sections; beginning and ending assertions (first article ending and last article's effective date) passed.
  • Known punctuation difference: The Guizhou version rendered 211 instances of ; as half-width ;, so it was not adopted as the base text.
  • Rebuild method: python3 scripts/build_minfadian.py (by default fetches from the base URL and rebuilds all files; --dry-run validates without writing).

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

EastDong314/agent-skills

管理 Ricky 的本地 Obsidian 知识库(默认 $HOME/workspace/notes):创建、读取、更新、删除、搜索、重构、入库(ingest)、体检(lint)、建索引与整理笔记。当用户要求管理 Obsidian 笔记、知识库内容、日记、项目笔记、资料入库(source-to-wiki)、backlinks、tags、YAML frontmatter、Properties、Bases、Dataview 字段或查询、wiki 链接、嵌入、callout、canvas、网页剪藏,或用本地 Obsidian 应用/CLI 打开笔记时使用。 | Create, read, update, delete, search, refactor, ingest, lint, index, and organize Ricky's local Obsidian vault at $HOME/workspace/notes (override with OBSIDIAN_VAULT). Use when an AI coding agent is asked to manage Obsidian notes, knowledge-base content, daily notes, project notes, source-to-wiki ingestion, backlinks, tags, YAML frontmatter, Properties, Bases, Dataview fields or queries, wiki links, embeds, callouts, canvases, web clipping, or to open notes in the local Obsidian app/CLI.

EastDong314/agent-skills

专注过度设计的代码审查。找出可删除的内容:重复造轮子的标准库、不必要的依赖、投机性抽象、无用的灵活性。每个发现一行:位置、要删什么、用什么替代。当用户说「review for over-engineering」「what can we delete」「is this over-engineered」「simplify review」或调用 /ponytail-review 时使用。作为专注正确性的审查的补充,本技能只追查复杂度。 | reinvented standard library, unneeded dependencies, speculative abstractions, dead flexibility. One line per finding: location, what to cut, what replaces it. Use when the user says "review for over-engineering", "what can we delete", "is this over-engineered", "simplify review", or invokes /ponytail-review. Complements correctness-focused review, this one only hunts complexity.

EastDong314/agent-skills

Develop against ruoyi-vue-pro/Yudao projects, including backend modules, Vue3 admin UI, uni-app UI, SQL, permissions, and data-integration boundaries.

EastDong314/agent-skills

Investigate a bug, regression, flaky behavior, or unclear backend failure with an evidence-first debugging workflow before jumping into fixes. Use when Codex should establish a reproducible feedback loop, rank hypotheses, inspect the real failing path, and only then propose or apply changes.

相关技能