brainstorming
Structured design dialogue that validates ideas before implementation begins.
ios-add-file
Add a Swift file to an Xcode project without opening Xcode. Programmatically edits project.pbxproj to include the file. Use when adding new Swift files to iOS projects from command line.
Full skill instructions
Adds a Swift source file to an Xcode project by directly editing the project.pbxproj file. This allows command-line development workflows without opening Xcode IDE. The process involves generating UUIDs and updating four sections of the project file.
Invoke this skill when the user:
uuidgen command available (standard on macOS)First, create the actual Swift file in the project directory:
cat > ProjectName/FileName.swift << 'EOF'
import Foundation
class FileName {
// Your code here
}
EOF
Generate two unique identifiers:
BUILD_UUID=$(uuidgen | tr -d '-' | tr '[:upper:]' '[:lower:]')
FILE_UUID=$(uuidgen | tr -d '-' | tr '[:upper:]' '[:lower:]')
echo "Build UUID: $BUILD_UUID"
echo "File UUID: $FILE_UUID"
Open ProjectName.xcodeproj/project.pbxproj in a text editor and add entries to four sections:
Add after /* Begin PBXBuildFile section */:
$BUILD_UUID /* FileName.swift in Sources */ = {
isa = PBXBuildFile;
fileRef = $FILE_UUID /* FileName.swift */;
};
Add after /* Begin PBXFileReference section */:
$FILE_UUID /* FileName.swift */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.swift;
path = FileName.swift;
sourceTree = "<group>";
};
Find the project's main group (usually named after the project) and add to children array:
XXXXXXXX /* ProjectName */ = {
isa = PBXGroup;
children = (
YYYYYYYY /* ExistingFile1.swift */,
ZZZZZZZZ /* ExistingFile2.swift */,
$FILE_UUID /* FileName.swift */,
...
);
Find the Sources build phase and add to files array:
SSSSSSSS /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
TTTTTTTT /* ExistingFile1.swift in Sources */,
UUUUUUUU /* ExistingFile2.swift in Sources */,
$BUILD_UUID /* FileName.swift in Sources */,
);
Test that the project still builds:
xcodebuild -project ProjectName.xcodeproj \
-scheme SchemeName \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' \
LD="clang" \
build
Let the user know:
UUID Format:
tr -d '-' | tr '[:upper:]' '[:lower:]')Comments:
/* FileName.swift */ are optional but helpfulOrder:
Backup:
Build fails after adding:
File doesn't appear in build:
Project won't open in Xcode:
This process can be scripted with:
For now, manual editing with verification is recommended.
This technique was successfully used to add Logger.swift to the NoobTest/Firefly project without opening Xcode, enabling command-line-only development workflows.
For more complex scenarios, consider the xcodeproj gem:
gem install xcodeproj
But for simple file additions, manual editing works well.
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs