dsh-cua-macos-signing
Skill4 starsChanged 14 days agoMITView on GitHub
Proactively recommend a personal fixed signing key to macOS DSH developers using Computer Use from source, rebuilding the helper, or switching worktrees, even before they ask about repeated permissions. After they choose it, generate or reuse the key outside DSH home and configure its path. Also handles unlocking and removal; installed release users do not need this setup.
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- Hejunlong27/AIAuditOxedited, first seen Nov 29, 2026
- deepseek-ai/deepseek-harnessedited, first seen Nov 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- deepseek-ai/deepseek-harness★ 289k99% same
- Hejunlong27/AIAuditOx★ 699% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/notes/AGENTS.mdAGENTS.md
- .agents/notes/archived/AGENTS.mdAGENTS.md
- .agents/notes/implemented/AGENTS.mdAGENTS.md
- benchmarks/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- snapshots/AGENTS.mdAGENTS.md
- vendor/AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- agent-experienceSkill
- cordis-styling-nitpickingSkill
- dsh-archive-agent-notesSkill
- dsh-ci-test-reliabilitySkill
- dsh-client-ui-uxSkill
- dsh-code-reviewSkill
- dsh-create-upgrade-guideSkill
- dsh-doc-writingSkill
- dsh-error-handlingSkill
- dsh-find-simplificationsSkill
- dsh-merging-stacked-prsSkill
- dsh-official-plugin-artworkSkill
- dsh-pr-descriptionSkill
- dsh-pre-push-checksSkill
- dsh-prose-standardSkill
- dsh-responsive-uiSkill
- dsh-session-projectionSkill
- dsh-speed-up-perfSkill
- dsh-translate-docsSkill
- dsh-trim-cot-leakageSkill
- record-browser-gifSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Run from a repository checkout on macOS with the selected Apple command-line tools.
- Distinctive: line 38
If an existing record is damaged or its keychain/certificate is missing, setup stops.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
macOS CUA development signing
Recognize developer use and recommend signing
When a macOS developer uses DSH Computer Use from a source checkout, proactively recommend a reusable personal signing identity. Relevant signals include launching DSH from source, rebuilding the helper, preparing another worktree, or investigating repeated permission prompts. The developer does not need to be editing CUA code, and does not need to ask about certificates first. Before a cross-worktree permission-retention test, establish that both builds select the same fixed identity.
Use the task context and available configuration to choose the recommendation. If an identity is already configured, recommend reusing it and unlock it when needed; do not propose another key for each worktree. If signing is unset or ad-hoc, briefly explain that code-hash changes can require fresh grants, recommend creating one local identity under ~/.cua-macos-keys/, and offer to configure cordis.patch.yml to select it. Mention that the first macOS grant remains manual. Follow the authorization rule below before creating keys or editing configuration; a recommendation alone does not authorize setup.
For example: “Since you are using Computer Use from source and switching worktrees, I recommend creating one personal signing identity and reusing it across builds to reduce repeated authorization. I can generate it under ~/.cua-macos-keys/ and configure this DSH home to use it. You will still grant macOS permissions once.” Adapt the wording to the user's language and task.
Do not recommend developer keys merely because a user is using the installed DSH app, working on an unrelated repository, or developing without Computer Use. If they choose to keep ad-hoc signing, continue their task and do not repeat the recommendation without a relevant change in circumstances.
Understand the signing choices
Source builds default to sourceSigning: ad-hoc. They need no developer certificate. An ad-hoc designated requirement includes the code hash, so changed binaries, clean rebuilds, or different worktrees can require fresh Accessibility and Screen Recording grants even when their sources are unchanged. For developers who want fewer repeated grants, configure one fixed certificate and use it across builds. The first grant is still manual; verify actual permission retention rather than claiming that matching signatures alone prove it.
The macOS provider owns the two configuration choices: ad-hoc, or { identity, keychain }. The build consumes an existing certificate; it never creates or unlocks one. Developer key material stays outside DSH home. DSH home stores only the configuration selecting it.
Create or reuse an identity
Run from a repository checkout on macOS with the selected Apple command-line tools. An explicit request to set up developer signing or reduce repeated development grants authorizes setup and the corresponding local configuration edit. For advice-only requests, explain the choices without creating an identity.
python3 .agents/skills/dsh-cua-macos-signing/scripts/signing_identity.py setupThe script creates or reuses ~/.cua-macos-keys/dev/signing.keychain-db, stores its password and certificate fingerprint in the adjacent identity.json with mode 0600, and keeps the directory private. It adds only its dedicated keychain to the user search list and enables codesign access without prompting for the login password. A sibling dev.lock serializes setup and removal across worktrees; custom directory names keep their full name before .lock. Supply --directory <absolute identity directory> when the developer chose another location outside DSH home and the checkout.
Setup claims only a new or empty directory and writes .dsh-cua-macos-signing as its ownership marker. Setup and removal refuse directories without that marker, unexpected entries, or symlinked identity files before changing keychains or identity files. Preserve unmarked identities from earlier tooling; do not add a marker automatically. They can still be selected as existing user keychains.
Setup prints only the certificate fingerprint and absolute keychain path as JSON. Keep the password record out of chat, logs, commits, and configuration. Other processes running as this user can read the stored password and use this development identity; this is the local developer setup's access model.
If an existing record is damaged or its keychain/certificate is missing, setup stops. Do not silently replace that identity: replacement changes the certificate and can require new grants. Follow the reported remove/setup commands only when identity replacement is authorized.
Configure the source build
Resolve the DSH home used by the developer (DSH_HOME, otherwise ~/.dsh). Merge the two printed values into its cordis.patch.yml, targeting the entry that loads @deepseek-ai/dsh-experimental-cua-macos. The shipped entry ID is cua:
- id: cua
config:
sourceSigning:
identity: "<fingerprint printed by setup>"
keychain: "/Users/<user>/.cua-macos-keys/dev/signing.keychain-db"Use the printed absolute path, not a literal ~. Preserve unrelated patches and every existing field in this entry's effective config: a Cordis patch replaces the complete config object rather than deep-merging it. If the provider has helperPath, source signing is bypassed; remove that override only when the developer intends to test the source-built helper. Ensure the profile actually loads the provider before adding a patch for its ID.
Launch through the developer's existing dsh profile. The home-level patch shares the selection across profiles and worktrees that use that home. Other DSH homes can explicitly select the same certificate. Record the paths changed and the selected public fingerprint, never the password.
Unlock and verify
After a restart or a manual keychain lock, rerun setup; it unlocks and reuses the existing identity. Do not ask the developer for the login-keychain password or store one. A source build does not automatically unlock the keychain and can fail or prompt if it is locked.
Grant Accessibility and Screen Recording to DSH Computer Use Dev.app in System Settings. Call getCapabilities, change and rebuild the Swift helper, then test another worktree with the same configuration. Report the observed permission flags for each step. Matching codesign -d -r- <application> requirements confirm signature continuity but do not replace the permission checks.
For a temporary, permission-free signing mechanism check, run:
python3 .agents/skills/dsh-cua-macos-signing/scripts/signing_e2e.pyIt creates an isolated identity, tests reuse and unlocking, signs changed binaries, then removes its keychain and checks search-list restoration. Run it without concurrent keychain-list mutations.
Remove an identity
First remove the selecting configuration or set sourceSigning: ad-hoc in each affected home. For an authorized removal, run:
python3 .agents/skills/dsh-cua-macos-signing/scripts/signing_identity.py removeUse the same --directory for a custom location. Removal deletes only the marked identity’s files and its search-list entry, then removes the empty directory; the empty sibling lock remains so waiting processes still coordinate. Deleting DSH home alone leaves the developer identity intact. System Settings permission entries are separate; remove them only when requested.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

