xiaohongshu
xiaohongshu
firstspirit-fs-cli
FirstSpirit CMS template development using fs-cli. Helps set up fs-cli environment, export templates from FirstSpirit server, modify templates with Claude Code, and import changes back to server. Use when working with FirstSpirit templates, CMS development, or when user mentions fs-cli, FirstSpir...
Full skill instructions
You are a specialized assistant for working with FirstSpirit templates using the fs-cli tool.
IMPORTANT: To understand the firstspirit teamplate syntax you need also the skill firstspirit-templating.
Before working with FirstSpirit templates, you MUST familiarize yourself with these supporting files in the reference/ directory:
reference/fs-cli-sync-structure.md - Template Structure Guide
reference/fs-cli-installation-guide.md - Setup Guide
reference/fs-cli-usage.md - Command Reference
IMPORTANT: this must done only once per project. NOT every time the user wants to run commands.
Check if fs-cli is configured before running commands:
if [ ! -d .fs-cli ]; then
echo "fs-cli not configured. Starting setup wizard..."
fi
When a user needs to set up fs-cli the first time in their project: read the reference/fs-cli-installation-guide.md file and guide them through.
All fs-cli configuration is stored in .env:
# FirstSpirit Server Configuration
fshost=localhost
fsport=8000
fsmode=HTTP
fsproject=my-project
# FirstSpirit Credentials (KEEP SECRET - DO NOT COMMIT)
fsuser=Admin
fspwd=your_password
# fs-cli Configuration (for reference only, not used by fs-cli)
FS_CLI_VERSION=4.8.6
FS_VERSION=2025.01
IMPORTANT: Never commit .env to git! It contains credentials.
CRITICAL: Read and follow the instructions in reference/fs-cli-usage.md for common commands and usage examples before running any commands.
Always export environment variables from .env before running fs-cli commands:
# Export environment variables from .env (use set -a to auto-export all variables)
set -a && source .env && set +a
# Run fs-cli (connection parameters are read from environment variables)
.fs-cli/bin/fs-cli.sh <command> [args]
Note: Use set -a; source .env; set +a to properly export all variables from the .env file. The .env file uses standard format (lowercase variable names without export keyword).
See reference/fs-cli-usage.md for common commands and examples.
Always export before modifying to get the latest version from the server:
set -a && source .env && set +a && .fs-cli/bin/fs-cli.sh -sd sync_dir/ export
CRITICAL: Read reference/fs-cli-sync-structure.md to understand:
Key files in exported structure:
StoreElement.xml - Contains metadata (name, UID, type)GomSource.xml - Contains template source code (for sections, page templates)Use Glob and Grep to find templates:
# Find all page templates
ls sync_dir/pagetemplate/
# Search for template by name
grep -r "template-name" sync_dir/
# Find by UID
grep -r 'uid="homepage"' sync_dir/
# Find specific input component
grep -r "CMS_INPUT_TEXT" sync_dir/
When editing templates:
Common files to edit:
StoreElement.xml - For metadata changesGomSource.xml - For template logic and HTMLAfter modifying templates:
# Optional: Dry run first
set -a && source .env && set +a && .fs-cli/bin/fs-cli.sh -sd sync_dir/ import --dry-run
# Import for real
set -a && source .env && set +a && .fs-cli/bin/fs-cli.sh -sd sync_dir/ import
.env configuration is correcttelnet ${fshost} ${fsport}java -versionecho $JAVA_HOMEreference/fs-cli-installation-guide.mdAfter setup, the project will look like:
your-project/
├── .env # Configuration + credentials (gitignored)
├── .env.example # Template for team (committed)
├── .gitignore # Updated to ignore .fs-cli/ and .env
│
├── .fs-cli/ # Git-ignored - local fs-cli installation
│ ├── bin/
│ │ └── fs-cli.sh # The CLI executable (for mac and linux)
│ │ └── fs-cli.cmd # The CLI executable (for windows)
│ ├── lib/
│ │ └── fs-isolated-runtime.jar # USER MUST PROVIDE (version-specific)
│ ├── README.txt # fs-cli documentation
│ └── .setup-marker # Tracks setup state (fs-cli version, FS version)
│
├── sync_dir/ # Exported FirstSpirit templates (after export only)
├── pagetemplate/
├── section/
├── formattemplate/
└── ...
For detailed troubleshooting, refer to reference/fs-cli-installation-guide.md.
Located in the skill directory:
reference/fs-cli-sync-structure.md - Template structure documentationreference/fs-cli-installation-guide.md - Detailed setup and troubleshooting guidereference/fs-cli-usage.md - Common fs-cli commands and usage examplesscripts/setup-fs-cli.sh - Automated setup scriptscripts/validate-environment.sh - Environment validation scripttemplates/.env.template - Template for .env filetemplates/.env.example.template - Template for .env.exampletemplates/.gitignore.fs-cli - Lines to add to .gitignoreThis skill will expand to support:
Claude will automatically invoke this skill when:
.env - Contains credentials.fs-cli/ - Downloaded tools, version-specific.env.example should be committed - Template for teamsync_dir/ can be committed - If using external sync for version controlfs-cli-sync-structure.md - Before modifying templatesxiaohongshu
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