xcf-quickref

A quick reference for XCF commands that manage Xcode projects, build and run them, inspect the environment, and analyse Swift code. Xcode is Apple's development tool for making apps, and Swift is its programming language.

In plain words
What is it for?
Opening and selecting Xcode projects, granting automation permissions, building and running apps, viewing the current environment or folder, and analysing Swift files.
Why use it?
It gives developers the commands needed to select a project, grant automation access, build it, run it, and inspect code without searching through separate instructions.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/codefreezeai/xcf/xcf-quickref
Clone the repo
git clone --depth 1 https://github.com/CodeFreezeAI/xcf

Made for: Cursor.

Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,969 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00008 $0.01969
Opus 5 $0.00004 $0.00984
Sonnet 5 $0.00002 $0.00394
Haiku 4.5 $0.00001 $0.00197

Measured yesterday against content hash b3ae3d3b4a62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

xcf-quickref scanned grade A with 0 findings against 26 rules in 11 categories โ€” prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency โ€” measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/xcf-quickref.mdc ยท 202 lines

How it starts

The opening of the file, as written. The whole thing โ€” 202 lines โ€” stays where its author put it; the contents beside it link to each section on GitHub.

XCF Quick Reference Guide ๐Ÿš€

๐ŸŽ›๏ธ XCF Core Actions

Permissions & Project Management

Action Description Example Output
grant Grant Xcode automation grant Permissions granted
show List open projects show 1. /path/to/project.xcodeproj
open # Select project open 1 Project selected
current Show selected project current /path/to/current/project

Build & Execute

Action Description Example Output
build Build project build ๐Ÿฆ๐Ÿ“œ Built successfully
run Run project run ๐Ÿฆ๐Ÿ“œ Ran successfully

System & Analysis

Action Description Example Output
env Show environment env [Environment variables]
pwd Show current folder pwd /current/directory
analyze <file> Analyze Swift code analyze main.swift Code analysis report
lz <file> Quick code analysis lz main.swift Condensed analysis

Aliases

  • pwd = dir = path
  • lz = shorthand for analyze

Quick Workflow

grant       # Authorize XCF
show        # List projects
open 1      # Select project
build       # Compile project
run         # Execute project

Code Analysis Workflow

analyze main.swift   # Detailed analysis
lz main.swift        # Quick analysis

๐Ÿ“‹ Core Commands

Activation & Project Management

Command Description Example Output
show List open Xcode projects show 1. /path/to/project.xcodeproj
open # Select project by number open 1 [Selects project]
current Show current project current Current project: /path/to/project.xcodeproj

Build & Run

Command Description Example Output
build Build current project build ๐Ÿฆ๐Ÿ“œ Built successfully
run Run current project run ๐Ÿฆ๐Ÿ“œ Ran successfully

Read the full file on GitHub ยท 202 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen ยท 202 lines ยท 8 tokens per session scan A b3ae3d3b4a62

Subscribe to this mod's changes

xcf-quickref is a cursor rule published in the GitHub repository CodeFreezeAI/xcf (12 stars, last pushed 5mo ago), licensed MIT. It adds 8 tokens to every session and 1,969 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.