agentleFS
DeepSeekKnown publisherdeepseek-ai/deepseek-harness/.agents/skills/dsh-cua-macos-signing/SKILL.md

dsh-cua-macos-signing

Skill276k starsChanged 3 months 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.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about deepseek-ai/deepseek-harness

The biggest 5 of 74 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 74

Talked about on GitHub, Bluesky, the web and Hacker News (74 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 12

7 more on Bluesky

On the web · 10

5 more on the web

On Hacker News · 2

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
  1. Distinctive:

    Run from a repository checkout on macOS with the selected Apple command-line tools.

    line 26
  2. Distinctive:

    If an existing record is damaged or its keychain/certificate is missing, setup stops.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 setup

The 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.py

It 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 remove

Use 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.