Generate a complete, authentic, well-structured, position-targeted resume with stable Word formatting. Must simultaneously meet:
Execution priority (when conflicting): Position relevance > Information readability > ATS compatibility > Visual decoration
Forbidden: Producing advice-only / fragments / half-finished drafts; outputting chat-style explanations.
→ Font profile: B (Visual) — see references/common-rules.md
→ Placeholder convention & universal prohibitions — see references/common-rules.md
Default: generate a position-oriented general resume. Switch to English resume, academic CV, international format, or design portfolio style only when explicitly requested by the user.
Auto-select module order based on user background and target:
Name & Contact → Target Position → Profile Summary (optional) → Core Skills → Work Experience → Projects → Education → Certifications / Awards
Name & Contact → Target Position → Education → Internship Experience → Projects → Campus Activities / Competitions / Awards → Skills & Certifications
Name & Contact → Target Direction → Profile Summary (optional) → Tech Stack / Core Skills → Work Experience → Projects → Education → Open Source / Papers / Patents / Competitions
Name & Contact → Research Direction / Target → Education → Research Experience → Papers / Patents / Projects / Grants → Teaching / Academic Service → Awards / Skills / Languages
【Please fill in: ______】; never fabricate precise numbersEach experience bullet should demonstrate: Action + Object/Context + Method + Result/Impact
Recommended verbs: Led, built, drove, optimized, refactored, designed, delivered, coordinated, improved, reduced, achieved
Rules:
| Candidate Type | Target Pages |
|---|---|
| New graduate / <3 years experience | 1 page |
| 3–10 years experience | 1–2 pages |
| Senior manager / researcher / academic CV | May exceed 2 pages, but must maintain information density |
Compression rules:
Table layout vs. ATS balance: The 3 visual templates (A/B/C) use Table-based layouts for Word visual quality. In strict ATS scenarios (user explicitly says "ATS priority"), prefer Template B (single-column) with reduced table dependency. Default: visual quality first.
Use only standard, universal, recruiter-familiar names:
Forbidden fancy names: "My Growth Journey", "Self-Appreciation", "Shining Moments", "Life Motto"
Three templates are provided, auto-selected based on user needs:
| Template | Layout | Best For | Color Style |
|---|---|---|---|
| A | Left sidebar + right body | General purpose, tech roles | Dark grey sidebar + blue bar headings |
| B | Dark header banner + single column | Content-heavy / senior candidates | Dark blue header + underline headings |
| C | Left sidebar + vertical-line headings | International / bilingual / foreign companies | Blue sidebar + left-border headings |
Selection logic:
| Career Direction | Sidebar BG | Accent Color | Recommended Template |
|---|---|---|---|
| Tech / Internet | #1A1F36 (deep blue-purple) |
#667eea (amethyst) |
A or C |
| Finance / Consulting | #0F2027 (deep sea blue) |
#D4AF37 (gold) |
A or B |
| Design / Creative | #2D1B30 (deep purple) |
#f5576c (coral pink) |
A or C |
| Education / Training | #1A3A3A (dark green) |
#3CB4A0 (mint green) |
A |
| Medical / Health | #0E2030 (dark cyan) |
#3888A8 (medical blue) |
B |
| General / Default | #303030 (warm dark neutral) |
#B89870 (warm accent) |
A |
When industry is unspecified, use default warm neutral palette. This aligns with the Visual Profile warm-neutral guidance in design-system.md.
line: 276 (1.15x)const S = {
bg: "3B4F5C", // sidebar background (dark grey-blue)
text: "D8E2E8", // sidebar text
label: "8BA0AD", // sidebar secondary text
accent: "2F97B8", // accent color (blue-cyan)
title: "1A2D38", // body heading
body: "2C3E4A", // body content
sec: "6B8592", // secondary info (dates etc.)
};
┌──────────┬──────────────────────┐
│ [Photo] │ ██ Profile ██ │ ← Blue bar heading
│ │ Summary text... │
│ Name │ │
│ Title │ ██ Work Experience ██│
│ │ Company Role Date │
│ ──────── │ ▸ Achievement... │
│ Basic │ ▸ Achievement... │
│ Info │ │
│ │ ██ Projects ██ │
│ ──────── │ ... │
│ Contact │ │
│ │ ██ Education ██ │
│ ──────── │ ... │
│ Skills │ │
│ Java ●●●●○│ │
│ Go ●●●○○│ │
│ │ │
│ ──────── │ │
│ Certs │ │
└──────────┴──────────────────────┘
30% 70%
Page setup:
page: { margin: { top: 0, bottom: 0, left: 0, right: 0 } }
// Use Table to simulate columns: columnWidths: [3400, 8506]
// ⚠️ Row height must use "exact" with safety margin to prevent overflow blank pages
// Row height: height: { value: 16038, rule: "exact" }
// 16038 = 16838(A4 height) - 1200(safety margin for cross-engine compatibility)
Sidebar element order:
Right-side section headings (color bar style):
// Full-width bar background + white Chinese text + lighter English text
new Table({ columnWidths:[7600], rows:[new TableRow({ children:[
new TableCell({
shading: { fill: S.accent, type: ShadingType.CLEAR },
margins: { top:40, bottom:40, left:200, right:100 },
children: [new Paragraph({ children: [
new TextRun({ text: "Work Experience ", size:22, bold:true, color:"FFFFFF", font:"SimHei" }),
new TextRun({ text: "Experience", size:18, color:"C8E8F0", font:"Times New Roman", italics:true }),
] })],
})
] })] });
Experience entry format:
// Line 1: Company(bold) + Title(accent) + Date(right-aligned)
new Paragraph({
tabStops: [{ type: TabStopType.RIGHT, position: 7200 }],
children: [
new TextRun({ text: "Company Name", size:22, bold:true, color:S.title }),
new TextRun({ text: " Role Title", size:20, color:S.accent }),
new TextRun({ text: "\t2023.06 — Present", size:17, color:S.sec }),
]
});
// Line 2+: ▸ bullet points
const C = {
dark: "1A3352", // header background (dark blue)
accent: "2980B9", // accent color
title: "1A2636", // heading
body: "2C3E50", // body text
sec: "6B8599", // secondary info
light: "E8EFF5", // light background
};
┌────────────────────────────────┐
│ ██████████████████████████████ │ ← Dark blue background banner
│ █ Name Title █ │ Contains name / title /
│ █ Phone | Email | Location █ │ contact / basic info
│ █ DOB | Degree | School █ │
│ ██████████████████████████████ │
│ │
│ Profile │ ← Underline heading
│ ───────────────────────────── │
│ Summary text... │
│ │
│ Work Experience │
│ ───────────────────────────── │
│ Company | Role Date │
│ • Achievement... │
│ ... │
│ │
│ Skills │
│ ───────────────────────────── │
│ Programming ●●●●○ Java/Go/...│ ← Rating + details
└────────────────────────────────┘
Header banner:
// Table single row single column, dark background, height 2400 DXA
new Table({ columnWidths:[11906], rows:[new TableRow({
height: { value:2400, rule:"exact" },
children:[new TableCell({
shading: { fill: C.dark },
margins: { top:300, bottom:200, left:800, right:800 },
verticalAlign: VerticalAlign.TOP, // Never use CENTER in exact-height rows (WPS incompatible)
children: [
// Line 1: Name(48pt white) + Title
// Line 2: Phone | Email | Location
// Line 3: DOB | Degree | School
]
})]
})] });
Section headings (underline style):
new Paragraph({
borders: { bottom: { style: BorderStyle.SINGLE, size: 2, color: C.accent } },
children: [
new TextRun({ text: "Work Experience", size:24, bold:true, color:C.accent, font:"SimHei" }),
new TextRun({ text: " Experience", size:18, color:C.sec, italics:true }),
]
});
Skills display (rating + details):
// Name(bold) + ●○ rating + specific tools list
new Paragraph({ children: [
new TextRun({ text: "Programming ", size:19, bold:true, color:C.title }),
new TextRun({ text: "●●●●○ ", size:13, color:C.accent }),
new TextRun({ text: "Java / Go / Python / TypeScript", size:18, color:C.sec }),
] });
const C = {
side: "4A7C8F", // sidebar background (teal-blue)
text: "FFFFFF", // sidebar text
label: "A0C4D0", // sidebar secondary text
accent: "357A8F", // accent color
dot: "2F8FAD", // skill dot fill color
dotDim: "B8D4DE", // skill dot empty color
title: "1A3040", // body heading
body: "2C4050", // body content
sec: "6B8A98", // secondary info
};
Circular photo placeholder:
new Paragraph({ alignment: AlignmentType.CENTER,
children: [new TextRun({ text: "◯", size:80, color:C.label })]
});
Language proficiency matrix:
"English ● ● ● ● ○"
"Japanese ● ● ○ ○ ○"
Right-side section headings (left-border style):
new Paragraph({
borders: { left: { style: BorderStyle.SINGLE, size:8, color:C.accent, space:8 } },
indent: { left: 120 },
children: [
new TextRun({ text: "Work Experience", size:24, bold:true, color:C.title, font:"SimHei" }),
new TextRun({ text: " Experience", size:18, color:C.sec, italics:true }),
]
});
Experience entry format (differs from A):
// Line 1: Company name (bold)
// Line 2: Role (accent color) + Date
// Line 3+: ▸ bullet points
| Element | Font | Size | Style |
|---|---|---|---|
| Name (sidebar) | SimHei | 32pt (size:64) | Bold, white |
| Name (header) | SimHei | 24pt (size:48) | Bold, white |
| Section heading | SimHei | 11pt (size:22) | Bold |
| Company / School | Microsoft YaHei | 11pt (size:22) | Bold |
| Role title | Microsoft YaHei | 10pt (size:20) | accent color |
| Date range | Microsoft YaHei | 8.5pt (size:17) | sec color |
| Bullet description | Microsoft YaHei | 9.5pt (size:19) | body color |
| Skill dots | Default | 6.5pt (size:13) | accent / dimColor |
▸ (small triangle)• (round dot)When user provides a job description:
⚠️ Multi-page resumes must use multi-section structure:
Page 1 and Page 2 must be different sections for independent margin and layout control:
sections: [
{
// Page 1 section — margin 0 (sidebar layout needs full-page)
properties: { page: { margin: { top: 0, bottom: 0, left: 0, right: 0 } } },
children: [page1Table],
},
{
// Page 2 section — normal margins with header bar
properties: { page: { margin: { top: 800, bottom: 600, left: 800, right: 800 } } },
children: [pageHeader(name, title), ...page2Content],
},
]
⚠️ Template B multi-page handling:
Template B header banner uses Table simulation:
columnWidths must equal page content area width (pageWidth - marginLeft - marginRight), not full page width⚠️ Page 2+ top spacing rules (mandatory):
Name | Title bar, height ~400–600 twips, separated from body with light background or bottom lineForbidden: content touching the very top of page 2
// Concise header bar for page 2+
function pageHeader(name, title) {
return new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
borders: { top: NB, left: NB, right: NB, insideHorizontal: NB, insideVertical: NB,
bottom: { style: BorderStyle.SINGLE, size: 1, color: "D0D0D0" } },
rows: [new TableRow({
cantSplit: true,
height: { value: 500, rule: "atLeast" },
children: [new TableCell({
margins: { top: 60, bottom: 60, left: 200, right: 200 },
borders: { top: NB, left: NB, right: NB, bottom: NB },
children: [new Paragraph({
children: [
new TextRun({ text: name, size: 20, bold: true, color: S.title || C.title }),
new TextRun({ text: ` | ${title}`, size: 18, color: S.sec || C.sec }),
]
})],
})],
})],
});
}
In addition to universal checks (see references/common-rules.md):
rule: "exact" with value ≤ 16038 (prevent overflow blank pages)Single-page resumes must fully utilize page space — large bottom whitespace is forbidden:
spacing.before/after) to distribute content evenly