/itixo-component-library:unlock-itixo-packagesfrom itixo-component-library
Set up a developer machine so npm can download @itixo packages (such as @itixo/component-library) from GitHub Packages — classic personal access token with read:packages, SSO authorization, and storing it in the user-level `~/.npmrc`. Use when a developer is new on a project, runs `npm install` / `pnpm install` for the first time, or the install fails on an @itixo package — 401 "authentication token not provided", "User cannot be authenticated with the token provided", 404 from registry.npmjs.org, or questions about PAT tokens, `~/.npmrc`, SSO authorization, or a hanging `npm login`. Trigger on indirect phrasing too — "I can't install the project", "npm can't find @itixo", "how do I get access to our packages".
Ships in itixo-component-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
@itixo packages on this machineThis skill is about the developer's machine: giving npm a credential so the project's normal install command can download @itixo/* packages from GitHub Packages (ITIXO organization). It does not change the project. The project side — the @itixo:registry scope mapping in the project .npmrc, installing the library, the stylesheet, and ComponentLibraryProvider — belongs to the add-component-library-to-project skill.
Run these from the project root. None of them print the token.
npm config get @itixo:registry
npm whoami --registry=https://npm.pkg.github.com
npm config get @itixo:registry prints undefined — npm does not know where @itixo/* lives. The project is missing its scope mapping; use the add-component-library-to-project skill for that, then come back.npm whoami prints a GitHub username — the credential works; the problem is elsewhere. Fails with 401 — continue below.Never cat the user's ~/.npmrc or echo its contents — it holds their token. To check whether a token line exists at all, count matches without printing them: grep -c "npm.pkg.github.com/:_authToken" ~/.npmrc.
This skill ships the same setup script in two versions — scripts/unlock-itixo-packages.sh (bash, macOS/Linux; needs curl) and scripts/unlock-itixo-packages.ps1 (PowerShell, Windows; Windows PowerShell 5.1 or PowerShell 7+). It walks the developer through both steps below and handles the parts people get wrong:
read:packages pre-selected,ITIXO via Configure SSO before asking for it,read:packages, missing SSO authorization (it prints GitHub's authorization link and re-checks after the developer confirms), and access to @itixo/component-library,npm.pkg.github.com token line in the user-level npm config (~/.npmrc, or NPM_CONFIG_USERCONFIG) and keeps everything else.The script needs an interactive terminal and the developer's own token, so do not run it yourself. Give the user the absolute path of the matching script inside this skill's directory and tell them to run it in their own terminal:
# macOS / Linux
bash <skill-directory>/scripts/unlock-itixo-packages.sh
# Windows
powershell -ExecutionPolicy Bypass -File <skill-directory>\scripts\unlock-itixo-packages.ps1
-ExecutionPolicy Bypass applies only to this one run, so the script works even where the machine policy blocks unsigned scripts.
When it finishes, continue with 3. Confirm. The manual steps below are the fallback when neither script can run.
The developer creates a classic Personal Access Token on GitHub: Settings → Developer settings → Personal access tokens → Tokens (classic).
read:packages.ITIXO organization. Always tell the user about this step — without it GitHub rejects the token even though it looks correct.The token is the developer's personal secret. Never generate, guess, or ask the user to paste it into the chat — give them the script or the commands below and let them run them in their own terminal.
Do not suggest npm login --scope=@itixo --registry=https://npm.pkg.github.com — it hangs indefinitely against GitHub Packages and never finishes. If the user is stuck in it, tell them to cancel with Ctrl+C and store the token as below.
Store the token in the user-level ~/.npmrc (never the project one — that file is committed). Read it from a hidden prompt, so the token never appears on the command line or in shell history:
# macOS / Linux
printf "GitHub token: "; read -rs NPM_TOKEN; echo
npm config set --location=user "//npm.pkg.github.com/:_authToken" "$NPM_TOKEN"
unset NPM_TOKEN
# Windows
$token = [Net.NetworkCredential]::new("", (Read-Host "GitHub token" -AsSecureString)).Password
npm config set --location=user "//npm.pkg.github.com/:_authToken" $token
Remove-Variable token
npm config set replaces an existing token line and keeps the rest of the file. Don't append the line by hand with echo >> — on Windows, Windows PowerShell writes UTF-16, which npm cannot read.
Keep the token out of the project .npmrc and out of any Docker image layer. For Dockerfile and CI wiring, point the user to Consuming the Packages in the library repository wiki.
npm whoami --registry=https://npm.pkg.github.com
npm view @itixo/component-library version
A username and a version number mean access works. Then run the project's usual install command (npm install, pnpm install, …).
| Symptom | Cause |
|---|---|
404 for @itixo/... against registry.npmjs.org | The project's @itixo:registry scope mapping is missing — see add-component-library-to-project |
401 authentication token not provided | No token for npm.pkg.github.com in ~/.npmrc |
401 User cannot be authenticated with the token provided | Malformed token — usually a placeholder such as <PAT_TOKEN> copied along with it, angle brackets included |
| 401 / 403 with a token that looks right | Token is fine-grained instead of classic, lacks read:packages, is expired, or is not SSO-authorized for ITIXO |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/add-component-library-to-projectAdd @itixo/component-library to a React project — the `@itixo:registry` scope mapping in the project `.npmrc`, installing the package with tailwindcss 4, importing the library stylesheet into the global CSS, and mounting ComponentLibraryProvider with its config options. Use when a project does not have @itixo/component-library yet, when setting up a new ITIXO frontend, when the project `.npmrc` lacks the @itixo scope mapping (404 from registry.npmjs.org), when library components render unstyled, or when ComponentLibraryProvider is missing or misconfigured. Trigger on indirect phrasing too — "add our component library here", "set up the design system in this app", "wire up the provider", "components have no styles"./itixo-component-libraryHow to consume the @itixo/component-library npm package inside an external React app — DashboardLayout shell, design tokens, styling rules, and the component/prop reference. For adding the library to a project (scope mapping, install, stylesheet, ComponentLibraryProvider), use add-component-library-to-project; if npm cannot download the package on this machine, use unlock-itixo-packages. Use whenever an ITIXO app imports, themes, or upgrades @itixo/component-library, or whenever the user mentions ITIXO components, DashboardLayout, GenericTable, or design tokens. Trigger on indirect phrasing too — "add a button to match our other apps", "set up our shared layout", "what props does X take", "how do I theme this", "wire up the sidebar / breadcrumbs / waffle menu". When in doubt, trigger.npx claudepluginhub itixo/itixo-marketplace --plugin itixo-component-library