- 服务对象为 onevcat:资深 iOS 开发者,技术力爆炸,所以不需要废话。重视 “Slow is Fast”、推理质量、抽象与长期可维护性。github.com/onevcat, onevcat.com, onev.cat, onev.dev, x.com/onevcat 等都视为用户相关
- 代码、注释、标识符、提交信息及代码块内容用标准/简洁/明确的 English。技术文档优先使用 English;若文档现有中文语境,则正文中文、代码块 English。English 遵守 ASD-STE100 Simplified Technical English (STE)。
- 对需要说明结论、方案或决策的任务,按“直接结论 → 简要推理 → 可选方案 → 可执行下一步”组织,不要长篇大论,不要事无巨细;简单确认、闲聊或一行答案直接回答。
- 在修改文件时,使用待修改文件中使用的语言,切忌中英文混杂。
- 处理 GitHub 相关操作优先使用
ghCLI。 - 目标:作为强推理、强规划的编码助手,首要目标是完成任务。尽量一次到位,减少无谓澄清,只在明确被提问时才解释技术细节。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "kanagawa-terminal", | |
| "vars": { | |
| "sumiInk0": "#16161D", | |
| "sumiInk3": "#1F1F28", | |
| "sumiInk5": "#363646", | |
| "sumiInk6": "#54546D", | |
| "waveBlue1": "#223249", | |
| "winterBlue": "#252535", | |
| "winterGreen": "#2B3328", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| # Benchmark the full `make build-app` and `make test-app` pipelines, | |
| # with per-phase timing for deps vs xcodebuild. | |
| # | |
| # Usage: | |
| # ./scripts/benchmark-build.sh <label> | |
| # | |
| # Examples: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ argue git:(master) npx argue run --task "研究这个 issue 的解法:https://github.com/onevcat/argue/issues/22" --action "根据讨论结 果,实际解决这个issue,开PR" --verbose | |
| [argue] run started | |
| config: /Users/onevcat/.config/argue/config.json | |
| requestId: argue_1775868590900 | |
| task: 研究这个 issue 的解法:https://github.com/onevcat/argue/issues/22 | |
| agents: claude-agent, codex-agent | |
| rounds: 2..3 | composer: representative | |
| events: /Users/onevcat/.argue/output/argue_1775868590900/events.jsonl | |
| [argue] initial#0 dispatched -> claude-agent, codex-agent | |
| [argue] initial#0 codex-agent responded (claims+6, judgements=0, votes=0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"label":"Coverage","message":"61.5%","schemaVersion":1,"color":"yellow"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct ContentView: View { | |
| @State var offset: CGFloat = 0.0 | |
| @State var previousOffset: CGFloat = 0.0 | |
| init() { | |
| let appearance = UINavigationBarAppearance() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```swift | |
| actor GiftCache { | |
| private(set) var cachedGifts: [GiftId: CachedGift] = [:] | |
| // this method would be caller by other parts | |
| func add(gift: CachedGift) { | |
| cachedGifts[gift.giftId] = gift | |
| //... | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://github.com/pointfreeco/swift-composable-architecture/discussions/488#discussioncomment-591715 | |
| @propertyWrapper | |
| public struct CoW<T> { | |
| private final class Ref { | |
| var val: T | |
| init(_ v: T) { val = v } | |
| } | |
| private var ref: Ref |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protocol P: AnyObject { } | |
| class A: P {} | |
| Runtime.classes(conformTo: P.Type.self) // [MyApp.A] | |
| class Runtime { | |
| public static func allClasses() -> [AnyClass] { | |
| let numberOfClasses = Int(objc_getClassList(nil, 0)) | |
| if numberOfClasses > 0 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| protocol DefaultValue { | |
| associatedtype Value: Decodable | |
| static var defaultValue: Value { get } | |
| } | |
| @propertyWrapper | |
| struct Default<T: DefaultValue> { | |
| var wrappedValue: T.Value |
NewerOlder