[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M759SFX8PTY1HRHF6JQ5DM2H":3,"skill-same:01M759SFX8PTY1HRHF6JQ5DM2H":49},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M759SFX8PTY1HRHF6JQ5DM2H","create-research-environment",null,"Scaffold a new research environment — guided interview for research-environment.toml fields, then delegate to `amico env create`. Auto-invoked by the Command Palette's \"New Environment\" command.","harmoniqs\u002Famicode","harmoniqs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F199011497?v=4","01M759PQCJ9Y093EC5HC3344DW","Harmoniqs","01M759PQD5S85W68FZKV3XD1X0",7,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Fskills\u002Fcreate-research-environment\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: create-research-environment\ndescription: Scaffold a new research environment — guided interview for research-environment.toml fields, then delegate to `amico env create`. Auto-invoked by the Command Palette's \"New Environment\" command.\nagents: []\nsurface: public\n---\n\n# Create Research Environment\n\nScaffold a new research environment from the Command Palette (\"Amicode: New\nEnvironment\") or from a chained session spawned by the `create-research-project`\nor `migrate-research-project` skills. The command has already added the\ndirectory to the workspace; this skill interviews the user for the\n`research-environment.toml` fields and delegates to `amico env create` to write\nthe manifest, scaffold the directory tree, and run `git init`.\n\n## When to invoke\n\n- Auto-invoked when the Command Palette's \"New Environment\" command launches a\n  session with `\u002Fcreate-research-environment --path \"\u003Cdir>\"`\n- Chained from `create-research-project` Stage 8 or `migrate-research-project`\n  Phase 6 when the user selects \"Create new\" environment\n- User says \"create an environment,\" \"scaffold an environment,\" or similar\n\n## Arguments\n\nThe session prompt carries:\n\n- `--path \"\u003Cdir>\"` — the absolute path to the environment directory (already\n  selected or created in Finder and added to the workspace)\n- `--bind-project \"\u003Cproject-dir>\"` (optional) — when chained from a project\n  skill, the project directory to auto-bind after creation\n\nParse these from the prompt. If `--path` is missing, ask once via the\n`question` tool.\n\n## Interview (one question at a time)\n\nUse the `question` tool for every question. ONE question per turn.\n\n### Stage 1: environment name (required)\n\nAsk: \"What should I call this environment?\"\n\n`kind: \"text\"`, `options: []`, `default` pre-filled from the directory\nbasename prettified (e.g. `quantum-control-env` → `\"Quantum Control Env\"`).\nThe user can accept or edit. This becomes the `name` field in\n`research-environment.toml`.\n\n### Stage 2: system\u002Fdomain (optional, free text)\n\nAsk: \"What system or domain does this environment cover? (e.g. transmon qubits, protein folding, DFT calculations — or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`. Environments are\ndomain-agnostic — this is free text, not constrained to quantum platforms.\nRecord as `--platform` if provided.\n\n### Stage 3: research field (optional)\n\nAsk: \"What research field? (e.g. quantum-control, materials-science, bioinformatics — or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`. Record as `--field`.\n\n### Stage 4: description (optional)\n\nAsk: \"A one-line description for this environment? (or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`. This is written to the\n`description` field in `research-environment.toml`.\n\n### Stage 5: tags (optional)\n\nAsk: \"Tags for this environment? (comma-separated, e.g. shared, transmon, optimal-control — or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`.\n\n### Stage 6: GitHub remote (optional)\n\nAsk: \"GitHub remote URL for this environment? (e.g. git@github.com:org\u002Fenv.git — or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`. If provided, run\n`git remote add origin \"\u003Curl>\"` in the environment directory after creation.\n\n## Execution\n\nAfter the interview, build the CLI command and run it:\n\n```bash\namico env create \"\u003Cname>\" \\\n  --path \"\u003Cdir>\" \\\n  [--platform \"\u003Csystem>\"] \\\n  [--field \"\u003Cfield>\"] \\\n  [--author \"\u003Clead>\"]\n```\n\nThe `--author` flag is auto-populated from the user's profile\n(`~\u002F.amico\u002Fprofile.json` `name` field) when available — do not ask for it.\n\nThe CLI is idempotent: if `research-environment.toml` already exists in the\ndirectory, it returns `created: false, idempotent: true` and does not\noverwrite. In that case, tell the user the environment already has a manifest\nand offer to open it.\n\nIf a GitHub remote was provided and creation succeeded, run:\n\n```bash\ngit remote add origin \"\u003Curl>\"\n```\n\nin the environment directory (cwd = `\u003Cdir>`). If `origin` already exists, skip\nsilently.\n\nIf tags were provided, write them to `research-environment.toml` after creation\nby reading the file, adding the `tags` array, and writing it back.\n\nIf a description was provided, append it to `research-environment.toml` after\ncreation by reading the file and adding the `description` field.\n\n## After execution\n\n### Standalone post-creation (default)\n\n1. Confirm success: \"Environment scaffolded — `research-environment.toml`\n   written, directories created, git initialized, registered in\n   `~\u002F.amico\u002Fenvironments.toml`.\"\n2. Scan the workspace for research projects that do NOT have an\n   `[environment]` section in their `research-project.toml`. If any exist,\n   offer multi-select binding:\n\n   Use the `question` tool with `multiple: true`:\n   \"These projects in the workspace have no environment — want to bind them?\"\n\n   Options: one per unbound project (label = project name, description = path).\n   Plus a \"Skip\" option.\n\n   For each selected project, run:\n   ```bash\n   amico env bind \"\u003Cslug>\" --path \"\u003Cproject-dir>\"\n   ```\n\n3. If no unbound projects exist, say \"All set — the environment is ready.\"\n\n### Chained post-creation (from project skill)\n\nWhen `--bind-project \"\u003Cproject-dir>\"` was passed in the prompt:\n\n1. Confirm success (same as standalone).\n2. Bind the triggering project directly:\n   ```bash\n   amico env bind \"\u003Cslug>\" --path \"\u003Cproject-dir>\"\n   ```\n3. Tell the user: \"Bound — switch back to the project tab and you're set.\"\n\n## Edge cases\n\n- **Manifest already exists:** Do not overwrite. Tell the user and offer to\n  open the existing `research-environment.toml`.\n- **User cancels mid-interview:** Whatever was collected so far is lost (no\n  partial writes). The directory remains as-is until re-run.\n- **`amico env create` fails:** Surface the error message from the CLI's JSON\n  output and offer to retry.\n- **Nesting guard:** If the target directory is inside a project or another\n  environment, `amico env create` will fail with a nesting error. Surface it\n  clearly: \"Environments and projects must be separate repos — pick a\n  directory outside any existing project or environment.\"\n","# Create Research Environment\n\nScaffold a new research environment from the Command Palette (\"Amicode: New\nEnvironment\") or from a chained session spawned by the `create-research-project`\nor `migrate-research-project` skills. The command has already added the\ndirectory to the workspace; this skill interviews the user for the\n`research-environment.toml` fields and delegates to `amico env create` to write\nthe manifest, scaffold the directory tree, and run `git init`.\n\n## When to invoke\n\n- Auto-invoked when the Command Palette's \"New Environment\" command launches a\n  session with `\u002Fcreate-research-environment --path \"\u003Cdir>\"`\n- Chained from `create-research-project` Stage 8 or `migrate-research-project`\n  Phase 6 when the user selects \"Create new\" environment\n- User says \"create an environment,\" \"scaffold an environment,\" or similar\n\n## Arguments\n\nThe session prompt carries:\n\n- `--path \"\u003Cdir>\"` — the absolute path to the environment directory (already\n  selected or created in Finder and added to the workspace)\n- `--bind-project \"\u003Cproject-dir>\"` (optional) — when chained from a project\n  skill, the project directory to auto-bind after creation\n\nParse these from the prompt. If `--path` is missing, ask once via the\n`question` tool.\n\n## Interview (one question at a time)\n\nUse the `question` tool for every question. ONE question per turn.\n\n### Stage 1: environment name (required)\n\nAsk: \"What should I call this environment?\"\n\n`kind: \"text\"`, `options: []`, `default` pre-filled from the directory\nbasename prettified (e.g. `quantum-control-env` → `\"Quantum Control Env\"`).\nThe user can accept or edit. This becomes the `name` field in\n`research-environment.toml`.\n\n### Stage 2: system\u002Fdomain (optional, free text)\n\nAsk: \"What system or domain does this environment cover? (e.g. transmon qubits, protein folding, DFT calculations — or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`. Environments are\ndomain-agnostic — this is free text, not constrained to quantum platforms.\nRecord as `--platform` if provided.\n\n### Stage 3: research field (optional)\n\nAsk: \"What research field? (e.g. quantum-control, materials-science, bioinformatics — or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`. Record as `--field`.\n\n### Stage 4: description (optional)\n\nAsk: \"A one-line description for this environment? (or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`. This is written to the\n`description` field in `research-environment.toml`.\n\n### Stage 5: tags (optional)\n\nAsk: \"Tags for this environment? (comma-separated, e.g. shared, transmon, optimal-control — or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`.\n\n### Stage 6: GitHub remote (optional)\n\nAsk: \"GitHub remote URL for this environment? (e.g. git@github.com:org\u002Fenv.git — or skip)\"\n\n`kind: \"text\"`, `options: []`, `default: \"skip\"`. If provided, run\n`git remote add origin \"\u003Curl>\"` in the environment directory after creation.\n\n## Execution\n\nAfter the interview, build the CLI command and run it:\n\n```bash\namico env create \"\u003Cname>\" \\\n  --path \"\u003Cdir>\" \\\n  [--platform \"\u003Csystem>\"] \\\n  [--field \"\u003Cfield>\"] \\\n  [--author \"\u003Clead>\"]\n```\n\nThe `--author` flag is auto-populated from the user's profile\n(`~\u002F.amico\u002Fprofile.json` `name` field) when available — do not ask for it.\n\nThe CLI is idempotent: if `research-environment.toml` already exists in the\ndirectory, it returns `created: false, idempotent: true` and does not\noverwrite. In that case, tell the user the environment already has a manifest\nand offer to open it.\n\nIf a GitHub remote was provided and creation succeeded, run:\n\n```bash\ngit remote add origin \"\u003Curl>\"\n```\n\nin the environment directory (cwd = `\u003Cdir>`). If `origin` already exists, skip\nsilently.\n\nIf tags were provided, write them to `research-environment.toml` after creation\nby reading the file, adding the `tags` array, and writing it back.\n\nIf a description was provided, append it to `research-environment.toml` after\ncreation by reading the file and adding the `description` field.\n\n## After execution\n\n### Standalone post-creation (default)\n\n1. Confirm success: \"Environment scaffolded — `research-environment.toml`\n   written, directories created, git initialized, registered in\n   `~\u002F.amico\u002Fenvironments.toml`.\"\n2. Scan the workspace for research projects that do NOT have an\n   `[environment]` section in their `research-project.toml`. If any exist,\n   offer multi-select binding:\n\n   Use the `question` tool with `multiple: true`:\n   \"These projects in the workspace have no environment — want to bind them?\"\n\n   Options: one per unbound project (label = project name, description = path).\n   Plus a \"Skip\" option.\n\n   For each selected project, run:\n   ```bash\n   amico env bind \"\u003Cslug>\" --path \"\u003Cproject-dir>\"\n   ```\n\n3. If no unbound projects exist, say \"All set — the environment is ready.\"\n\n### Chained post-creation (from project skill)\n\nWhen `--bind-project \"\u003Cproject-dir>\"` was passed in the prompt:\n\n1. Confirm success (same as standalone).\n2. Bind the triggering project directly:\n   ```bash\n   amico env bind \"\u003Cslug>\" --path \"\u003Cproject-dir>\"\n   ```\n3. Tell the user: \"Bound — switch back to the project tab and you're set.\"\n\n## Edge cases\n\n- **Manifest already exists:** Do not overwrite. Tell the user and offer to\n  open the existing `research-environment.toml`.\n- **User cancels mid-interview:** Whatever was collected so far is lost (no\n  partial writes). The directory remains as-is until re-run.\n- **`amico env create` fails:** Surface the error message from the CLI's JSON\n  output and offer to retry.\n- **Nesting guard:** If the target directory is inside a project or another\n  environment, `amico env create` will fail with a nesting error. Surface it\n  clearly: \"Environments and projects must be separate repos — pick a\n  directory outside any existing project or environment.\"\n",{"name":5,"agents":24,"surface":25,"description":7},[],"public","main","bf84fdd4c1494800695bd5881702b3118dbf98be","packages\u002Fextension\u002Fskills\u002Fcreate-research-environment",2,"https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode","https:\u002F\u002Fgithub.com\u002Fharmoniqs","harmoniqs.ai","research tools, for researchers, by reseachers","2026-11-12 14:46:24",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add harmoniqs\u002Famicode --skill create-research-environment",{"tool":41,"command":42},"bunx","bunx skills add harmoniqs\u002Famicode --skill create-research-environment",{"tool":44,"command":45},"pnpm","pnpm dlx skills add harmoniqs\u002Famicode --skill create-research-environment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Fskills\u002Fcreate-research-environment\u002FSKILL.md",true,[],[50,57,64,70,77,84],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M759XGHEQRJ1GWZTPRFF9Z1W","malformed","Frontmatter that parses as YAML but is missing the required name field.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fmalformed\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M759XDVQ1PYPMT876X8J21TQ","duplicated","Second skill carrying the duplicated frontmatter name.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fdup-two\u002FSKILL.md",[],[],{"skillNo":65,"name":59,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M759XBZYBHF38JDWSRHAC6E1","First skill carrying the duplicated frontmatter name.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fdup-one\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M759XAQBSP29BKTTXR1WF2D7","drifted","A skill whose API claims have drifted from the fixture packages.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fdrifted\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M759X8CNBPVK98C6M45D0QMB","clean","A clean skill whose every extracted claim resolves against the fixture packages.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fclean\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M759X73H6N2G0VDH8CJ5TF11","broken-paths","A skill with a broken relative link and a broken cited package path.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fbroken-paths\u002FSKILL.md",[],[]]