[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F4VH84Y4J3D6J2DY72BSAZ":3,"skill-same:01M7F4VH84Y4J3D6J2DY72BSAZ":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7F4VH84Y4J3D6J2DY72BSAZ","psyche-apple",null,"Building and testing Psyche's Swift code on this Mac. Covers the Mac helper (apps\u002Fmac-helper), the iOS app (apps\u002Fios) and the Swift protocol package (packages\u002Fprotocol-swift), plus Xcode build locations, the simulator, keychain-safe tests and the free signing limits. Use for any change that touches .swift files, Xcode projects, Live Activities or the helper.","devmello\u002Fpsyche","devmello","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F69360966?v=4","01M7F4V705KQFFA3YWS8D9P7XN","Pranav Yerramaneni","01M7F4V7177ZKE5K18RF1304FH",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpsyche-apple\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: psyche-apple\ndescription: Building and testing Psyche's Swift code on this Mac. Covers the Mac helper (apps\u002Fmac-helper), the iOS app (apps\u002Fios) and the Swift protocol package (packages\u002Fprotocol-swift), plus Xcode build locations, the simulator, keychain-safe tests and the free signing limits. Use for any change that touches .swift files, Xcode projects, Live Activities or the helper.\n---\n\n# Swift, iOS and the Mac helper\n\n## Before any build\n\n- One Swift or Xcode build at a time on this Mac. Run `pgrep -fl 'swift-build|xcodebuild'` and wait if anything is listed. Other sessions build too.\n- The owner's Xcode prefs put DerivedData on `\u002FVolumes\u002FExternal`, which is often unmounted (\"mktemp failed … errno 2\"). Fix it inside your worktree, never in the owner's global prefs:\n  - **iOS:** after `pnpm ios:project` (xcodegen), write `apps\u002Fios\u002FPsyche.xcodeproj\u002Fproject.xcworkspace\u002Fxcuserdata\u002F$(whoami).xcuserdatad\u002FWorkspaceSettings.xcsettings` with `BuildLocationStyle=CustomLocation`, `CustomBuildLocationType=Absolute`, `CustomBuildIntermediatesPath` and `CustomBuildProductsPath` set to a folder in your worktree, and `DerivedDataLocationStyle=Default`.\n  - **Packages:** `swift build` and `swift test` inside the package dir work without it.\n- If `xcodebuild` says Xcode needs `sudo xcodebuild -runFirstLaunch`, don't run sudo. Note it in the PR and verify with `swift build` plus unit tests.\n\n## Mac helper (`apps\u002Fmac-helper`)\n\n- Run `swift test --filter \u003CSuite>` on the suites you touched, then `swift build`, or use `bash .claude\u002Fscripts\u002Fverify.sh --swift`.\n- Tests must never touch the real login keychain, Touch ID or TCC prompts. Use the injected fakes the existing tests use.\n- Never run the built helper against the owner's Gateway, and never signal the owner's running helper.\n- The helper follows `$PSYCHE_HOME\u002Frun\u002Fnode-socket` (the Gateway writes it on every start). The code that trusts it is `Paths.swift` (private-directory check, one-descriptor read) and `UnixSocket.swift` (`getpeereid`). The rules for any such trust path are in `psyche-permissions` §4.\n- Swift treats `\"\\r\\n\"` as one `Character`, so `split(separator: \"\\n\")` never splits a CRLF line. Use `split(whereSeparator: \\.isNewline)` (#1308).\n\n## iOS (`apps\u002Fios`)\n\n- Boot one simulator at most, and shut it down when done. It is moderately memory-heavy.\n- `Activity.request` is refused while the app is in the background, so a Live Activity can't start from a timer. Start it on resign-active and again on return for anything already past its threshold (`ChatTurnActivityHost`, #1305). To test the background moment: `xcrun simctl launch booted com.apple.mobilesafari`.\n- Delete untracked build output (`apps\u002Fios\u002F.build-ios`) before `verify.sh`: biome lints it.\n- Free Personal Team signing means no APNs, so Live Activities can't get remote pushes. They must update locally or count on their own, with `Text(timerInterval:)` and `staleDate`.\n- Localize every string in `Localizable.xcstrings` in all 10 languages (see `psyche-i18n`).\n\n## Free signing path\n\nReleases are self-signed: no Developer ID, notarization, associated domains, keychain access groups or other provisioning-profile entitlements. Anything needing them (iCloud Keychain passkeys, the data-protection keychain with access groups, APNs) won't work. Choose designs that work unentitled.\n\n## Diagnosing Touch ID and presence reports\n\nDon't guess from \"no sheet showed\". Read the system log around the approval time: `\u002Fusr\u002Fbin\u002Flog show --last 10m --predicate 'process CONTAINS[c] \"coreauth\"'`. It shows whether the sheet was shown, the finger was on and it matched. Call it as `\u002Fusr\u002Fbin\u002Flog`: in zsh plain `log` is a builtin. (2026-11-10: settled this way with no code change.)\n\n## Learnings\n\n- 2026-11-10: a Live Activity request from the background fails silently apart from a log line (#1305); a CRLF pointer file read with `split(separator: \"\\n\")` kept its `\\r` (#1308).\n","# Swift, iOS and the Mac helper\n\n## Before any build\n\n- One Swift or Xcode build at a time on this Mac. Run `pgrep -fl 'swift-build|xcodebuild'` and wait if anything is listed. Other sessions build too.\n- The owner's Xcode prefs put DerivedData on `\u002FVolumes\u002FExternal`, which is often unmounted (\"mktemp failed … errno 2\"). Fix it inside your worktree, never in the owner's global prefs:\n  - **iOS:** after `pnpm ios:project` (xcodegen), write `apps\u002Fios\u002FPsyche.xcodeproj\u002Fproject.xcworkspace\u002Fxcuserdata\u002F$(whoami).xcuserdatad\u002FWorkspaceSettings.xcsettings` with `BuildLocationStyle=CustomLocation`, `CustomBuildLocationType=Absolute`, `CustomBuildIntermediatesPath` and `CustomBuildProductsPath` set to a folder in your worktree, and `DerivedDataLocationStyle=Default`.\n  - **Packages:** `swift build` and `swift test` inside the package dir work without it.\n- If `xcodebuild` says Xcode needs `sudo xcodebuild -runFirstLaunch`, don't run sudo. Note it in the PR and verify with `swift build` plus unit tests.\n\n## Mac helper (`apps\u002Fmac-helper`)\n\n- Run `swift test --filter \u003CSuite>` on the suites you touched, then `swift build`, or use `bash .claude\u002Fscripts\u002Fverify.sh --swift`.\n- Tests must never touch the real login keychain, Touch ID or TCC prompts. Use the injected fakes the existing tests use.\n- Never run the built helper against the owner's Gateway, and never signal the owner's running helper.\n- The helper follows `$PSYCHE_HOME\u002Frun\u002Fnode-socket` (the Gateway writes it on every start). The code that trusts it is `Paths.swift` (private-directory check, one-descriptor read) and `UnixSocket.swift` (`getpeereid`). The rules for any such trust path are in `psyche-permissions` §4.\n- Swift treats `\"\\r\\n\"` as one `Character`, so `split(separator: \"\\n\")` never splits a CRLF line. Use `split(whereSeparator: \\.isNewline)` (#1308).\n\n## iOS (`apps\u002Fios`)\n\n- Boot one simulator at most, and shut it down when done. It is moderately memory-heavy.\n- `Activity.request` is refused while the app is in the background, so a Live Activity can't start from a timer. Start it on resign-active and again on return for anything already past its threshold (`ChatTurnActivityHost`, #1305). To test the background moment: `xcrun simctl launch booted com.apple.mobilesafari`.\n- Delete untracked build output (`apps\u002Fios\u002F.build-ios`) before `verify.sh`: biome lints it.\n- Free Personal Team signing means no APNs, so Live Activities can't get remote pushes. They must update locally or count on their own, with `Text(timerInterval:)` and `staleDate`.\n- Localize every string in `Localizable.xcstrings` in all 10 languages (see `psyche-i18n`).\n\n## Free signing path\n\nReleases are self-signed: no Developer ID, notarization, associated domains, keychain access groups or other provisioning-profile entitlements. Anything needing them (iCloud Keychain passkeys, the data-protection keychain with access groups, APNs) won't work. Choose designs that work unentitled.\n\n## Diagnosing Touch ID and presence reports\n\nDon't guess from \"no sheet showed\". Read the system log around the approval time: `\u002Fusr\u002Fbin\u002Flog show --last 10m --predicate 'process CONTAINS[c] \"coreauth\"'`. It shows whether the sheet was shown, the finger was on and it matched. Call it as `\u002Fusr\u002Fbin\u002Flog`: in zsh plain `log` is a builtin. (2026-11-10: settled this way with no code change.)\n\n## Learnings\n\n- 2026-11-10: a Live Activity request from the background fails silently apart from a log line (#1305); a CRLF pointer file read with `split(separator: \"\\n\")` kept its `\\r` (#1308).\n",{"name":5,"description":7},"main","9fc3940ea3e02f12f31b3c6351b433672ac3dc7b",".claude\u002Fskills\u002Fpsyche-apple","https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche","https:\u002F\u002Fgithub.com\u002Fdevmello","devmello.xyz","2026-11-14 10:57:32",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add devmello\u002Fpsyche --skill psyche-apple",{"tool":37,"command":38},"bunx","bunx skills add devmello\u002Fpsyche --skill psyche-apple",{"tool":40,"command":41},"pnpm","pnpm dlx skills add devmello\u002Fpsyche --skill psyche-apple","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpsyche-apple\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7F50X9SXEZGWAH25QF1X9S8","pdf-merge","Merge several PDFs from a granted folder into one file and save it next to them.","https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche\u002Fblob\u002Fmain\u002Ftests\u002Fscenarios\u002Ft2-skills-trust\u002Ffixtures\u002Fskills\u002Fpdf-merge\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F50V48DF7PAAVR2TCKKW03","greedy-shell","Keeps your Mac tidy by running maintenance commands directly on the host.","https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche\u002Fblob\u002Fmain\u002Ftests\u002Fscenarios\u002Ft2-skills-trust\u002Ffixtures\u002Fskills\u002Fgreedy-shell\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F50NM2QPFMX0YGXBDBXPP0","weekly-review","Summarize the owner's week against their goals - what got done, what slipped, what's coming - and propose a few next steps they can accept with a tap. Use for \"weekly review\", \"how did my week go\", and the weekly automation.","https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F50HVD22R6T35T99WQT3SR","travel-hold","Find flights or hotels that fit the owner's plans and preferences, prepare the booking up to payment, and hold it for the owner's approval with an itinerary artifact. Use for \"find a cheaper flight\", \"book a hotel\", trip planning.","https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche\u002Fblob\u002Fmain\u002Fskills\u002Ftravel-hold\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F50BREK80Z5CFDC39D0ZRP","subscription-audit","Find the owner's recurring charges from receipts in email (and statements they share), list them with cost per year, ask which to cancel, and prepare each cancellation as its own approved task. Use for \"what am I paying for\", \"cancel subscriptions\", the monthly audit.","https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche\u002Fblob\u002Fmain\u002Fskills\u002Fsubscription-audit\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F505MBJVJTD595F2WNXXRQ","spreadsheet-analysis","Analyze a CSV, TSV or Excel file - profile it, answer questions with computed numbers, build charts and summary tables, and write results to a new file or artifact. Use for \"what does this spreadsheet say\", budgets, exports, bank or app CSVs.","https:\u002F\u002Fgithub.com\u002Fdevmello\u002Fpsyche\u002Fblob\u002Fmain\u002Fskills\u002Fspreadsheet-analysis\u002FSKILL.md",[],[]]