[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75PMC78BHNQ0NAMXR3F3K34":3,"skill-same:01M75PMC78BHNQ0NAMXR3F3K34":58},{"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":38,"commitSha":39,"skillDirectory":40,"forksCount":14,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":57},"01M75PMC78BHNQ0NAMXR3F3K34","circular-check",null,"Detect circular imports in src\u002F and report any cycles with fix guidance. Use after a change session as a quality gate, when adding a module that imports several others, or when a dynamic import is used to break a cycle.","Aliendreamer\u002Fai.skills","Aliendreamer","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F26008043?v=4","01M75PJZKADCYNHHZPMW7363F6","Teodor Stefanov","01M75PJZKYGDX0TDM0X5TX24G0",0,"MIT","https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills\u002Fblob\u002Fmain\u002Fskills\u002Fdependencies\u002Fcircular-check\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: circular-check\ndescription:\n  \"Detect circular imports in src\u002F and report any cycles with fix guidance. Use after a change session as a quality\n  gate, when adding a module that imports several others, or when a dynamic import is used to break a cycle.\"\ntype: skill\ndisable-model-invocation: false\nuser-invocable: true\ntags: [react-dev, quality, imports, architecture]\nagents: [claude, codex, cursor, gemini, copilot]\nversion: 0.1.0\nauthor: Aliendreamer\n---\n\n# Circular Dependency Check\n\nDetect circular imports in `src\u002F` and report any cycles with fix guidance.\n\n## When to use\n\n- After every `\u002Fopsx:apply` session (mandatory quality gate)\n- When a new module is added that imports from multiple existing modules\n- When a dynamic import is added as a cycle-breaking workaround — verify it was actually needed\n\n---\n\n## Steps\n\n1. **Run the check**\n\n   ```bash\n   pnpm check:circular\n   ```\n\n   This runs:\n\n   ```text\n   madge --circular --extensions ts,tsx --ts-config tsconfig.json src\u002F\n   ```\n\n   - TypeScript path aliases (`@\u002F`) are resolved via `tsconfig.json`\n   - Dynamic `import()` calls ARE tracked as edges — if a dynamic import forms a cycle, it is still reported\n   - `src\u002Fgql\u002F__generated__\u002F` follows a one-way import pattern and will not produce cycles\n\n2. **Interpret results**\n\n   **No cycles:**\n\n   ```text\n   ✔ No circular dependency found!\n   ```\n\n   Report: \"✓ No circular imports — N files checked.\"\n\n   **Cycles found:**\n\n   ```text\n   ✖ Found N circular dependencies!\n   1) lib\u002Fa.ts > lib\u002Fb.ts > lib\u002Fa.ts\n   ```\n\n   For each cycle, report it and suggest a fix (see below).\n\n3. **Fix guidance — for each reported cycle**\n\n   ### Option A — Extract the shared dependency (preferred)\n\n   The cleanest fix: identify what `b.ts` needs from `a.ts` (or vice versa) and move it to a third file `c.ts` that\n   neither imports. Then both `a.ts` and `b.ts` import from `c.ts`.\n\n   Common pattern: types\u002Finterfaces that are needed by both sides → extract to a `*-types.ts` file.\n\n   ```text\n   Before: a.ts ↔ b.ts (cycle)\n   After:  a.ts → c.ts ← b.ts (no cycle)\n   ```\n\n   ### Option B — Restructure module boundaries\n\n   If the cycle reveals that two modules are too tightly coupled, consider merging them into one or reorganising the\n   dependency direction so it flows one way.\n\n   ### Option C — Dynamic import (last resort only)\n\n   A dynamic `import()` breaks the static import graph but does NOT eliminate the runtime coupling. Use only when:\n   - The import is genuinely lazy (not needed at module initialisation time)\n   - Options A and B were considered and ruled out\n   - **The dynamic import MUST carry an explanatory comment:**\n\n   ```ts\n   \u002F\u002F Dynamic import: breaks the static cycle between device.ts and auth.ts.\n   \u002F\u002F _getStoredDeviceId is only called inside an async function, never at\n   \u002F\u002F module load time, so the deferred resolution is safe.\n   const { _getStoredDeviceId } = await import(\"@\u002Flib\u002Fdb\u002Fauth\");\n   ```\n\n   Without this comment, the next developer will not understand why dynamic import was used and may remove it,\n   re-introducing the cycle.\n\n4. **Report format**\n\n   **Clean:**\n\n   ```text\n   ✓ circular-check — No circular imports (77 files checked)\n   ```\n\n   **Issues found:**\n\n   ```text\n   ✗ circular-check — N cycles detected\n\n   Cycle 1: lib\u002Fapi\u002Fconfig.ts → lib\u002Fapi\u002Fconfig-parser.ts → lib\u002Fapi\u002Fconfig.ts\n   Fix: Extract AppConfig\u002FMainMenuItem to lib\u002Fapi\u002Fconfig-types.ts\n\n   Cycle 2: ...\n   ```\n\n---\n\n## Notes\n\n- **madge tracks dynamic imports** — they are not an automatic exemption. If a dynamic import creates a cycle, it must\n  still be resolved unless Option C is justified and documented.\n- **Type-only imports (`import type`) also form cycles** in madge's graph. The fix is the same: extract the shared type\n  to a neutral file.\n- The `check:circular` script is defined in `package.json`. Do not inline the madge command — use the script so the\n  flags stay in one place.\n","# Circular Dependency Check\n\nDetect circular imports in `src\u002F` and report any cycles with fix guidance.\n\n## When to use\n\n- After every `\u002Fopsx:apply` session (mandatory quality gate)\n- When a new module is added that imports from multiple existing modules\n- When a dynamic import is added as a cycle-breaking workaround — verify it was actually needed\n\n---\n\n## Steps\n\n1. **Run the check**\n\n   ```bash\n   pnpm check:circular\n   ```\n\n   This runs:\n\n   ```text\n   madge --circular --extensions ts,tsx --ts-config tsconfig.json src\u002F\n   ```\n\n   - TypeScript path aliases (`@\u002F`) are resolved via `tsconfig.json`\n   - Dynamic `import()` calls ARE tracked as edges — if a dynamic import forms a cycle, it is still reported\n   - `src\u002Fgql\u002F__generated__\u002F` follows a one-way import pattern and will not produce cycles\n\n2. **Interpret results**\n\n   **No cycles:**\n\n   ```text\n   ✔ No circular dependency found!\n   ```\n\n   Report: \"✓ No circular imports — N files checked.\"\n\n   **Cycles found:**\n\n   ```text\n   ✖ Found N circular dependencies!\n   1) lib\u002Fa.ts > lib\u002Fb.ts > lib\u002Fa.ts\n   ```\n\n   For each cycle, report it and suggest a fix (see below).\n\n3. **Fix guidance — for each reported cycle**\n\n   ### Option A — Extract the shared dependency (preferred)\n\n   The cleanest fix: identify what `b.ts` needs from `a.ts` (or vice versa) and move it to a third file `c.ts` that\n   neither imports. Then both `a.ts` and `b.ts` import from `c.ts`.\n\n   Common pattern: types\u002Finterfaces that are needed by both sides → extract to a `*-types.ts` file.\n\n   ```text\n   Before: a.ts ↔ b.ts (cycle)\n   After:  a.ts → c.ts ← b.ts (no cycle)\n   ```\n\n   ### Option B — Restructure module boundaries\n\n   If the cycle reveals that two modules are too tightly coupled, consider merging them into one or reorganising the\n   dependency direction so it flows one way.\n\n   ### Option C — Dynamic import (last resort only)\n\n   A dynamic `import()` breaks the static import graph but does NOT eliminate the runtime coupling. Use only when:\n   - The import is genuinely lazy (not needed at module initialisation time)\n   - Options A and B were considered and ruled out\n   - **The dynamic import MUST carry an explanatory comment:**\n\n   ```ts\n   \u002F\u002F Dynamic import: breaks the static cycle between device.ts and auth.ts.\n   \u002F\u002F _getStoredDeviceId is only called inside an async function, never at\n   \u002F\u002F module load time, so the deferred resolution is safe.\n   const { _getStoredDeviceId } = await import(\"@\u002Flib\u002Fdb\u002Fauth\");\n   ```\n\n   Without this comment, the next developer will not understand why dynamic import was used and may remove it,\n   re-introducing the cycle.\n\n4. **Report format**\n\n   **Clean:**\n\n   ```text\n   ✓ circular-check — No circular imports (77 files checked)\n   ```\n\n   **Issues found:**\n\n   ```text\n   ✗ circular-check — N cycles detected\n\n   Cycle 1: lib\u002Fapi\u002Fconfig.ts → lib\u002Fapi\u002Fconfig-parser.ts → lib\u002Fapi\u002Fconfig.ts\n   Fix: Extract AppConfig\u002FMainMenuItem to lib\u002Fapi\u002Fconfig-types.ts\n\n   Cycle 2: ...\n   ```\n\n---\n\n## Notes\n\n- **madge tracks dynamic imports** — they are not an automatic exemption. If a dynamic import creates a cycle, it must\n  still be resolved unless Option C is justified and documented.\n- **Type-only imports (`import type`) also form cycles** in madge's graph. The fix is the same: extract the shared type\n  to a neutral file.\n- The `check:circular` script is defined in `package.json`. Do not inline the madge command — use the script so the\n  flags stay in one place.\n",{"name":5,"tags":24,"type":29,"agents":30,"author":9,"version":36,"description":7,"user-invocable":37,"disable-model-invocation":20},[25,26,27,28],"react-dev","quality","imports","architecture","skill",[31,32,33,34,35],"claude","codex","cursor","gemini","copilot","0.1.0",true,"main","4cd6c294735ac014fa15da54a397d33d6cdbed57","skills\u002Fdependencies\u002Fcircular-check","https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills","https:\u002F\u002Fgithub.com\u002FAliendreamer","www.linkedin.com\u002Fin\u002Fteodor-stefanov-205aba174","2026-11-12 22:47:39",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":37},[47,50,53],{"tool":48,"command":49},"npx","npx skills add Aliendreamer\u002Fai.skills --skill circular-check",{"tool":51,"command":52},"bunx","bunx skills add Aliendreamer\u002Fai.skills --skill circular-check",{"tool":54,"command":55},"pnpm","pnpm dlx skills add Aliendreamer\u002Fai.skills --skill circular-check","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills\u002Fblob\u002Fmain\u002Fskills\u002Fdependencies\u002Fcircular-check\u002FSKILL.md",[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M75PQ9W6ZHVTADCMX9JRVEQ8","setup-git-credentials","Use when the user wants Git to stop using a PAT in the remote URL or a plain-text credential store, wants Git Credential Manager (GCM) with OAuth for GitHub, GitLab or Azure DevOps on Ubuntu\u002FDebian or WSL2, or sees 'cannot persist Microsoft authentication token cache securely' \u002F 'using plain-text fallback token cache'. Asks whether this is WSL, which Git hosts and which parts to set up, checks what is already done, sets git config itself after confirmation and hands every sudo or interactive step (apt, gpg, pass init, secret-tool, first sign-in) to the user. Bundles gcm-keyring-session.sh to start or reuse a D-Bus + GNOME Keyring session without systemd. Trigger terms - git credentials, PAT in URL, token in remote, git credential manager, gcm, github auth, gitlab auth, azure devops auth, pass, gpg store, secret service, gnome keyring, msal token cache, wsl git auth.","https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fsetup-git-credentials\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75PQ16N14SH0T44Q8GDXS01","setup-flow","Use when onboarding a repository or agent to the standard development workflow — installs the required skills from the ai.skills store, installs or updates a MANDATORY workflow block in the agent's instruction file (CLAUDE.md, AGENTS.md, GEMINI.md, Copilot or Cursor rules), AND configures .claude\u002Fsettings.json with Serena MCP, sandbox, permissions, hooks, and plugins. Hooks are wired to the context-hooks kit, which speaks once per session instead of injecting text on every turn; re-running replaces earlier inline hooks rather than adding to them. Also writes .vscode\u002Fsettings.json to hide the empty shell dotfiles an agent sandbox leaves in the repo root. Use when setting up a new repo, switching agents, or refreshing the workflow rules.","https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fsetup-flow\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75PPVEK6WWJEBA9PYYR06R6","developer-flow","Use when starting, implementing, or completing any feature, change, or fix in any software project — at feature start, before writing code, and before claiming a change is done, fixed, working, or green. A strict ordered flow with a gate per phase; stack-agnostic and repo-agnostic (OpenSpec optional, gates discovered).","https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fdeveloper-flow\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M75PPPGQP9MV3BAHAP2W2KVV","daily-log-check","Use to check whether everyone on duty filed their Azure DevOps time-log Tasks for a given day, per platform — reports tickets, hours and activities per person against the headcount you give. Fires on \"did everyone log yesterday\", \"check web 4 mobile 3\", \"who is missing for 8.09\", \"daily log check\". Read-only. Org and project come from configuration.","https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fdaily-log-check\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M75PPJFQSRGSRPF8RR0Z8CRS","daily-activity-log","Use at end of day to file the Azure DevOps time-log Tasks — one closed Task per Activity worked that day, Original Estimate in decimal hours, parented to the current sprint's Feature. Fires on \"log my day\", \"fill my tasks\", \"close my daily tasks\", \"I had 2h meetings and 4h development\". Org and project come from configuration.","https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fdaily-activity-log\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M75PPFK8HSW0VB92VRMWAAJE","conventional-commits","Write commit messages that follow the Conventional Commits specification so tooling can derive versions and changelogs.","https:\u002F\u002Fgithub.com\u002FAliendreamer\u002Fai.skills\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002Fconventional-commits\u002FSKILL.md",[],[]]