npx skills add ...
npx skills add zyhsechub/chinese-thesis-workbench-skill --skill chinese-thesis-workbench
Standardize, draft, revise, check, and package Chinese undergraduate thesis or graduation-design papers from school templates, task books, proposals, sample papers, source code, screenshots, databases, APIs, tests, literature PDFs, Word comments, and existing drafts. Use when the user asks to write, generate, refactor, polish, reduce AIGC style, verify, format, or deliver a Chinese thesis with evidence traceability, figure registries, workflow logs, chapter word control, screenshots, references, DOCX output, and appendix DOCX.
npx skills add zyhsechub/chinese-thesis-workbench-skill --skill chinese-thesis-workbench
Use standards and evidence as the control layer, then use the Chinese thesis drafting pipeline as the output layer. Treat school templates, advisor requirements, task books, sample papers, source code, databases, APIs, tests, literature PDFs, screenshots, Word comments, and existing drafts as materials that must be resolved into structured state before formal prose is written.
The workbench has two sides:
paper-context/ stores workflow state, standards, evidence, literature, AIGC reports, and Word comment revisions.paper-output/ stores thesis Markdown, DOCX, appendix DOCX, figures, screenshots, image maps, and reference verification artifacts.paper-context/workflow/user-dashboard.md summarizes current progress, missing materials, user decisions needed, and the next recommended action. paper-context/workflow/content-decisions.md records optional content emphasis and exclusion decisions when candidate content is available. paper-context/workflow/blocker-report.md records the latest blocker, options, recommendation, and limited-continuation status. paper-context/workflow/user-decisions.md records user-approved choices that affect scope, evidence, standards, outline, delivery, or limitations. These files improve transparency; they do not override standards, evidence, or delivery quality gates.Run the workflow in this order unless the user is only asking for a narrow inspection or revision:
intake_materials: collect materials and record priority, gaps, missing impact, continuation limits, and user next steps in paper-context/workflow/material-inventory.md.init_workspace: initialize thesis-ai-standard/, paper-context/, and workflow logs.resolve_standards: fill thesis-ai-standard/templates/standard-profile.yaml.analyze_sample_and_template: normalize school template and sample-paper parser outputs into lightweight analysis reports, outline suggestions, and word budgets before drafting; parser output does not drive DOCX formatting unless the user explicitly selects sample-style generation via --sample-analysis or template-copy filling via --from-template.build_evidence: extract project facts into paper-context/evidence/.stop_and_report: stop or limit only the affected scope whenever evidence, standards, figures, citations, or DOCX delivery cannot be verified; record options in blocker-report.md.build_thesis_spec: fill thesis-ai-standard/templates/thesis-ai-spec.yaml.build_figure_registry: fill thesis-ai-standard/templates/figure-registry.yaml.confirm_outline: confirm chapter structure, word counts, sample/template observations, and any available content emphasis/exclusion decisions before writing.draft_chapters: write only from confirmed structured facts and evidence.produce_assets: generate or collect figures, diagrams, screenshots, tables, and appendix sources.produce_docx: generate or edit the main DOCX and appendix DOCX into paper-output/ using the recorded delivery path.quality_gates: run standards, evidence, reference, figure, DOCX, and AIGC checks.delivery_report: report outputs, limitations, remaining human decisions, and verification evidence.stop_and_report is a global blocking mechanism, not just step 6. Read references/workflow/stop-and-report.md whenever continuing may require guessing.
Use this two-layer state model in paper-context/workflow/workflow-status.md, and mirror the user-facing summary in paper-context/workflow/user-dashboard.md:
| Field | Allowed values |
|---|---|
phase | intake_only, workspace_ready, standards_resolved, sample_analysis_done, evidence_built, spec_confirmed, outline_confirmed, writing_allowed, delivery_done |
status | pending, in_progress, blocked, needs_review, done, deprecated |
When status becomes blocked, write blocked_reason, missing_materials, next_action, and can_continue_with_limitations in the status file. Do not hide blockers in chat only.
After any meaningful phase, blocker, material, outline, or delivery-scope change, update user-dashboard.md so the user can see:
scripts/workspace/init_thesis_workspace.py.thesis-ai-spec.yaml.thesis-ai-spec.yaml is not confirmed, do not write formal thesis body.figure-registry.yaml is not ready, do not claim figures/tables/screenshots are complete.writing_allowed.required, strongly_recommended, or optional, and explain the effect of each missing required or strongly recommended material.content-decisions.md when the user provides feature/module/experiment/appendix candidates, but do not block the main workflow only because no candidate content has been provided yet.user-decisions.md.stop_and_report; do not guess missing facts.hard_blocker, limited_continue, or user_choice_needed, then provide user options and a recommended path.thesis-ai-spec.yaml is the single entry point for thesis facts.figure-registry.yaml is the single entry point for figures, tables, screenshots, and diagram sources.content-decisions.md marks as rejected, excluded, or waiting for evidence.scripts/docx/apply_textual_edits.py --from-template; otherwise use default or sample-style generation. Do not promise full template reproduction. Preserve diagram source, E-R source, flowchart source, and related assets in the appendix.latex_text preserves source formula text, while formula_image requires matching image assets.final, draft, paper-final, or doc1.| Need | Resource |
|---|---|
| Intake and fast workflow | references/workflow/intake.md, references/workflow/rapid-thesis-workflow.md |
| Workflow state, blockers, and sparse-material handoff | references/workflow/workflow-state-management.md, references/workflow/stop-and-report.md, references/workflow/material-gap-handoff.md |
| Standards and template resolution | references/standards/standards-and-template-resolution.md, references/standards/style-extraction.md, references/standards/default-style.md |
| Evidence extraction | references/evidence/source-to-thesis-workflow.md, references/evidence/fact-extraction.md |
| Literature/PDF workflow | references/evidence/literature-and-pdf-workflow.md, scripts/literature/ |
| Writing and chapter control | references/writing/writing-pipeline.md, references/writing/chapter-patterns.md, references/writing/sample-analysis.md |
| AIGC style governance | references/writing/aigc-style-governance.md, scripts/review/analyze_aigc_style.py |
| DOCX delivery and Word comments | references/delivery/docx-delivery.md, references/delivery/word-comment-revision-workflow.md, scripts/docx/ |
| Figures and screenshots | scripts/figures/, scripts/screenshots/, thesis-ai-standard/templates/figure-registry.yaml |
| Merge provenance | references/merge-map.md |
Before claiming delivery quality, check:
standard-profile.yaml, thesis-ai-spec.yaml, and figure-registry.yaml exist and are internally consistent.paper-context/evidence/ or verified literature.source_kind, source_path, image_path, evidence_source, first_mention, and status.paper-output/.user-dashboard.md reflects the user-visible progress, pending decisions, missing materials, and next action.blocker-report.md reflects the latest blocker, affected scope, user options, recommended path, and whether limited continuation is allowed.user-decisions.md records user-approved choices that affect scope, missing-material handling, limitations, standards, outline, or delivery.content-decisions.md has active candidates, their approved/deferred/excluded status is consistent with the outline, thesis spec, and figure registry.Deliver thesis artifacts under paper-output/:
<论文标题>.md<论文标题>.docx<论文标题>-附件.docx<论文标题>-image-map.json<论文标题>-文献核验清单.jsonfigures/screenshots/Report what was verified, what could not be verified, and what still needs human confirmation. If verification cannot run, state the command and the reason.