GITHUB TRENDING LAYOUT SPEC
Defines the technical specifications, HTML layout constraints, output directory structure, and linter validation rules for publishing the technology trending newsletter. This specification acts as a strict format compliance checker to ensure visual excellence across all client devices.
DO:
- Enforce exact column width percentages in the table header.
- Align column content according to the alignment spec (e.g. center for rank
#, left for others).
- Wrap the repository names inside bold anchor links (
<strong><a href="...">).
- Format the programming language tag below the repository name in a small font (
<small>).
- Place reports in the correct month directory (
reports/YYYY_MM/).
- Name reports strictly based on period types (
daily_YYYY_MM_DD.md, weekly_YYYY_Www.md, monthly_YYYY_MM.md).
- Ensure all HTML tags (such as
<strong>, <a>, <small>, <br>) are properly closed.
DO NOT:
- Change column width percentages or column orders.
- Add emojis or decorated special characters inside the highlighted features column.
- Omit closing tags, which would break layout rendering.
- Output draft files outside the designated monthly directory.
When to Use
Use this skill when the assistant is:
- Preparing the empty HTML table structure for the newsletter.
- Mapping scraped metadata (such as rank, repository path, description, programming language, social mentions, copywriting hooks) into HTML table rows.
- Saving the finished newsletter document to disk.
- Linting and verifying the HTML table structure before publishing.
Do NOT Use this skill when:
- Scraping raw trending listings from sources (use
get_trending and get_repo_details tools).
- Drafting copy or writing Socratic metaphors (use copywriting and explain-like-socrates skills).
SPECIFICATION
The publication layout must strictly comply with the following mapping and template schemas.
1. Data Mapping Schema
The output HTML table consists of exactly 5 columns mapped as follows:
- Column 1:
# (width: 5%)
- Content: Project rank index.
- Alignment: Centered.
- Column 2:
Dự án (width: 10%)
- Content: Bold repository name wrapped in a GitHub link, followed by main programming language in small text.
- Format:
<strong><a href="[GitHub_URL]">[Tên_Repo]</a></strong><br><small>[Ngôn_Ngữ]</small>
- Alignment: Left.
- Column 3:
Ứng Dụng Thực Tế (width: 20%)
- Content: User pain points and solution hook.
- Alignment: Left.
- Column 4:
Điểm Độc Đáo (Socratic) (width: 35%)
- Content: Structured Socratic metaphor and technical mechanism.
- Format:
<strong>[Tên_Ẩn_Dụ]</strong> - [Giải thích ẩn dụ]<br><strong>CƠ CHẾ KỸ THUẬT</strong>: [Giải thích cơ chế hoạt động thực tế]
- Alignment: Left.
- Column 5:
Tính Năng Nổi Bật (width: 30%)
- Content: 2-3 bulleted features using standard solid black bullets (
•). No emojis.
- Alignment: Left.
2. HTML Table Template
<table>
<thead>
<tr>
<th width="5%" align="center">#</th>
<th width="10%" align="left">Dự án</th>
<th width="20%" align="left">Ứng Dụng Thực Tế</th>
<th width="35%" align="left">Điểm Độc Đáo (Socratic)</th>
<th width="30%" align="left">Tính Năng Nổi Bật</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">[Xếp_Hạng]</td>
<td><strong><a href="[GitHub_URL]">[Tên_Repo]</a></strong><br><small>[Ngôn_Ngữ]</small></td>
<td>[Nội_Dung_Hook]</td>
<td>[Phép_Ẩn_Dụ_Socratic]</td>
<td>• [Tính năng 1]<br>• [Tính năng 2]</td>
</tr>
</tbody>
</table>
3. Storage and File Naming Spec
Save files in monthly folders under reports/YYYY_MM/ directory:
- Daily Reports:
reports/YYYY_MM/daily_YYYY_MM_DD.md
- Weekly Reports:
reports/YYYY_MM/weekly_YYYY_Www.md
- Monthly Reports:
reports/YYYY_MM/monthly_YYYY_MM.md
Markdown Heading Spec:
- The document must start with a level-1 header:
# Bản tin GitHub Trending [ngày DD/MM/YYYY | Tuần WW/YYYY | Tháng MM/YYYY].
- A small subtitle showing the generation time must be placed immediately below the H1: Thời gian cập nhật: HH:MM, ngày DD/MM/YYYY.
4. Validation Rules (Linter)
Perform a final sanity check before writing to disk:
- Width Validation: Ensure the
width attributes in <th> are exactly 5%, 10%, 20%, 35%, and 30%.
- HTML Parser Check: Verify that all opening tags (
<strong>, <a>, <small>, etc.) have corresponding closing tags.
Limitations
- This skill only defines presentation, structure, validation, and storage rules.
- It does not contain scraper tool invocation schemas or copywriting guidelines.
1---2name: github-trending-layout-spec3description: Quy chuẩn kỹ thuật, cấu trúc bố cục HTML và định dạng tệp tin cho việc xuất bản bản tin xu hướng công nghệ.4---56# GITHUB TRENDING LAYOUT SPEC78Defines the technical specifications, HTML layout constraints, output directory structure, and linter validation rules for publishing the technology trending newsletter. This specification acts as a strict format compliance checker to ensure visual excellence across all client devices.910DO:11- Enforce exact column width percentages in the table header.12- Align column content according to the alignment spec (e.g. center for rank `#`, left for others).13- Wrap the repository names inside bold anchor links (`<strong><a href="...">`).14- Format the programming language tag below the repository name in a small font (`<small>`).15- Place reports in the correct month directory (`reports/YYYY_MM/`).16- Name reports strictly based on period types (`daily_YYYY_MM_DD.md`, `weekly_YYYY_Www.md`, `monthly_YYYY_MM.md`).17- Ensure all HTML tags (such as `<strong>`, `<a>`, `<small>`, `<br>`) are properly closed.1819DO NOT:20- Change column width percentages or column orders.21- Add emojis or decorated special characters inside the highlighted features column.22- Omit closing tags, which would break layout rendering.23- Output draft files outside the designated monthly directory.2425---2627## When to Use28Use this skill when the assistant is:29- Preparing the empty HTML table structure for the newsletter.30- Mapping scraped metadata (such as rank, repository path, description, programming language, social mentions, copywriting hooks) into HTML table rows.31- Saving the finished newsletter document to disk.32- Linting and verifying the HTML table structure before publishing.3334Do NOT Use this skill when:35- Scraping raw trending listings from sources (use `get_trending` and `get_repo_details` tools).36- Drafting copy or writing Socratic metaphors (use copywriting and explain-like-socrates skills).3738---3940# SPECIFICATION4142The publication layout must strictly comply with the following mapping and template schemas.4344## 1. Data Mapping Schema4546The output HTML table consists of exactly 5 columns mapped as follows:4748* **Column 1: `#` (width: 5%)**49 - Content: Project rank index.50 - Alignment: Centered.51* **Column 2: `Dự án` (width: 10%)**52 - Content: Bold repository name wrapped in a GitHub link, followed by main programming language in small text.53 - Format: `<strong><a href="[GitHub_URL]">[Tên_Repo]</a></strong><br><small>[Ngôn_Ngữ]</small>`54 - Alignment: Left.55* **Column 3: `Ứng Dụng Thực Tế` (width: 20%)**56 - Content: User pain points and solution hook.57 - Alignment: Left.58* **Column 4: `Điểm Độc Đáo (Socratic)` (width: 35%)**59 - Content: Structured Socratic metaphor and technical mechanism.60 - Format: `<strong>[Tên_Ẩn_Dụ]</strong> - [Giải thích ẩn dụ]<br><strong>CƠ CHẾ KỸ THUẬT</strong>: [Giải thích cơ chế hoạt động thực tế]`61 - Alignment: Left.62* **Column 5: `Tính Năng Nổi Bật` (width: 30%)**63 - Content: 2-3 bulleted features using standard solid black bullets (`•`). No emojis.64 - Alignment: Left.6566---6768## 2. HTML Table Template6970```html71<table>72 <thead>73 <tr>74 <th width="5%" align="center">#</th>75 <th width="10%" align="left">Dự án</th>76 <th width="20%" align="left">Ứng Dụng Thực Tế</th>77 <th width="35%" align="left">Điểm Độc Đáo (Socratic)</th>78 <th width="30%" align="left">Tính Năng Nổi Bật</th>79 </tr>80 </thead>81 <tbody>82 <tr>83 <td align="center">[Xếp_Hạng]</td>84 <td><strong><a href="[GitHub_URL]">[Tên_Repo]</a></strong><br><small>[Ngôn_Ngữ]</small></td>85 <td>[Nội_Dung_Hook]</td>86 <td>[Phép_Ẩn_Dụ_Socratic]</td>87 <td>• [Tính năng 1]<br>• [Tính năng 2]</td>88 </tr>89 </tbody>90</table>91```9293---9495## 3. Storage and File Naming Spec9697Save files in monthly folders under `reports/YYYY_MM/` directory:9899* **Daily Reports:** `reports/YYYY_MM/daily_YYYY_MM_DD.md`100* **Weekly Reports:** `reports/YYYY_MM/weekly_YYYY_Www.md`101* **Monthly Reports:** `reports/YYYY_MM/monthly_YYYY_MM.md`102103### Markdown Heading Spec:1041. The document must start with a level-1 header: `# Bản tin GitHub Trending [ngày DD/MM/YYYY | Tuần WW/YYYY | Tháng MM/YYYY]`.1052. A small subtitle showing the generation time must be placed immediately below the H1: *Thời gian cập nhật: HH:MM, ngày DD/MM/YYYY*.106107---108109## 4. Validation Rules (Linter)110111Perform a final sanity check before writing to disk:1121. **Width Validation:** Ensure the `width` attributes in `<th>` are exactly `5%`, `10%`, `20%`, `35%`, and `30%`.1132. **HTML Parser Check:** Verify that all opening tags (`<strong>`, `<a>`, `<small>`, etc.) have corresponding closing tags.114115---116117## Limitations118- This skill only defines presentation, structure, validation, and storage rules.119- It does not contain scraper tool invocation schemas or copywriting guidelines.