[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVY11WKMP1YPEETSX4FFH3":3,"skill-same:01M7EVY11WKMP1YPEETSX4FFH3":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7EVY11WKMP1YPEETSX4FFH3","textfile-to-string",null,"Read raw pipe-delimited LMFDB strings from disk. Use whenever the user wants to load data from DATA\u002F as strings, asks \"how do I read a data file\", needs to locate the right file path, or is building a restore\u002Fload pipeline.","tdupu\u002Fagent-skills-public","tdupu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3440403?v=4","01M7EV32X9J0EFE5T4P8TKQTCQ","Taylor Dupuy","01M7EV32XZ1Z4MDBYAFRCJD3BP",0,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fskills\u002Ftextfile-to-string\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: textfile-to-string\ndescription: Read raw pipe-delimited LMFDB strings from disk. Use whenever the user wants to load data from DATA\u002F as strings, asks \"how do I read a data file\", needs to locate the right file path, or is building a restore\u002Fload pipeline.\n---\n\n# textfile-to-string\n\n**Purpose:** Locate the right DATA\u002F file and return the pipe-delimited line(s) as Magma strings. These strings can then be passed to `\u002Fstring-to-lmfdb-object`.\n\n## Step 1 — Find the path\n\n```magma\nSetLMFDBRootFolder(\".\");\npath := get_lmfdb_clifford_order_path(cl);          \u002F\u002F DATA\u002Forders\u002F2.1\npath := get_lmfdb_sl2_path(cl);                     \u002F\u002F DATA\u002Fsl2\u002F2.1\npath := get_lmfdb_gamma0_path2(SL2O, alpha);        \u002F\u002F DATA\u002Fgamma0\u002F\u003Corder>\u002F\u003Cgamma0_label>\npath := get_lmfdb_hecke_path(MS, beta);             \u002F\u002F DATA\u002Fgamma0_hecke\u002F\u003Corder>\u002F\u003Cgamma0_label>\npath := get_lmfdb_conj_intersection_path(X);        \u002F\u002F DATA\u002Fconj_intersection\u002F\u003Corder>\u002F\u003Csigma>\u002F\u003Calpha>\n```\n\n## Step 2 — Read and split\n\n```magma\n\u002F\u002F Multi-line files (orders, sl2): one object per line\nlines := [H : H in Split(Read(path), \"\\n\") | #H gt 0];\n\n\u002F\u002F Single-object files (gamma0 v2, CI, hecke)\nlines := [H : H in Split(Read(path), \"\\n\") | #H gt 0];\nassert #lines eq 1;\nline  := lines[1];\n```\n\n## Filter by label (multi-line files)\n\n```magma\ntarget := \"2.1.m4.1W6TEV\";\nmatched := [l : l in lines | Split(l, \"|\")[\u003Clabel_col_index>] eq target];\n```\n\nThe label is always the first alphabetical attribute — check `*_ATTRS` for the column index.\n\n## Checking existence before reading\n\n```magma\nif OpenTest(path, \"r\") then\n    lines := ...\nelse\n    \u002F\u002F file does not exist\nend if;\n```\n\n## Edge cases\n\n- Empty trailing newlines from `Split` must be filtered (`| #H gt 0`).\n- `Read(path)` errors if the file does not exist — guard with `OpenTest`.\n- For CI directories (all alphas for a given sigma), use `get_lmfdb_conj_intersection_dir` + `Pipe(\"ls ...\")` to enumerate files.\n- `SetColumns(0)` is called inside path intrinsics; call it yourself if building a path manually.\n","# textfile-to-string\n\n**Purpose:** Locate the right DATA\u002F file and return the pipe-delimited line(s) as Magma strings. These strings can then be passed to `\u002Fstring-to-lmfdb-object`.\n\n## Step 1 — Find the path\n\n```magma\nSetLMFDBRootFolder(\".\");\npath := get_lmfdb_clifford_order_path(cl);          \u002F\u002F DATA\u002Forders\u002F2.1\npath := get_lmfdb_sl2_path(cl);                     \u002F\u002F DATA\u002Fsl2\u002F2.1\npath := get_lmfdb_gamma0_path2(SL2O, alpha);        \u002F\u002F DATA\u002Fgamma0\u002F\u003Corder>\u002F\u003Cgamma0_label>\npath := get_lmfdb_hecke_path(MS, beta);             \u002F\u002F DATA\u002Fgamma0_hecke\u002F\u003Corder>\u002F\u003Cgamma0_label>\npath := get_lmfdb_conj_intersection_path(X);        \u002F\u002F DATA\u002Fconj_intersection\u002F\u003Corder>\u002F\u003Csigma>\u002F\u003Calpha>\n```\n\n## Step 2 — Read and split\n\n```magma\n\u002F\u002F Multi-line files (orders, sl2): one object per line\nlines := [H : H in Split(Read(path), \"\\n\") | #H gt 0];\n\n\u002F\u002F Single-object files (gamma0 v2, CI, hecke)\nlines := [H : H in Split(Read(path), \"\\n\") | #H gt 0];\nassert #lines eq 1;\nline  := lines[1];\n```\n\n## Filter by label (multi-line files)\n\n```magma\ntarget := \"2.1.m4.1W6TEV\";\nmatched := [l : l in lines | Split(l, \"|\")[\u003Clabel_col_index>] eq target];\n```\n\nThe label is always the first alphabetical attribute — check `*_ATTRS` for the column index.\n\n## Checking existence before reading\n\n```magma\nif OpenTest(path, \"r\") then\n    lines := ...\nelse\n    \u002F\u002F file does not exist\nend if;\n```\n\n## Edge cases\n\n- Empty trailing newlines from `Split` must be filtered (`| #H gt 0`).\n- `Read(path)` errors if the file does not exist — guard with `OpenTest`.\n- For CI directories (all alphas for a given sigma), use `get_lmfdb_conj_intersection_dir` + `Pipe(\"ls ...\")` to enumerate files.\n- `SetColumns(0)` is called inside path intrinsics; call it yourself if building a path manually.\n",{"name":5,"description":7},"main","8d13efb5e66306aeae6e3b948bc463e7e2db1b65","skills\u002Ftextfile-to-string","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public","https:\u002F\u002Fgithub.com\u002Ftdupu","https:\u002F\u002Ftdupu.github.io\u002Findex.html","Associate Professor, Department of Mathematics and Statistics, University of Vermont --- last updated Fall 2019","2026-11-13 09:07:19",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add tdupu\u002Fagent-skills-public --skill textfile-to-string",{"tool":38,"command":39},"bunx","bunx skills add tdupu\u002Fagent-skills-public --skill textfile-to-string",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tdupu\u002Fagent-skills-public --skill textfile-to-string","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fskills\u002Ftextfile-to-string\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7EW4PT586KKE7VRCAD80Z9K","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7EW4HV5V74AF3PTV8N4T0PS","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7EW4DNKGP5CR1RAJP2J9PHA","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7EW4BA2QP88VBFVXDVJM7XQ","using-superpowers","Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fusing-superpowers\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7EW47F2JG5FBESDJNP3PKMV","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7EW44N8556Y556NX9HJT4KP","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002Ftdupu\u002Fagent-skills-public\u002Fblob\u002Fmain\u002Fsuperpowers\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[]]