// 1. Write test first
func testLoggerWritesToFile() {
let logger = DelamainLogger(path: "/tmp/test.log")
logger.info("test message")
XCTAssertTrue(FileManager.default.fileExists("/tmp/test.log"))
}
// 2. Implement to pass test
public class DelamainLogger {
public func info(_ message: String) {
// Implementation
}
}
Run npx skillmds@latest add yangyuchen-work/swift-logger-package in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Swift 日志包(TDD) It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
YangYuChen-Work (@yangyuchen-work) published this skill. Their other Agent Skills are listed on their SkillMD profile.