[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77NP34GW84GN5CV5VJR83SV":3,"skill-same:01M77NP34GW84GN5CV5VJR83SV":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M77NP34GW84GN5CV5VJR83SV","ms-forms-auto",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fms-forms-auto\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ms-forms-auto\ndescription: Automate Microsoft Forms submission with dual-calendar integration and M365 MFA support. Use when: automating daily productivity log submissions, submitting Microsoft Forms with calendar-based auto-fill, setting up scheduled form submissions with training\u002Fcontent-dev\u002Flearning hour calculations, or working with org MS Forms that require M365 number-matching MFA. Triggers on phrases like \"fill out MS form\", \"automate form submission\", \"daily form report\", \"submit Microsoft form\", \"daily productivity log\", \"training hours form\".\n---\n\n# MS Forms Auto\n\nAutomate Microsoft Forms submission with Playwright, dual-calendar auto-fill, and M365 number-matching MFA support.\n\n## Quick Start\n\n### 1. Install Dependencies\n\n```bash\ncd \u003Cskill-directory>\nnpm install\nnpx playwright install chromium\n```\n\n### 2. Set Up Credentials (one-time)\n\n```bash\nnode scripts\u002Fsetup-credentials.js\n```\n\nCreates `config\u002Fcredentials.json` (gitignored) with M365 email\u002Fpassword.\n\n### 3. First Login with MFA\n\n```bash\nxvfb-run --auto-servernum node scripts\u002Fmfa-login.js\n```\n\nWhen prompted, enter the 6-digit code from your Authenticator app. Saves auth state to `config\u002FstorageState.json` for headless reuse.\n\n### 4. Fetch Calendar Data\n\n```bash\nnode scripts\u002Fcalendar-fetch.js              # Today (SGT)\nnode scripts\u002Fcalendar-fetch.js --date 2026-03-18  # Specific date\n```\n\nReturns JSON with all form fields auto-populated from both calendars.\n\n### 5. Submit the Form\n\n```bash\nnode scripts\u002Fsubmit-daily.js\n```\n\nReads today's entry from `daily-entries\u002FYYYY-MM-DD.json` and submits.\n\n## Architecture\n\n### Dual Calendar System\n\n| Calendar | URL Source | Purpose |\n|----------|-----------|---------|\n| **Training (TMS)** | Built into script | Training Hours (source of truth) |\n| **Outlook** | Built into script | Content Dev Hours, Other Items |\n\n### Field Logic\n\n| # | Field | Source |\n|---|-------|--------|\n| 1 | Date | Today (M\u002Fd\u002Fyyyy) |\n| 2 | Training Hours | Training calendar events |\n| 3 | Content Dev Hours | Outlook calendar (content dev blockouts) |\n| 4 | Content Dev Topic | Event description from Outlook |\n| 5 | Learning Hours | `max(0, 8 - training - contentDev)` |\n| 6 | Learning Topic | 2-3 random topics + any KT Sessions |\n| 7 | Other Items | \"Preparation, testing, and rehearsal for my next class\" + Outlook events (excludes KT Sessions, training duplicates) |\n| 8 | Team Hours | Blank |\n| 9 | Team Description | Blank |\n\n### Fallback Defaults (if calendars fail)\n\n| Field | Fallback |\n|-------|----------|\n| Training Hours | 0 |\n| Content Dev Hours | 0 |\n| Content Dev Topic | NA |\n| Learning Hours | 8 |\n| Learning Topic | 3 random topics from pool |\n| Other Items | \"Preparation, testing, and rehearsal for my next class\" |\n\n## Scripts\n\n| Script | Purpose |\n|--------|---------|\n| `scripts\u002Fcalendar-fetch.js` | Fetch both calendars, output all form fields |\n| `scripts\u002Fsubmit-with-mfa.js` | **Primary**: Combined MFA login + form submit in one session |\n| `scripts\u002Fsubmit-daily.js` | Submit form using saved storageState (no MFA) |\n| `scripts\u002Fmfa-login.js` | Standalone MFA login (headed mode, saves state) |\n| `scripts\u002Ffill-form.js` | CLI form filler with `--date`, `--training`, etc. args |\n| `scripts\u002Fsetup-credentials.js` | One-time credential setup |\n\n## Automated Pipeline (via OpenClaw Cron)\n\n```\n5:45 PM SGT → Pre-Fill cron (isolated) → calendar-fetch.js → draft entry JSON\n6:00 PM SGT → Submit cron (main session) → asks Master for MFA code → \n              submit-with-mfa.js --code CODE → login + submit in one session → done\n```\n\n**Why main session?** The submit job runs in the main session so it can ask Master Phil for the 6-digit Authenticator code. Speed is critical — the MFA code expires in ~30 seconds, so the login and submit happen in a single browser session via `submit-with-mfa.js`.\n\n## Configuration Files\n\n| File | Purpose | Gitignored? |\n|------|---------|-------------|\n| `config\u002Fcredentials.json` | M365 email + password | ✅ |\n| `config\u002FstorageState.json` | Saved browser session (cookies) | ✅ |\n| `config\u002Fcalendars.json` | Calendar URLs (contains auth tokens) | ✅ |\n| `config\u002Fcalendars.json.example` | Template for calendar URLs | ❌ |\n| `config\u002Fform-values.json` | Legacy form value defaults | ❌ |\n| `daily-entries\u002F` | Daily submission audit trail | ✅ |\n\n## MFA Handling (Improved)\n\nThis skill now **intelligently handles both MFA and non-MFA scenarios**:\n\n### Smart Behavior\n\n1. **Auto-detection**: The script attempts credential login first, then checks if MFA is required\n2. **Flexible invocation**:\n   - `node scripts\u002Fsubmit-with-mfa.js` - Tries credentials only; if MFA appears, waits 30s for manual code entry or exits with code 2\n   - `node scripts\u002Fsubmit-with-mfa.js --code XXXXXX` - Provides MFA code upfront; uses it if MFA appears, otherwise proceeds\n3. **Graceful fallback**: If credentials alone are sufficient (no MFA prompt), it works without requiring a code\n4. **Exit codes**:\n   - `0` — Success\n   - `1` — General error \u002F invalid credentials\n   - `2` — MFA required but no code provided (use --code flag)\n   - `3` — MFA code wrong or expired\n   - `4` — Form submission failed\n\n### Recommended Usage\n\n**For daily cron (6 PM SGT):**\n```\nnode scripts\u002Fsubmit-with-mfa.js --code [MFA_CODE_HERE]\n```\nThis ensures speed (code ready) and handles both cases:\n- If MFA appears → code is used immediately\n- If no MFA → code is ignored, submission proceeds\n\n**For manual testing (unknown MFA requirement):**\n```\nnode scripts\u002Fsubmit-with-mfa.js\n```\nThe script will wait 30 seconds on the MFA screen if needed, allowing you to manually type the code from your Authenticator app.\n\n### Why This Works\n\nMicrosoft's M365 authentication can be inconsistent:\n- Sometimes the OIDC cookie from previous login is still valid → no MFA needed\n- Sometimes the cookie expired → MFA required\n- Sometimes conditional access policies trigger MFA based on IP\u002Fdevice\n\nThe new logic eliminates the \"always ask for MFA\" problem by making the code optional and only using it when the MFA prompt actually appears.\n\n## Troubleshooting\n\n- **Auth expired**: Run `xvfb-run --auto-servernum node scripts\u002Fmfa-login.js` with a fresh Authenticator code\n- **Calendar fetch fails**: Script uses graceful fallbacks (0\u002FNA defaults), form still submits\n- **Form URL changed**: Update the URL in `scripts\u002Fsubmit-daily.js`\n- **Wrong field values**: Run `node scripts\u002Fcalendar-fetch.js --date YYYY-MM-DD` to verify calendar data\n- **Detailed test plan**: See `references\u002FTESTING_AUTH_WORKFLOW.md` for comprehensive authentication workflow testing scenarios\n","# MS Forms Auto\n\nAutomate Microsoft Forms submission with Playwright, dual-calendar auto-fill, and M365 number-matching MFA support.\n\n## Quick Start\n\n### 1. Install Dependencies\n\n```bash\ncd \u003Cskill-directory>\nnpm install\nnpx playwright install chromium\n```\n\n### 2. Set Up Credentials (one-time)\n\n```bash\nnode scripts\u002Fsetup-credentials.js\n```\n\nCreates `config\u002Fcredentials.json` (gitignored) with M365 email\u002Fpassword.\n\n### 3. First Login with MFA\n\n```bash\nxvfb-run --auto-servernum node scripts\u002Fmfa-login.js\n```\n\nWhen prompted, enter the 6-digit code from your Authenticator app. Saves auth state to `config\u002FstorageState.json` for headless reuse.\n\n### 4. Fetch Calendar Data\n\n```bash\nnode scripts\u002Fcalendar-fetch.js              # Today (SGT)\nnode scripts\u002Fcalendar-fetch.js --date 2026-03-18  # Specific date\n```\n\nReturns JSON with all form fields auto-populated from both calendars.\n\n### 5. Submit the Form\n\n```bash\nnode scripts\u002Fsubmit-daily.js\n```\n\nReads today's entry from `daily-entries\u002FYYYY-MM-DD.json` and submits.\n\n## Architecture\n\n### Dual Calendar System\n\n| Calendar | URL Source | Purpose |\n|----------|-----------|---------|\n| **Training (TMS)** | Built into script | Training Hours (source of truth) |\n| **Outlook** | Built into script | Content Dev Hours, Other Items |\n\n### Field Logic\n\n| # | Field | Source |\n|---|-------|--------|\n| 1 | Date | Today (M\u002Fd\u002Fyyyy) |\n| 2 | Training Hours | Training calendar events |\n| 3 | Content Dev Hours | Outlook calendar (content dev blockouts) |\n| 4 | Content Dev Topic | Event description from Outlook |\n| 5 | Learning Hours | `max(0, 8 - training - contentDev)` |\n| 6 | Learning Topic | 2-3 random topics + any KT Sessions |\n| 7 | Other Items | \"Preparation, testing, and rehearsal for my next class\" + Outlook events (excludes KT Sessions, training duplicates) |\n| 8 | Team Hours | Blank |\n| 9 | Team Description | Blank |\n\n### Fallback Defaults (if calendars fail)\n\n| Field | Fallback |\n|-------|----------|\n| Training Hours | 0 |\n| Content Dev Hours | 0 |\n| Content Dev Topic | NA |\n| Learning Hours | 8 |\n| Learning Topic | 3 random topics from pool |\n| Other Items | \"Preparation, testing, and rehearsal for my next class\" |\n\n## Scripts\n\n| Script | Purpose |\n|--------|---------|\n| `scripts\u002Fcalendar-fetch.js` | Fetch both calendars, output all form fields |\n| `scripts\u002Fsubmit-with-mfa.js` | **Primary**: Combined MFA login + form submit in one session |\n| `scripts\u002Fsubmit-daily.js` | Submit form using saved storageState (no MFA) |\n| `scripts\u002Fmfa-login.js` | Standalone MFA login (headed mode, saves state) |\n| `scripts\u002Ffill-form.js` | CLI form filler with `--date`, `--training`, etc. args |\n| `scripts\u002Fsetup-credentials.js` | One-time credential setup |\n\n## Automated Pipeline (via OpenClaw Cron)\n\n```\n5:45 PM SGT → Pre-Fill cron (isolated) → calendar-fetch.js → draft entry JSON\n6:00 PM SGT → Submit cron (main session) → asks Master for MFA code → \n              submit-with-mfa.js --code CODE → login + submit in one session → done\n```\n\n**Why main session?** The submit job runs in the main session so it can ask Master Phil for the 6-digit Authenticator code. Speed is critical — the MFA code expires in ~30 seconds, so the login and submit happen in a single browser session via `submit-with-mfa.js`.\n\n## Configuration Files\n\n| File | Purpose | Gitignored? |\n|------|---------|-------------|\n| `config\u002Fcredentials.json` | M365 email + password | ✅ |\n| `config\u002FstorageState.json` | Saved browser session (cookies) | ✅ |\n| `config\u002Fcalendars.json` | Calendar URLs (contains auth tokens) | ✅ |\n| `config\u002Fcalendars.json.example` | Template for calendar URLs | ❌ |\n| `config\u002Fform-values.json` | Legacy form value defaults | ❌ |\n| `daily-entries\u002F` | Daily submission audit trail | ✅ |\n\n## MFA Handling (Improved)\n\nThis skill now **intelligently handles both MFA and non-MFA scenarios**:\n\n### Smart Behavior\n\n1. **Auto-detection**: The script attempts credential login first, then checks if MFA is required\n2. **Flexible invocation**:\n   - `node scripts\u002Fsubmit-with-mfa.js` - Tries credentials only; if MFA appears, waits 30s for manual code entry or exits with code 2\n   - `node scripts\u002Fsubmit-with-mfa.js --code XXXXXX` - Provides MFA code upfront; uses it if MFA appears, otherwise proceeds\n3. **Graceful fallback**: If credentials alone are sufficient (no MFA prompt), it works without requiring a code\n4. **Exit codes**:\n   - `0` — Success\n   - `1` — General error \u002F invalid credentials\n   - `2` — MFA required but no code provided (use --code flag)\n   - `3` — MFA code wrong or expired\n   - `4` — Form submission failed\n\n### Recommended Usage\n\n**For daily cron (6 PM SGT):**\n```\nnode scripts\u002Fsubmit-with-mfa.js --code [MFA_CODE_HERE]\n```\nThis ensures speed (code ready) and handles both cases:\n- If MFA appears → code is used immediately\n- If no MFA → code is ignored, submission proceeds\n\n**For manual testing (unknown MFA requirement):**\n```\nnode scripts\u002Fsubmit-with-mfa.js\n```\nThe script will wait 30 seconds on the MFA screen if needed, allowing you to manually type the code from your Authenticator app.\n\n### Why This Works\n\nMicrosoft's M365 authentication can be inconsistent:\n- Sometimes the OIDC cookie from previous login is still valid → no MFA needed\n- Sometimes the cookie expired → MFA required\n- Sometimes conditional access policies trigger MFA based on IP\u002Fdevice\n\nThe new logic eliminates the \"always ask for MFA\" problem by making the code optional and only using it when the MFA prompt actually appears.\n\n## Troubleshooting\n\n- **Auth expired**: Run `xvfb-run --auto-servernum node scripts\u002Fmfa-login.js` with a fresh Authenticator code\n- **Calendar fetch fails**: Script uses graceful fallbacks (0\u002FNA defaults), form still submits\n- **Form URL changed**: Update the URL in `scripts\u002Fsubmit-daily.js`\n- **Wrong field values**: Run `node scripts\u002Fcalendar-fetch.js --date YYYY-MM-DD` to verify calendar data\n- **Detailed test plan**: See `references\u002FTESTING_AUTH_WORKFLOW.md` for comprehensive authentication workflow testing scenarios\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fm\u002Fms-forms-auto",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill ms-forms-auto",{"tool":38,"command":39},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill ms-forms-auto",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill ms-forms-auto","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fms-forms-auto\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]