legal-homework-formatter

legal-homework-formatter is a skill for Claude Code, Codex from NEU-ZHA/legal-ai-skills. It costs 120 tokens per session (8,084 once invoked), scanned A, original, MIT.

A formatting workflow for Chinese law-school homework in Microsoft Word, including footnotes, legal citations, headings, and tables of contents.

In plain words
What is it for?
Use it to create or revise legal assignments, format citations and footnotes, repair a table of contents, and prepare document details after providing your personal and course information.
Why use it?
It helps resolve common formatting differences between WPS Office and Word while following a course template or legal citation rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or revise legal assignments, format citations and footnotes, repair a table of contents, and prepare document details after providing your personal and course information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neu-zha/legal-ai-skills/legal-homework-formatter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NEU-ZHA/legal-ai-skills --skill legal-homework-formatter
Clone the repo
git clone --depth 1 https://github.com/NEU-ZHA/legal-ai-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for legal-homework-formatter

README.md
[![agentmods](https://agentmods.dev/badge/skills/neu-zha/legal-ai-skills/legal-homework-formatter/github.svg)](https://agentmods.dev/skills/neu-zha/legal-ai-skills/legal-homework-formatter)
Your own site
<a href="https://agentmods.dev/skills/neu-zha/legal-ai-skills/legal-homework-formatter"><img src="https://agentmods.dev/badge/skills/neu-zha/legal-ai-skills/legal-homework-formatter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for legal-homework-formatter

Your own site · 80×15
<a href="https://agentmods.dev/skills/neu-zha/legal-ai-skills/legal-homework-formatter"><img src="https://agentmods.dev/badge/skills/neu-zha/legal-ai-skills/legal-homework-formatter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00120 $0.08084
Opus 5.5 $0.00048 $0.03234
Sonnet 5.5 $0.00024 $0.01617
Haiku 4.5 $0.00012 $0.00808

Measured 17d ago against content hash 446cd46f2cbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

legal-homework-formatter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/add_footnotes.py, scripts/add_homework_toc.py, scripts/docx_compat_check.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/legal-homework-formatter/SKILL.md · 387 lines

How it starts

The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

This skill provides standardized formatting workflows for Chinese legal homework assignments. It helps documents follow a user-provided course template and the Law Journal Citation Handbook, while resolving common compatibility issues between WPS and Microsoft Word.

When to Use

Use this skill when:

  • Creating new Chinese legal homework assignments in Word format
  • Formatting existing homework to meet citation standards
  • Fixing footnote display issues between WPS and Word
  • Adjusting title, heading, or citation formats
  • Generating or repairing a homework table of contents (目录/TOC)
  • Converting draft content to properly formatted legal documents

Privacy and Required Inputs

This public version must never default to the maintainer's personal information or a private course template.

Before generating a title, filename, header, or metadata, ask the user for:

  • assignment date/course prefix, only if the current instructions require one;
  • assignment number/title;
  • student name;
  • student ID, if required;
  • course or instructor-specific template, if required.

If the user does not provide a required identity field, use an explicit placeholder such as [待补: 姓名] or [待补: 学号] and flag it in the final checklist. Do not infer, reuse, or hard-code a real person's name, ID, school, email address, or local file path.

Reference Template

Use the user-provided course reference template as the base for generating homework documents when one is available. Its style system is the authoritative source for course-specific formatting. If no template is provided, create a conservative .docx with the formatting rules below and clearly tell the user which template-dependent checks could not be performed.

This public skill also includes an anonymized fallback template at:

assets/legal-homework-template-anonymized.docx

Use it when the user needs a working Word style base but has not provided a private course template. The template keeps the formatting structure while replacing identity fields with [日期], [序号], [姓名], and [学号]. Do not rename it to a private course filename when publishing or redistributing the skill.

Read the full file on GitHub · 387 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · +20 lines 446cd46f2cbf
  2. 1mo ago First seen · 367 lines · 120 tokens per session scan A 80cce9a9e6ae

Subscribe to this mod's changes

legal-homework-formatter is a skill published in the GitHub repository NEU-ZHA/legal-ai-skills (68 stars, last pushed 18d ago), licensed MIT. It adds 120 tokens to every session and 8,084 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

html-ppt-zhangzara-stencil-tablet

A workplace-safety compliance review for a manufacturing regulator — findings, the evidence chain, and the corrective mandate. Built as a decision-grade policy briefing deck for regulator, plant leadership.

nexu-io/open-design · 49 tokens

treatment-plans

Formats and structurally validates local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and…

K-Dense-AI/scientific-agent-skills · 62 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

handbook-updates

Diff a proposed handbook change against the current version, flag ripple effects and state supplement impacts. Use when user says "update the handbook", "add this to the handbook", "handbook change", or has a policy ready for insertion.

anthropics/claude-for-legal · 52 tokens

terms-of-service

Draft terms of service and a companion privacy notice matched to the product's form and feature modules, not legal advice, delivered as a Word document.

genspark-ai/genoffice · 32 tokens

software-copyright-materials

A workflow for creating Chinese application materials for software copyright registration from a real software project.

Fokkyp/SoftwareCopyright-Skill · 98 tokens