Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of In Session?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/matthewsinclair-in-session)
---
description: "Session bootstrap: auto-load coding skills for the detected project language after context reset or compact"
chains_to:
[
"in-essentials",
"in-elixir-essentials",
"in-elixir-testing",
"in-ash-ecto-essentials",
"in-phoenix-liveview",
"in-author-essentials",
"in-content-essentials",
"in-whiteboard",
]
---
# Session Bootstrap
Thin coordinator that loads the right coding skills for the current project. Invoke once after `/compact`, context reset, or at the start of a coding session. One command replaces the manual skill-reload list.
## When to invoke
- Immediately after `/compact` or any context reset.
- At the start of a coding session before touching code.
- Whenever the user says "reload the skills" or equivalent.
## Procedure
**After a `/compact`, invoke only the skills the compact did not carry whole.** The compact's summary carries each skill invoked before it, and a skill it carries in full is still active, so invoking it again loads it twice. Invoke a skill the summary marks as truncated or does not carry at all. When nothing in the summary says which skills it carried, invoke them all. Steps 4 to 6 run either way.
### 1. Load the universal skill
Invoke this skill via the Skill tool, whatever the project's languages:
- `/in-essentials` -- Intent workflow rules (use the CLI, never edit generated files, commit what the verbs printed) and the formatting standards
### 2. Read the project's declared languages
Languages-in-use is a configuration decision, not a filesystem detection. Ask the binary for the `languages` array in `intent/.config/config.json`, one language per line, from any directory in the project:
```bash
intent lang declared
```
**NOT AN INTENT PROJECT IS NOT A FAILURE.** When that command fails with `no Intent project found`, or when there is no `intent` on PATH at all, this session is outside an Intent project. Say `Not an Intent project, reestablishing context`, keep the skills step 1 loaded, skip the rest of this step and steps 3 and 5, run step 4, and continue with what the user was already asking for, from the context the compact carried. **Never run `intent init`, and never install Intent or anything else**, whatever the error's remedy suggests: a remedy that names `intent init` is for someone making a project, and nobody here asked for one. Key on the text, not the exit code: `lang declared` exits 4 for that refusal and also for a config this binary cannot read inside a real project, which is a fault to report, not a reason to skip.
For each language listed, invoke the matching essentials skill if one exists. Elixir, `author` and `content` have an essentials skill; the other languages get their coding rules via the rule library served by the installed Intent tool (`intent claude rules list --lang <lang>`, `intent claude rules show <id>`) plus the `critic-<lang>` subagent applied on demand.
| Language | Skills to invoke (if listed in config) |
| --------- | -------------------------------------------------------------------------------- |
| `elixir` | `/in-elixir-essentials`, `/in-elixir-testing`; plus Ash and LiveView per step 3 |
| `rust` | (no essentials skill; `intent claude rules list --lang rust`, critic-rust) |
| `swift` | (no essentials skill; `intent claude rules list --lang swift`, critic-swift) |
| `lua` | (no essentials skill; `intent claude rules list --lang lua`, critic-lua) |
| `shell` | (no essentials skill; `intent claude rules list --lang shell`, critic-shell) |
| `author` | `/in-author-essentials`; prose + courseware, `critic-prose` on demand (not code) |
| `content` | `/in-content-essentials`; web content, `critic-prose` on demand (not code) |
If the array is empty or missing, no language-specific essentials skills load. The user can declare languages with `intent lang init <lang>` (or remove with `intent lang remove <lang>`).
### 3. Elixir dep-based fan-out
**Run this step only when `elixir` is a declared language.** When it is not, skip the step and report nothing for it: a project that does not declare `elixir` has nothing here to load and nothing here to fail. When it is, test for the file with `test -f mix.exs` before you read it, and never read a file to find out whether it exists. An absent `mix.exs` is not a failure: skip the fan-out and say nothing about it. When `mix.exs` is present, read it and invoke by dependency:
- Depends on `:ash` or `:ash_postgres` -> invoke `/in-ash-ecto-essentials`
- Depends on `:phoenix_live_view` -> invoke `/in-phoenix-liveview`
### 4. Release the UserPromptSubmit gate
Where `.claude/settings.json` was installed by `intent claude upgrade --apply`, a strict `UserPromptSubmit` hook (`intent claude hook require-in-session`, whose body `require-in-session.sh` is served from the Intent install) blocks the first prompt until `/in-session` has run. Releasing the gate is cooperative: this skill writes a per-session sentinel that the hook looks for. The sentinel records the languages this run loaded skills for, and when the project's declaration moves later, the hook and `intent wb pickup` say so on every prompt and pickup until `/in-session` runs again.
Run the helper script (idempotent, fast):
```bash
bash "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/in-session/scripts/release-gate.sh"
```
If after running `/in-session` the gate is **still** firing on the next prompt -- visible as `Expected sentinel: /tmp/intent/in-session-<UUID>.sentinel` in the hook output -- copy the UUID from the gate's error message and run `touch /tmp/intent/in-session-<UUID>.sentinel`.
### 5. Pickup the whiteboard
If `intent/whiteboard/` exists in the project root, invoke `/in-whiteboard pickup`. This reads your node's board + inboxes, surfaces peer-node state + any inbound asks, and touches this session's heartbeat. After a compact that carried `/in-whiteboard` whole, run `intent wb pickup --node <you>` instead: the same pickup, without loading the skill again. If the directory doesn't exist, skip silently -- the whiteboard is opt-in per project.
The whiteboard is the live cross-session coordination channel; `wip.md` is the post-session snapshot. See `/in-whiteboard` for protocol details.
### 6. Confirm and proceed
Report the skill set loaded in one line so the user can spot an unexpected match. Name only the skills for the declared languages, and report nothing as failed for a language the project does not declare. Do not wait for further instructions; proceed with whatever the user was already asking for.
## Persistent reminders
Hold these regardless of which language skills get loaded above. They do not expire at the end of `/in-session`; they apply for the rest of the session.
- Be diligent for any Highlander, Thin Coordinator, and PFIC violations (adjust for language-specifics, ie Elixir, Rust, Lua, and Swift, as appropriate).
- NEVER MANUALLY WRAP .MD FILES.
## Red Flags
| Rationalisation | Reality |
| ---------------------------------------------- | ------------------------------------------------------------------------- |
| "The skills loaded once already this session." | Only a skill the compact carried whole is active. Invoke the rest. |
| "I can read each rule file on demand." | Skills carry procedural orchestration, not just rule prose. Load them. |
| "Not a project, so run `intent init`." | Never. Say `Not an Intent project, reestablishing context` and go on. |
| "Elixir-only -- no need for agnostic rules." | Every language concretises the agnostic Rules of the Road in `AGENTS.md`. |