[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C3Y4ZYZVT7ZA788FYKBA3W":3,"skill-same:01M7C3Y4ZYZVT7ZA788FYKBA3W":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":41,"commitSha":42,"skillDirectory":43,"forksCount":13,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M7C3Y4ZYZVT7ZA788FYKBA3W","canvas",null,"Fetch Canvas LMS courses and assignments via API token.","fengwhang\u002Fmercury","fengwhang","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F325040254?v=4","01M7C3K54Y41KVGPHEMKEP9X70","01M7C3K55NTZ4B36YP2JY1NMJ0",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fproductivity\u002Fcanvas\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: canvas\ndescription: Fetch Canvas LMS courses and assignments via API token.\nversion: 1.0.0\nauthor: community\nlicense: MIT\nplatforms: [linux, macos, windows]\nprerequisites:\n  env_vars: [CANVAS_API_TOKEN, CANVAS_BASE_URL]\nmetadata:\n  mercury:\n    tags: [Canvas, LMS, Education, Courses, Assignments]\n---\n\n# Canvas LMS — Course & Assignment Access\n\nRead-only access to Canvas LMS for listing courses and assignments.\n\n## Scripts\n\n- `scripts\u002Fcanvas_api.py` — Python CLI for Canvas API calls\n\n## Setup\n\n1. Log in to your Canvas instance in a browser\n2. Go to **Account → Settings** (click your profile icon, then Settings)\n3. Scroll to **Approved Integrations** and click **+ New Access Token**\n4. Name the token (e.g., \"Hermes Agent\"), set an optional expiry, and click **Generate Token**\n5. Copy the token and add to `$MERCURY_HOME\u002F.env`:\n\n```\nCANVAS_API_TOKEN=your_token_here\nCANVAS_BASE_URL=https:\u002F\u002Fyourschool.instructure.com\n```\n\nThe base URL is whatever appears in your browser when you're logged into Canvas (no trailing slash).\n\n## Usage\n\n```bash\nCANVAS=\"python $MERCURY_HOME\u002Fskills\u002Fproductivity\u002Fcanvas\u002Fscripts\u002Fcanvas_api.py\"\n\n# List all active courses\n$CANVAS list_courses --enrollment-state active\n\n# List all courses (any state)\n$CANVAS list_courses\n\n# List assignments for a specific course\n$CANVAS list_assignments 12345\n\n# List assignments ordered by due date\n$CANVAS list_assignments 12345 --order-by due_at\n```\n\n## Output Format\n\n**list_courses** returns:\n```json\n[{\"id\": 12345, \"name\": \"Intro to CS\", \"course_code\": \"CS101\", \"workflow_state\": \"available\", \"start_at\": \"...\", \"end_at\": \"...\"}]\n```\n\n**list_assignments** returns:\n```json\n[{\"id\": 67890, \"name\": \"Homework 1\", \"due_at\": \"2025-02-15T23:59:00Z\", \"points_possible\": 100, \"submission_types\": [\"online_upload\"], \"html_url\": \"...\", \"description\": \"...\", \"course_id\": 12345}]\n```\n\nNote: Assignment descriptions are truncated to 500 characters. The `html_url` field links to the full assignment page in Canvas.\n\n## API Reference (curl)\n\n```bash\n# List courses\ncurl -s -H \"Authorization: Bearer $CANVAS_API_TOKEN\" \\\n  \"$CANVAS_BASE_URL\u002Fapi\u002Fv1\u002Fcourses?enrollment_state=active&per_page=10\"\n\n# List assignments for a course\ncurl -s -H \"Authorization: Bearer $CANVAS_API_TOKEN\" \\\n  \"$CANVAS_BASE_URL\u002Fapi\u002Fv1\u002Fcourses\u002FCOURSE_ID\u002Fassignments?per_page=10&order_by=due_at\"\n```\n\nCanvas uses `Link` headers for pagination. The Python script handles pagination automatically.\n\n## Rules\n\n- This skill is **read-only** — it only fetches data, never modifies courses or assignments\n- On first use, verify auth by running `$CANVAS list_courses` — if it fails with 401, guide the user through setup\n- Canvas rate-limits to ~700 requests per 10 minutes; check `X-Rate-Limit-Remaining` header if hitting limits\n\n## Troubleshooting\n\n| Problem | Fix |\n|---------|-----|\n| 401 Unauthorized | Token invalid or expired — regenerate in Canvas Settings |\n| 403 Forbidden | Token lacks permission for this course |\n| Empty course list | Try `--enrollment-state active` or omit the flag to see all states |\n| Wrong institution | Verify `CANVAS_BASE_URL` matches the URL in your browser |\n| Timeout errors | Check network connectivity to your Canvas instance |\n","# Canvas LMS — Course & Assignment Access\n\nRead-only access to Canvas LMS for listing courses and assignments.\n\n## Scripts\n\n- `scripts\u002Fcanvas_api.py` — Python CLI for Canvas API calls\n\n## Setup\n\n1. Log in to your Canvas instance in a browser\n2. Go to **Account → Settings** (click your profile icon, then Settings)\n3. Scroll to **Approved Integrations** and click **+ New Access Token**\n4. Name the token (e.g., \"Hermes Agent\"), set an optional expiry, and click **Generate Token**\n5. Copy the token and add to `$MERCURY_HOME\u002F.env`:\n\n```\nCANVAS_API_TOKEN=your_token_here\nCANVAS_BASE_URL=https:\u002F\u002Fyourschool.instructure.com\n```\n\nThe base URL is whatever appears in your browser when you're logged into Canvas (no trailing slash).\n\n## Usage\n\n```bash\nCANVAS=\"python $MERCURY_HOME\u002Fskills\u002Fproductivity\u002Fcanvas\u002Fscripts\u002Fcanvas_api.py\"\n\n# List all active courses\n$CANVAS list_courses --enrollment-state active\n\n# List all courses (any state)\n$CANVAS list_courses\n\n# List assignments for a specific course\n$CANVAS list_assignments 12345\n\n# List assignments ordered by due date\n$CANVAS list_assignments 12345 --order-by due_at\n```\n\n## Output Format\n\n**list_courses** returns:\n```json\n[{\"id\": 12345, \"name\": \"Intro to CS\", \"course_code\": \"CS101\", \"workflow_state\": \"available\", \"start_at\": \"...\", \"end_at\": \"...\"}]\n```\n\n**list_assignments** returns:\n```json\n[{\"id\": 67890, \"name\": \"Homework 1\", \"due_at\": \"2025-02-15T23:59:00Z\", \"points_possible\": 100, \"submission_types\": [\"online_upload\"], \"html_url\": \"...\", \"description\": \"...\", \"course_id\": 12345}]\n```\n\nNote: Assignment descriptions are truncated to 500 characters. The `html_url` field links to the full assignment page in Canvas.\n\n## API Reference (curl)\n\n```bash\n# List courses\ncurl -s -H \"Authorization: Bearer $CANVAS_API_TOKEN\" \\\n  \"$CANVAS_BASE_URL\u002Fapi\u002Fv1\u002Fcourses?enrollment_state=active&per_page=10\"\n\n# List assignments for a course\ncurl -s -H \"Authorization: Bearer $CANVAS_API_TOKEN\" \\\n  \"$CANVAS_BASE_URL\u002Fapi\u002Fv1\u002Fcourses\u002FCOURSE_ID\u002Fassignments?per_page=10&order_by=due_at\"\n```\n\nCanvas uses `Link` headers for pagination. The Python script handles pagination automatically.\n\n## Rules\n\n- This skill is **read-only** — it only fetches data, never modifies courses or assignments\n- On first use, verify auth by running `$CANVAS list_courses` — if it fails with 401, guide the user through setup\n- Canvas rate-limits to ~700 requests per 10 minutes; check `X-Rate-Limit-Remaining` header if hitting limits\n\n## Troubleshooting\n\n| Problem | Fix |\n|---------|-----|\n| 401 Unauthorized | Token invalid or expired — regenerate in Canvas Settings |\n| 403 Forbidden | Token lacks permission for this course |\n| Empty course list | Try `--enrollment-state active` or omit the flag to see all states |\n| Wrong institution | Verify `CANVAS_BASE_URL` matches the URL in your browser |\n| Timeout errors | Check network connectivity to your Canvas instance |\n",{"name":5,"author":23,"license":14,"version":24,"metadata":25,"platforms":33,"description":7,"prerequisites":37},"community","1.0.0",{"mercury":26},{"tags":27},[28,29,30,31,32],"Canvas","LMS","Education","Courses","Assignments",[34,35,36],"linux","macos","windows",{"env_vars":38},[39,40],"CANVAS_API_TOKEN","CANVAS_BASE_URL","main","94a12cab2ce32e2020d179b5d579d0cbcbd0f206","hermes\u002Foptional-skills\u002Fproductivity\u002Fcanvas","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury","https:\u002F\u002Fgithub.com\u002Ffengwhang","2026-10-09 08:26:42",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add fengwhang\u002Fmercury --skill canvas",{"tool":53,"command":54},"bunx","bunx skills add fengwhang\u002Fmercury --skill canvas",{"tool":56,"command":57},"pnpm","pnpm dlx skills add fengwhang\u002Fmercury --skill canvas","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fproductivity\u002Fcanvas\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fcanvas_api.py","SCRIPT","脚本",5218,"https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fproductivity\u002Fcanvas\u002Fscripts\u002Fcanvas_api.py",[68,75,82,89,95,102],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7C4BTY3ND38CN200ZCTH6NV","greet","A greeting skill for testing","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Fmarketplace\u002Ffixtures\u002Fvalid-marketplace\u002Fplugins\u002Fhello-plugin\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7C4BSNZTPW8JR5NGCQXGSEZ","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7C4BRA7J8C06KSVW100F1W1","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7C4BNB04KQGCJ835JE8AR13","no-frontmatter","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M7C4BM38TZFYT1AJ6SKHPZZ2","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":18},"01M7C4BJDN7RFFCM28CGX15Q97","different-name","A skill with a name that doesn't match the directory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[]]