360 Secure SkillHub
360 安全技能中心

foundation

面向 Swift Foundation 四类高频主题(日期时间格式化、度量与单位格式化、Codable 编码与自定义协议实现、FileManager 应用沙盒目录),按任务把问题路由到 knowledge/foundation/ 下最小必要的知识契约;无匹配契约时停止并报告,不猜测、不回退到通用知识,并列出由其他领域负责的边界主题。v1 为精选子集,非完整 API 参考。

caglarbaranbora
热度 0.00
最近更新 2026-10-18 16:48:05
分类:知识依赖:纯提示词应用场景:概念解释 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add caglarbaranbora/apple-agent-kit/foundation
Metadata
name
foundation
description
Route Swift Foundation framework implementation tasks to the correct Knowledge Contracts -- date/time formatting, measurement and unit formatting, Codable encoding and custom conformance, and FileManager app sandbox directories. Use when working with DateFormatter, ISO8601DateFormatter, Date.FormatStyle, .formatted(), RelativeDateTimeFormatter, Measurement, .converted(to:), MeasurementFormatter, unitStyle, unitOptions, JSONEncoder, Codable, encode(to:), init(from:), CodingKeys, FileManager, Documents directory, Caches directory, Application Support directory, or isExcludedFromBackup. v1 is a curated, highest-usage subset of Foundation -- not an exhaustive API reference.
id
skill.foundation.foundations
title
Foundation — Foundations
version
1.0.0
status
Approved
artifact_type
skill
domain
Foundation
routes
["knowledge.foundation.date-time-formatting","knowledge.foundation.measurement-and-unit-formatting","knowledge.foundation.codable-encoding-and-custom-conformance","knowledge.foundation.filemanager-app-sandbox-directories"]
related
[]
last_updated
"2026-08-08T00:00:00.000Z"

Foundation — Foundations Skill

Purpose

Route Swift Foundation framework implementation tasks to the minimum required Foundation Knowledge Contracts. v1 scope is a deliberately curated, highest-usage subset of four topics — not an exhaustive Foundation API reference.

Routing

Load only the contracts relevant to the task. All paths relative to knowledge/foundation/.

  • DateFormatter, ISO8601DateFormatter, Date.FormatStyle, .formatted(), RelativeDateTimeFormatter, or formatter-reuse performance -> date-time-formatting.md
  • Measurement, .converted(to:), MeasurementFormatter, unitStyle, or unitOptions -> measurement-and-unit-formatting.md
  • JSONEncoder, custom encode(to:)/init(from:) conformance, or CodingKeys for encoding -> codable-encoding-and-custom-conformance.md
  • FileManager, Documents/Caches/Application Support directories, safe file read/write, or isExcludedFromBackup -> filemanager-app-sandbox-directories.md

Never load more than the contracts relevant to the specific question.

Stop Conditions

Stop and report if the requested topic has no matching Knowledge Contract in knowledge/foundation/ — do not guess or fall back to general knowledge.

  • Unit-of-measure copy wording (spelling out vs. abbreviating, spacing, capitalization once a value is already display text) — owned by style-guide.
  • Network-response Codable decoding (JSONDecoder, DecodingError handling for fetched data) — owned by networking.
  • General String/Unicode text processing, NotificationCenter, the Result type, and GCD/DispatchQueue — Deferred; no domain owns them yet.
  • Locale/Bundle localization and translation workflow mechanics — owned by localization.
  • Combine — owned by combine.