{"data":{"slug":"discovered-fb848dca9fa5641805dba6a12655689bef1cb0f3029a8d0e","title":"Annotate any file in Plannotator's browser UI","summary":"Annotate any plain text file in Plannotator's browser UI. For non-Markdown\/HTML files, the content is wrapped in a temporary Markdown file with a code block, annotated, and then the temporary file is deleted.","url":"https:\/\/skillshunter.net\/skills\/discovered-fb848dca9fa5641805dba6a12655689bef1cb0f3029a8d0e","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-fb848dca9fa5641805dba6a12655689bef1cb0f3029a8d0e","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-fb848dca9fa5641805dba6a12655689bef1cb0f3029a8d0e.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-fb848dca9fa5641805dba6a12655689bef1cb0f3029a8d0e\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the file is plain text and not binary. For files larger than ~1 MB, warn the user before proceeding as Plannotator's UI may struggle with large files.","instructions":"---\nname: annotate\ndescription: Annotate any file in Plannotator's browser UI. Markdown and HTML files are passed through directly; other files are wrapped in a temporary `.md` with a fenced code block, annotated, then the temp file is deleted.\n---\n\n# Annotate\n\nUse this skill when the user wants to annotate an arbitrary file in Plannotator \u2014 not just markdown\/HTML.\n\nArgument: a single file path.\n\n## Behavior\n\n1. **`.md` or `.html` (case-insensitive)** \u2014 invoke the `plannotator-annotate` skill on the file directly.\n\n2. **Anything else:**\n   - Create a temp `.md` in the system temp dir: `mktemp -t annotate.XXXXXX.md` (Git Bash \/ WSL) or `New-TemporaryFile` renamed to `.md` (PowerShell).\n   - Write into it:\n\n     ````markdown\n     # `<original-path>`\n\n     ```<lang>\n     <file contents verbatim>\n     ```\n     ````\n\n     `<lang>` is the language tag inferred from the original file's extension (see table). Omit the tag entirely for unknown extensions.\n   - Invoke the `plannotator-annotate` skill on the temp file path.\n   - **Treat returned annotations as if they referred to the original file.** When you address them \u2014 edits, follow-ups, mental model \u2014 the original path is the source of truth. The temp `.md` is a presentation surface only.\n   - Delete the temp file when done (success, failure, or no annotations). Use a `trap`\/`try-finally` so cleanup runs even on errors.\n\n## Extension \u2192 language tag\n\n| Extension(s) | Tag |\n|---|---|\n| `.py` | `python` |\n| `.js`, `.mjs`, `.cjs` | `javascript` |\n| `.ts` | `typescript` |\n| `.tsx`, `.jsx` | `jsx` |\n| `.rs` | `rust` |\n| `.go` | `go` |\n| `.java` | `java` |\n| `.kt`, `.kts` | `kotlin` |\n| `.cs` | `csharp` |\n| `.cpp`, `.cc`, `.cxx`, `.hpp`, `.h` | `cpp` |\n| `.c` | `c` |\n| `.sh`, `.bash` | `bash` |\n| `.ps1` | `powershell` |\n| `.json` | `json` |\n| `.yaml`, `.yml` | `yaml` |\n| `.toml` | `toml` |\n| `.xml` | `xml` |\n| `.css`, `.scss` | `css` |\n| `.sql` | `sql` |\n| `.rb` | `ruby` |\n| `.php` | `php` |\n| `.swift` | `swift` |\n| `.ahk` | `autohotkey` |\n| `.lua` | `lua` |\n| `.gradle` | `groovy` |\n| `.dockerfile`, `Dockerfile` | `dockerfile` |\n\nUnknown extension: emit a bare ` ``` ` fence with no language tag.\n\n## Notes\n\n- Do not transform or summarize the file content \u2014 copy it byte-for-byte into the fence.\n- For very large files (> ~1 MB), warn the user before proceeding \u2014 Plannotator's UI may struggle.\n- Binary files are out of scope \u2014 refuse if the file is not plain text.\n","use_cases":["Annotate code files (e.g., Python, JavaScript, TypeScript) in Plannotator","Add comments or notes to configuration files (e.g., JSON, YAML, TOML) using a temporary Markdown wrapper","Review and annotate large text files with warnings for potential UI performance issues"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/AnotherSava\/claude-code-common\/blob\/1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93\/claude\/skills\/annotate\/SKILL.md","source_commit":"1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93","license":null,"version":null,"listing_approved_at":"2026-12-01","created_at":"2026-11-30T08:07:40.000000Z","updated_at":"2026-12-01T12:48:20.000000Z","seo_title":"Annotate Files in Plannotator","seo_description":"Annotate any plain text file using Plannotator's browser UI. Non-Markdown\/HTML files are wrapped in a temporary Markdown file for annotation.","seo_keywords":["annotate file","plannotator annotate","code annotation","file annotation tool","markdown annotation","temporary markdown file"]}}