xiaohongshu
xiaohongshu
miso
Implement feature changes by updating pseudocode, platform code, and product code from modified feature markdown files. Use when user asks to "implement features", "run miso", "update implementations", or "sync code with features".
Full skill instructions
This skill implements the miso feature-to-code workflow. When feature markdown files change, it automatically propagates those changes through the implementation chain: pseudocode → platform-specific code → product code.
Miso specifies programs as a tree of features: short (<300 word) natural-language markdown files that specify behavior.
Feature Format:
# titleFeature Structure: Each feature lives in its own folder containing:
spec.md: The feature specificationpseudocode.md: Natural-language function definitions and patching instructionsios.md, android.md, py.md: Platform-specific implementations with actual codeimp/: Folder for other artifacts (logs, debugging notes, test data)Feature Hierarchy:
A/spec.md, create subfeature A/B/spec.mdA/B/spec.md, create subfeature A/B/C/spec.mdWhen a user changes feature A/B/spec.md or adds a subfeature, the implementation process ensures code is created following this routine:
Step 1: Pseudocode
A/B/pseudocode.md is up-to-dateStep 2: Platform Code
ios.md, android.md, etc.) are up-to-date vs pseudocodeStep 3: Product Code
Step 4: Build, Deploy, Test
Invoke this skill when the user:
The miso implementation process follows this sequence:
Find all feature spec.md files that have changed since the last run:
git diff to find modified feature files in apps/ and miso/ directories**/spec.md.claude/skills/miso/.last-run)For each changed feature A/B/spec.md:
A/B/pseudocode.md existsA/B/pseudocode.md to reflect the spec changesFor each feature with updated pseudocode:
A/B/ios.md, A/B/android.md, A/B/py.mdFor each updated platform implementation:
apps/ hierarchy to find the product path)After updating product code:
./install-device.sh from product client imp/ios directoryexport JAVA_HOME="/opt/homebrew/opt/openjdk" && ./gradlew assembleDebug && adb install -r app/build/outputs/apk/debug/app-debug.apk./remote-shutdown.sh && scp && ssh for remote server deployment./test-feature.sh <feature-name>For features that affect visual appearance (colors, layouts, UI elements), use an iterative debugging cycle:
iOS Visual Verification Cycle:
Take Screenshot:
cd apps/firefly/product/client/imp/ios
./restart-app.sh
sleep 3
cd /Users/asnaroo/Desktop/experiments/miso/miso/platforms/ios/development/screen-capture/imp
./screenshot.sh /tmp/verification-screenshot.png
Verify Against Specification:
If Verification PASSES:
If Verification FAILS:
grep -r "Color(red: 64/255" NoobTest/Fix All Instances:
./install-device.sh./restart-app.sh && sleep 3Iterate Until Success:
Android Visual Verification Cycle:
adb shell am force-stop com.miso.noobtest && adb shell am start -n com.miso.noobtest/.MainActivitysleep 3adb exec-out screencap -p > /tmp/verification-screenshot.pngKey Insight: Initial implementation often misses files. Visual verification catches this and drives iteration until the visible result matches the specification.
After visual verification succeeds and the feature works correctly, update all documentation to accurately reflect what was actually built. This is critical because the initial implementation often differs from the final working version due to debugging discoveries.
Run the post-debug cleanup process:
Review what was actually changed:
git diff apps/firefly/product/client/imp/ios/
Update the feature specification (spec.md):
Update the pseudocode (pseudocode.md):
Update platform implementations (ios.md, android.md, etc.):
.highPriorityGesture for SwiftUI)Example Updates:
Feature spec (explore-posts/spec.md):
**Navigate to Children**: Swipe left on a post with children to navigate to a view showing all its child posts.
**Navigate Back**: Either tap the back button or swipe right anywhere in the child view to return to the parent view.
Pseudocode (explore-posts/pseudocode.md):
## Gesture Handling
**Swipe Left on Post with Children:**
- Minimum distance: 30pt
- Condition: Post must have children (childCount > 0)
**Swipe Right in Child View:**
- Minimum distance: 100pt
- Start position: Anywhere in view (not just left edge)
- Priority: High priority gesture to override ScrollView
Platform spec (explore-posts/ios.md):
// Complete working code with exact measurements
.gesture(
DragGesture(minimumDistance: 30)
.onEnded { value in
if value.translation.width < -30 && (post.childCount ?? 0) > 0 {
onNavigateToChildren?(post.id)
}
}
)
// In ChildPostsView - swipe right from anywhere
.highPriorityGesture(
DragGesture()
.onEnded { value in
if value.translation.width > 100 {
navigationPath.removeLast()
}
}
)
Why This Matters:
Store the last run timestamp in .claude/skills/miso/.last-run:
User modifies apps/firefly/features/background/spec.md (changes color from turquoise to mauve):
background/spec.md changed since last runapps/firefly/features/background/pseudocode.md to reflect mauve colorapps/firefly/features/background/ios.md with new RGB valuesContentView.swift with RGB(224, 176, 255)./install-device.shPostsView.swift with mauve colorgrep -r "Color(red: 64/255" NoobTest/background/spec.md: Describe grey/dark-red colors as user sees thembackground/pseudocode.md: Add exact RGB values (128,128,128) and (139,0,0)background/ios.md: List all 6 target files with line numbers and complete code examplesColor(red: and replace..."./test-feature.sh background if test exists.last-run timestampResult: The documentation now accurately reflects the final implementation. All 6 files are documented with exact values. Next time miso runs, it will update all 6 files on the first attempt, with no debugging needed.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience