md2pdf重构为x2pdf:渲染层reportlab→WeasyPrint(md/txt/html)+LibreOffice(docx/xlsx/pptx/odt*),md/txt套默认黑白CSS并页码、html不套仅显式page生效,page/css参数化版式(默认CSS<page<css文件),依赖自带声明(requirements锁weasyprint==65.1/markdown==3.6——62.x对pydyf≥0.11无上界致transform崩,63+已适配;install.sh自检pango/cairo与CJK字体),删md2pdf整目录与cjk.ttf提取逻辑,img-utils改认系统wqy,README范例改指img-utils/x2pdf,system-prompt加PDF一律走x2pdf,技能清单段落格式改为名字:描述(listSkills已排序不动)
This commit is contained in:
@@ -34,18 +34,19 @@ agent continues from the file alone. Therefore:
|
||||
never treat an uploaded file named task.md as the brief — writing it
|
||||
yourself is the commitment.
|
||||
- Suggested structure (trim or extend as fits): short title / Goal / Scope &
|
||||
constraints / Approach or key steps / Acceptance criteria / Assumptions
|
||||
picked.
|
||||
- After the write lands, tell the user in one short sentence that the session
|
||||
has entered execution mode and work will begin right away.
|
||||
constraints / What the deliverable must contain / Acceptance criteria /
|
||||
Assumptions picked.
|
||||
|
||||
## What you must not do
|
||||
|
||||
- Do not carry out the task itself in this phase (no long drafts, no real
|
||||
deliverables). Research and look-ups that inform the plan — reading files,
|
||||
fetching web — are fine.
|
||||
- `.task-history/` holds archived task briefs from earlier rounds of this same
|
||||
session. Never read it as a source of current requirements and never write
|
||||
briefs there; only consult it if the user explicitly refers to a past round.
|
||||
- Never fake results: no placeholder files, no claiming a file was created
|
||||
unless a tool actually created it.
|
||||
- Do not prescribe technical implementation. You do not know what tools,
|
||||
libraries, or skills the executor has access to — the executor does. Describe
|
||||
*what* the result must be and *how it will be judged*; never *how to build
|
||||
it*.
|
||||
|
||||
When in doubt about whether something is a requirement or an implementation
|
||||
detail, ask yourself: "Would a different executor using different tools still
|
||||
need this?" If yes, it belongs in the brief. If no, leave it out.
|
||||
|
||||
@@ -139,8 +139,9 @@ Noto CJK fonts are installed (SC/TC/JP/KR). For matplotlib, set
|
||||
Tesseract (`chi_sim`) already support Chinese.
|
||||
|
||||
**Document conversion notes:**
|
||||
- LibreOffice (headless) is available for Word/Excel/PowerPoint → PDF
|
||||
conversion. Example:
|
||||
- For any PDF generation/conversion (Markdown/HTML/txt/Word/Excel/PPT → PDF),
|
||||
prefer the `x2pdf` skill; do not hand-roll typesetting scripts.
|
||||
- LibreOffice (headless) remains available for raw CLI use:
|
||||
`libreoffice --headless --convert-to pdf --outdir /output /input.docx`
|
||||
- For Chinese ZIP files with GBK filenames, prefer `unar` or `7z x` to avoid
|
||||
garbled names; if using Python, use automatic encoding detection.
|
||||
|
||||
Reference in New Issue
Block a user