Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/managing-nono-profiles/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Profiles that serve a single employer or employer project are named `work-{work_

1. Add the profile to `private_dot_config/nono/profiles/` as `work-{work_name}-<profile>.jsonc`, with the same `meta.name`. List `work-{work_name}-common` first in `extends`, followed by the personal profiles the project needs.
2. Make sure `.chezmoiignore` has a block that ignores `.config/nono/profiles/work-{work_name}-*` unless `personal.work_env` is true and `personal.work_name` matches. Each employer needs one block, not one entry per profile.
3. Add the launcher function to the matching agent file in `private_dot_work/private_{work_name}/agents/shell/`, calling the shared helper with the profile name (for example `_claude_nono work-sedg-claude-code-energy-runtime`).
3. Add the launcher function to the matching agent file in `private_dot_work/private_{work_name}/agents/shell/`, calling the launcher helper that file already uses with the profile name (for example `_claude_nono work-sedg-claude-code-energy-runtime`). An employer file may wrap the shared helper, for example to preload extra SSH keys, so do not bypass its wrapper.
4. For a new employer launcher file, source it from `private_dot_work/private_{work_name}/zsh/dot_zshrc.tmpl` inside the existing `command -v nono` block.

Each employer project gets its own profile and launcher; there are no employer variants of the general launchers such as `claude-go`. `work-{work_name}-common` is agent-neutral: it holds the access every project of that employer needs regardless of agent (employer domains, credentials, tool config), extends nothing, and is shared by employer profiles of any agent. Put agent-specific employer access in a separate `work-{work_name}-<agent>-common` profile. Keep employer access out of personal profiles such as `my-claude-code`.
Expand Down
5 changes: 5 additions & 0 deletions private_dot_config/nono/profiles/claude-code-python.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"meta": {
"name": "claude-code-python",
"description": "Profile for developing Python applications with Claude Code"
},
"filesystem": {
"read": [
"$HOME/Library/Application Support/pypoetry"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "../schemas/nono-profile.schema.json",
"extends": [
"work-sedg-common",
"claude-code-python",
"claude-code-node"
],
"meta": {
"name": "work-sedg-claude-code-edge-metadata",
"description": "Profile for developing the Edge Metadata project with Claude Code"
}
}
10 changes: 7 additions & 3 deletions private_dot_config/nono/profiles/work-sedg-common.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
"$HOME/Library/Application Support/glab-cli"
],
"read_file": [
"$XDG_DATA_HOME/.atlassian-token" // Atlassian's API token - For agents
"$XDG_DATA_HOME/.atlassian-token", // Atlassian's API token - For agents
"$HOME/.ssh/id_rsa.pub" // Lets ssh match the host agent's RSA key for Azure DevOps auth
],
"bypass_protection": [
"$HOME/.azure"
"$HOME/.azure",
"$HOME/.ssh/id_rsa.pub"
],
"suppress_save_prompt": [
"$HOME/Projects/sedg",
Expand All @@ -34,7 +36,9 @@
"balena.io",
"docs.balena.io",
"balena-cloud.com",
"edge-controller-2.internal.hark.network"
"edge-controller-2.internal.hark.network",
"docker-esh.solaredge.com",
"seil-nexus-rnd.solaredge.com"
]
}
}
16 changes: 12 additions & 4 deletions private_dot_work/private_sedg/agents/shell/claude.zsh
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
function claude-sedg() { _claude_nono work-sedg-claude-code "$@" }
# Azure DevOps SSH auth uses the RSA key, so make sure the host agent holds it.
function _sedg_claude_nono() {
_nono_agent_ensure_ssh_signing_key "$HOME/.ssh/id_rsa.pub" "$HOME/.ssh/id_rsa"
_claude_nono "$@"
}

function claude-energy-runtime() { _claude_nono work-sedg-claude-code-energy-runtime "$@" }
function claude-sedg() { _sedg_claude_nono work-sedg-claude-code "$@" }

function claude-inverter-driver() { _claude_nono work-sedg-claude-code-inverter-driver "$@" }
function claude-energy-runtime() { _sedg_claude_nono work-sedg-claude-code-energy-runtime "$@" }

function claude-lcp-docs() { _claude_nono work-sedg-claude-code-lcp-docs "$@" }
function claude-inverter-driver() { _sedg_claude_nono work-sedg-claude-code-inverter-driver "$@" }

function claude-lcp-docs() { _sedg_claude_nono work-sedg-claude-code-lcp-docs "$@" }

function claude-edge-metadata() { _sedg_claude_nono work-sedg-claude-code-edge-metadata "$@" }
Loading