agentleFS
zwjbendnzwjbendn/weight-loss-skill/weekly-report/SKILL.md

weekly-report

Skill1 starsChanged 9 months agoMITView on GitHub

Generate a personalized weekly progress report for the user's weight-loss journey. Use this skill every Monday (or when the user asks for a weekly summary). Compiles 7 days of meal logs, weight records, and macro data into an in-chat summary plus a styled HTML report with logging streaks, calorie analysis, weight trends, macronutrient breakdown, achievements, and actionable suggestions. Trigger phrases: 'weekly report', 'week summary', 'how did I do this week', '本周报告', '周报', '这周怎么样'.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use landing-page, meeting-minutes and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xphysSkill

    landing-page

    Build production-ready landing pages with Next.js App Router and Mantine v7+. Activates when building, creating, or developing a landing page, marketing page, or public-facing product page. Covers scaffolding, section composition, SEO, performance, accessibility, responsive design, animations, testing, and deployment.

    Also in 3 projects that use this

  • GitHubSkill

    meeting-minutes

    Generate concise, actionable meeting minutes for internal meetings. Includes metadata, attendees, agenda, decisions, action items (owner + due date), and follow-up steps.

    Also in 3 projects that use this

  • AnthropicSkill

    contract-review

    Lightweight NDA, MSA, and vendor contract review for SMBs without legal on staff. Reads contracts from local files, mail attachments (Gmail or M365), a connected file store (Google Drive or M365), or DocuSign envelopes; flags non-standard terms; explains risks in plain English; and outputs a marked-up redline as a separate DOCX. Use when the user says "review this contract," "what am I signing," "red flags," "flag any concerns," "check the payment terms," or uploads/forwards a contract or legal agreement.

    Also in 3 projects that use this

  • OpenAISkill

    meeting-prep

    Use when creating Public Equity Investing meeting prep briefs. Do not use for private diligence, IB, FP&A, legal, or scheduling-only tasks.

    Also in 3 projects that use this

  • shanggqmSkill

    data-analysis

    数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

30 rules. 0 are common, 13 are distinctive, and 17 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 17

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    One week is noise, trends are signal: Never draw dramatic conclusions from a single week.

    line 25
  2. Distinctive:

    Personalize everything: Use the user's name, units, food history, and goals — never a generic template dump.

    line 26
  3. Distinctive:

    Actionable > informational: Every suggestion must be something the user can do next week.

    line 27
  4. Distinctive:

    All clear → generate and send

    line 51
  5. Very specific:

    If at least 1 meal has status: "logged" → ✅

    line 114
  6. Very specific:

    If all meals are "skipped" or "no_reply" or no log exists → ❌

    line 115
  7. Very specific:

    Only 1-2 days of data → Show what's available but note: "Limited data this week — the more you log, the more useful this gets."

    line 144
  8. Very specific:

    Call weight-tracker.py load --from <start> --to <end> --display-unit <unit> to collect all entries within the period

    line 154
  9. Distinctive:

    If 2+ readings: calculate change = last reading − first reading

    line 155
  10. Distinctive:

    If 1 reading: show it, compare to previous week's last reading if available

    line 156
  11. Distinctive:

    If 0 readings: skip this section entirely (remove the card), add a gentle note

    line 157
  12. Very specific:

    No change or slight gain → "Weight fluctuates — one week doesn't define the trend.

    line 162
  13. Very specific:

    No readings → "No weigh-ins this week — want to add one next week?" / "这周没有称重记录,下周要不要试试?"

    line 163
  14. Very specific:

    All in range → "Balanced macros this week — keep it up!" / "三大营养素都在范围内,继续保持!"

    line 182
  15. Very specific:

    Read habits.active and habits.daily_log.{date} for the week

    line 194
  16. Very specific:

    Check for graduation signals (see habit-builder SKILL.md)

    line 197
  17. Distinctive:

    If no active habits exist, skip this section entirely (remove the card)

    line 198
  18. Very specific:

    If graduation criteria met → flag it: "This might be ready to graduate — we'll check in." / "这个习惯可能可以毕业了,下次聊聊。"

    line 204
  19. Very specific:

    If habits.daily_log data across the week reveals a pattern worth addressing (e.g., user always overeats at night, skips meals on weekdays), …

    line 207
  20. Very specific:

    If nothing stands out, find something — even "You showed up and logged.

    line 230
  21. Distinctive:

    Never fabricate achievements: Every achievement must be backed by actual data.

    line 232
  22. Distinctive:

    Must include a concrete action (e.g., "Add a Greek yogurt to breakfast")

    line 240
  23. Distinctive:

    Never suggest weighing more than 2x/week

    line 242
  24. Distinctive:

    Never suggest calorie counting if user is on IF mode

    line 243
  25. Very specific:

    Units: Use the user's preferred system consistently.

    line 250
  26. Very specific:

    Numbers: Use locale-appropriate formatting.

    line 251
  27. Very specific:

    Don't generate a full report.

    line 264
  28. Very specific:

    If USER.md > Health Flags contains avoid_weight_focus or history_of_ed:

    line 274
  29. Distinctive:

    Follow the template structure — do not add or remove sections

    line 335
  30. Very specific:

    After displaying the report to the user, write a structured JSON summary to logs.weekly_report.{start_date} for cross-session reference and …

    line 342

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Weekly Report

⚠️ SILENT OPERATION: Never narrate internal actions, skill transitions, or tool calls to the user. No "Let me check...", "Now I'll transition to...", "Reading your profile...". Just do it silently and respond with the result.

A personalized end-of-week progress report that turns 7 days of scattered data into a clear, motivating snapshot. The report is data-driven but human — celebrate consistency, normalize fluctuations, and give exactly one or two things to focus on next week.

Principles

  1. Show, don't lecture. Let the data speak. Keep commentary short.
  2. Celebrate consistency over perfection. 5 out of 7 days logged is great — don't focus on the 2 missed.
  3. One week is noise, trends are signal. Never draw dramatic conclusions from a single week.
  4. Personalize everything. Use the user's name, units, food history, and goals — never a generic template dump.
  5. Actionable > informational. Every suggestion must be something the user can do next week.

Trigger Strategy

Schedule

Auto-generate every Monday at 9:00 AM (user's local time), covering the previous Monday–Sunday. Read timezone.json to determine the user's local time and correctly calculate the Mon–Sun date range. If the user's quiet hours extend past 9 AM, delay to end of quiet hours.

Manual Trigger

User can request a report at any time:

  • "weekly report" / "week summary" / "how was my week" → generate for the most recent completed Mon–Sun
  • "report for last week" / "上周报告" → same
  • "report for Feb 10–16" → generate for that specific range

Pre-send Checks

  1. User in Stage 4 (silent)? → skip auto-send, but still generate if manually requested
  2. Less than 2 days of data in the period? → send a short message instead: "Not enough data for a full report this week — let's make next week count! 💪"
  3. All clear → generate and send

Data Sources

Reads from USER.md

FieldPurpose
Basic Info > NameGreeting / header personalization
Health FlagsSkip weight section if ED-related flags

Reads from health-profile.md

FieldPurpose
Body > Unit PreferenceDisplay unit for weight (kg or lb)
Goals > Target WeightProgress percentage calculation
Meal Schedule > Meals per DayExpected logs per day (for logging rate calc)
Meal ScheduleWhich meals to expect
Diet Config > Food RestrictionsContext for suggestions
Activity & Lifestyle > Exercise HabitsContext for suggestions

Reads from PLAN.md

FieldPurpose
Daily Calorie RangeOn-target / below / over classification
Protein RangeMacro analysis
Fat RangeMacro analysis
Carb RangeMacro analysis
Weight Loss RateExpected weekly loss for progress assessment
Diet ModeContext for suggestions

Reads from data (workspace)

PathHowPurpose
data/meals/YYYY-MM-DD.jsonnutrition-calc.py load --date YYYY-MM-DD for each day in rangeLogging status, food descriptions, estimated calories per meal
data/weight.jsonweight-tracker.py load --from YYYY-MM-DD --to YYYY-MM-DD --display-unit <unit>Weight readings for the week
habits.activedirect readCurrent active habits for habit progress section
habits.daily_log.{date}direct readDaily habit completion/miss/no_response records
habits.graduateddirect readRecently graduated habits for achievements section

Note: Weight data is read via the weight-tracking skill's weight-tracker.py script at {weight-tracking:baseDir}/scripts/weight-tracker.py. Read health-profile.md > Body > Unit Preference for the display unit. Meal data is read via nutrition-calc.py load from the diet-tracking-analysis skill.


Report Structure

The report has 6 sections. Generate them in order. Each section adapts to the user's actual data — skip or simplify sections with no data. The header (title, date range, greeting) is handled by the HTML template's .report-header and the in-chat summary — not a separate section.

Section 1: Logging Overview

Show each day of the week with a status indicator. See .logging-grid in the HTML template.

Data logic:

  • For each day (Mon–Sun), call nutrition-calc.py load --date YYYY-MM-DD to check:
    • If at least 1 meal has status: "logged" → ✅
    • If all meals are "skipped" or "no_reply" or no log exists → ❌
  • Count total days with ✅ → {X}/7 days logged

Commentary rules:

  • 7/7 → "Perfect week! 🎉" / "满勤!🎉"
  • 5-6/7 → "Nice consistency!" / "记录很稳!"
  • 3-4/7 → "Solid start — let's aim for one more day next week." / "不错的开始,下周争取多记一天。"
  • 1-2/7 → "Every logged day counts. Small steps!" / "每记一天都有价值,慢慢来!"

Section 2: Calorie Analysis

Show daily calorie intake vs target range with bar chart. See .calorie-table and .calorie-bar in the HTML template.

Data logic:

  • For each day, call nutrition-calc.py load --date YYYY-MM-DD and sum cal across all meals
  • Compare against Daily Calorie Range from PLAN.md:
    • Below range min → 📉 Below (bar class: below)
    • Within range → ✅ On Target (bar class: on-target)
    • Above range max → 📈 Over (bar class: over)
  • Days with no data → — (skip from calculations)
  • Bar width = (day_calories / max_calories_in_week) * 100%

Commentary rules:

  • Average within range → "Right on track this week." / "这周热量控制得很好。"
  • Average below range → "A bit under — make sure you're eating enough to sustain energy." / "稍微偏低,注意吃够保持精力。"
  • Average above range → "Slightly over, but a few small adjustments can close the gap." / "略微超标,小调整就能回来。"
  • Only 1-2 days of data → Show what's available but note: "Limited data this week — the more you log, the more useful this gets."

Section 3: Weight Progress

Show weight readings and net change. See .weight-table and .weight-change in the HTML template.

Data logic:

  • Call weight-tracker.py load --from <start> --to <end> --display-unit <unit> to collect all entries within the period
  • If 2+ readings: calculate change = last reading − first reading
  • If 1 reading: show it, compare to previous week's last reading if available
  • If 0 readings: skip this section entirely (remove the card), add a gentle note

Commentary rules:

  • Loss within expected rate (from PLAN.md weekly rate) → "Right on pace." / "进度刚好。"
  • Loss faster than expected → "Great progress — just make sure you're not undereating." / "进度不错,注意别吃太少。"
  • No change or slight gain → "Weight fluctuates — one week doesn't define the trend. 💛" / "体重会波动,一周说明不了什么。💛"
  • No readings → "No weigh-ins this week — want to add one next week?" / "这周没有称重记录,下周要不要试试?"

Never: compare to target weight in a pressuring way, criticize a gain, or suggest the user weigh more often than 2x/week.


Section 4: Macronutrient Analysis

Compare average daily macro intake against target ranges. See .macro-table in the HTML template.

Data logic:

  • Calculate average daily protein, fat, carb from logged meals across the week (use meal_totals from food logs or daily_summary data)
  • Compare each macro's average against the range from PLAN.md
  • Classify: Below Range / In Range / Above Range

Commentary rules:

  • All in range → "Balanced macros this week — keep it up!" / "三大营养素都在范围内,继续保持!"
  • Protein below → always flag: "Protein is a bit low — try adding an egg, yogurt, or chicken breast to one meal." / "蛋白质偏低,试试每天多加一个鸡蛋或一份鸡胸肉。"
  • Fat over → "Fat ran a little high — check cooking oils and snacks." / "脂肪偏高,留意下烹饪用油和零食。"
  • Insufficient data (< 3 days of macro data) → show what's available with caveat: "Based on limited data — log more meals for a clearer picture."

Section 5: Habit Progress

Show the status of active habits. See .habit-item in the HTML template.

Data logic:

  • Read habits.active and habits.daily_log.{date} for the week
  • For each active habit, count completions, misses, and no_responses
  • Calculate completion rate for the week
  • Check for graduation signals (see habit-builder SKILL.md)
  • If no active habits exist, skip this section entirely (remove the card)

Commentary rules:

  • High completion (≥ 80%) → celebrate casually: "This one's becoming automatic." / "快变成习惯了。"
  • Medium (50-79%) → encourage: "Getting there — consistency beats perfection." / "在进步,坚持比完美更重要。"
  • Low (< 50%) → gentle: "Tough week for this one. Want to adjust it or try something different?" / "这周有点难,要不要调整一下?"
  • If graduation criteria met → flag it: "This might be ready to graduate — we'll check in." / "这个习惯可能可以毕业了,下次聊聊。"

Behavioral pattern detection: If habits.daily_log data across the week reveals a pattern worth addressing (e.g., user always overeats at night, skips meals on weekdays), note it in habits.lifestyle_gaps for the habit-builder skill to act on.


Section 6: Key Achievements & Suggestions

Two sub-sections in a single card. See .achievement-list and .suggestion-list in the HTML template.

Achievements (max 3)

Scan the week's data for genuine wins. Pick the most meaningful ones.

Pattern library (use as inspiration, personalize to actual data):

  • Logging streak: "Logged meals 5 days straight — that's real commitment." / "连续5天记录饮食,这就是坚持。"
  • Calorie consistency: "3 days right in your target range." / "3天热量都在目标范围内。"
  • Protein improvement: "Protein intake improved vs last week." / "蛋白质摄入比上周有进步。"
  • Weight trend: "Down 0.4 kg this week — steady progress." / "这周减了0.4 kg,稳步前进。"
  • Variety: "Tried 3 new foods this week." / "这周尝试了3种新食物。"
  • Healthy choices: "Chose grilled over fried twice." / "两次选了烤的而不是炸的。"

If nothing stands out, find something — even "You showed up and logged. That's the hardest part." / "你坚持记录了,这就是最难的一步。"

Never fabricate achievements. Every achievement must be backed by actual data.

Suggestions (max 2)

Specific, actionable improvements for next week. Based on the week's gaps.

Rules:

  • Each suggestion must reference actual data (e.g., "Protein averaged 82g vs target 84–112g")
  • Must include a concrete action (e.g., "Add a Greek yogurt to breakfast")
  • Respect food restrictions from health-profile.md
  • Never suggest weighing more than 2x/week
  • Never suggest calorie counting if user is on IF mode
  • Tone: collaborative, not prescriptive — "One thing to try next week:" not "You need to:"

Formatting Rules

  • Units: Use the user's preferred system consistently. Read from existing weight logs or PLAN.md. Never show dual units.
  • Numbers: Use locale-appropriate formatting. English: 1,620 kcal. Chinese: 1620 kcal.
  • Tone: Warm, data-driven, encouraging. Like a supportive coach reviewing game tape with an athlete.

Edge Cases

First week (< 7 days of data): Generate a partial report with whatever data exists. Prefix with: "This is your first report — it'll get more useful as we collect more data!" / "这是你的第一份周报,数据越多越有参考价值!"

Week with zero data: Don't generate a full report. Send a short message: "No data to report this week — ready to start fresh? 💪" / "这周没有数据,准备重新开始?💪"

User has no PLAN.md (no calorie/macro targets): Skip Sections 2 and 4 (calorie and macro analysis). Show logging overview and weight progress only. Add note: "Set up a weight loss plan to unlock calorie and macro tracking in your weekly report." / "创建减重计划后,周报会加入热量和营养素分析。"

Health flags (ED-related): If USER.md > Health Flags contains avoid_weight_focus or history_of_ed:

  • Skip Section 3 (Weight Progress) entirely
  • In calorie section, focus on consistency of eating, not numbers
  • Achievements: focus on variety and balance, not restriction

Workspace

Writes

PathWhen
logs.weekly_report.{start_date}After generating the report — store the full report JSON (see references/data-schemas.md)
habits.lifestyle_gapsWhen behavioral patterns are detected during weekly analysis (consumed by habit-builder)

Output

Delivery (two parts)

The weekly report is delivered in two parts:

Part 1: Natural Language Summary (in-chat message)

Send a concise 3–5 sentence summary in the chat as plain text. This summary should give the user a quick snapshot without needing to open the full report.

Structure:

  1. Greeting + date range
  2. Key stats (days logged, average calories, weight change)
  3. One highlight (biggest win of the week)
  4. One suggestion (most impactful thing to try next week)
  5. Pointer to the full HTML report

Example (Chinese):

小明,这是你 2月10日–16日 的周报摘要:这周记录了5/7天,平均摄入
1,766 kcal,体重下降了 0.4 kg。亮点是连续5天坚持记录饮食,蛋白质
摄入可以再提高一些——试试早餐加个鸡蛋。完整报告已生成,请查看附件 👇

Example (English):

Hi Ming, here's your week in review (Feb 10–16): You logged 5/7 days,
averaged 1,766 kcal/day, and dropped 0.4 kg. Highlight: 5-day logging
streak! One thing to try: add an egg to breakfast to boost protein.
Full report attached below 👇

Part 2: HTML Report (file attachment)

Generate a self-contained HTML file using the template at templates/weekly-report.html. Write the file to data/reports/weekly-report-{start_date}.html and attach it in the response. The HTML report contains all 6 sections with full detail, charts, and styling.

HTML generation rules:

  • Replace all {{PLACEHOLDER}} values with actual data
  • The file must be fully self-contained (all CSS inline, no external dependencies)
  • Follow the template structure — do not add or remove sections
  • Adapt language to user's locale (read from locale.json)
  • Skip sections with no data (remove the entire card, do not show empty cards)
  • For the calorie bar chart: calculate bar widths as percentage of the max value in the week

Report JSON (stored to workspace)

After displaying the report to the user, write a structured JSON summary to logs.weekly_report.{start_date} for cross-session reference and trend analysis. Schema in references/data-schemas.md.


Skill Routing

See SKILL-ROUTING.md for the full conflict resolution system. This skill is Priority Tier P4 (Reporting). Key scenarios:

  • Weekly report + exercise weekly summary (Pattern 3): This skill is the primary owner of weekly summaries. Exercise weekly data (sessions, duration, calories burned, WHO comparison) is incorporated as a section within this report. exercise-tracking-planning does NOT produce a separate weekly summary when this skill is generating.
  • Monday auto-report: Include exercise data from the week. No separate exercise summary needed.
  • User requests "weekly summary": Route here, not to exercise-tracking's weekly summary.

Performance

  • Report generation: single message, no back-and-forth
  • In-chat summary: 3–5 sentences, scannable in under 10 seconds
  • HTML report: aim for 40–60 lines of visible content
  • Commentary: 1–2 sentences per section, max

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.