원클릭으로
swarm-advanced-features
Export/import, versioning, migrations, and backup/restore. Use when adding enterprise/production features.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Export/import, versioning, migrations, and backup/restore. Use when adding enterprise/production features.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
GOAP-based orchestrator for managing GitHub issues, creating action plans, and executing workspace operations with branch/PR workflow.
Configure and troubleshoot npm OIDC Trusted Publishing for GitHub Actions. Use when npm publish fails with E404, OIDC errors, or provenance issues.
GitHub release management, crates.io trusted publishing, npm provenance, and GitHub Pages documentation. Use when creating releases, publishing packages, or deploying docs.
Git commit conventions, validation gates, and CI/CD workflows. Use when committing changes, verifying gates, or working with GitHub Actions.
Validate merge readiness with atomic commits and GitHub Actions checks using gh CLI; use for pre-merge verification and CI truth validation.
Apply TRIZ inventive principles to solve problems that seem to have no good solution. Use after triz-analysis has identified contradictions.
SOC 직업 분류 기준
| name | swarm-advanced-features |
| description | Export/import, versioning, migrations, and backup/restore. Use when adding enterprise/production features. |
pub async fn export_json(&self, path: &Path) -> Result<usize> {
let file = File::create(path)?;
let writer = BufWriter::new(file);
let mut count = 0;
// Stream concepts in chunks
for chunk in self.singularity.concepts().chunks(1000) {
for concept in chunk {
serde_json::to_writer(&mut writer, concept)?;
count += 1;
}
}
Ok(count)
}
CREATE TABLE concept_versions (
concept_id TEXT NOT NULL,
version INTEGER NOT NULL,
vector BLOB NOT NULL,
metadata TEXT NOT NULL,
modified_at INTEGER NOT NULL,
PRIMARY KEY (concept_id, version),
FOREIGN KEY (concept_id) REFERENCES concepts(id) ON DELETE CASCADE
);
pub struct Migration {
version: u32,
up: &'static str,
down: &'static str,
}
pub async fn run_migrations(&self, target: u32) -> Result<()> {
let current = self.get_schema_version().await?;
for migration in &MIGRATIONS[current as usize..target as usize] {
let conn = self.connect().await?;
conn.execute(migration.up, ()).await?;
self.set_schema_version(migration.version).await?;
}
Ok(())
}
pub async fn backup(&self, path: &Path) -> Result<()> {
// SQLite: VACUUM INTO
let conn = self.connect().await?;
conn.execute(&format!("VACUUM INTO '{}'", path.display()), ()).await?;
self.verify_backup(path).await?;
Ok(())
}
{
"version": "0.1.0",
"exported_at": 1700000000,
"schema_version": 5,
"concepts": [...],
"associations": [...],
"concept_versions": [...]
}
All files must remain ≤ 500 lines. Refactor to new modules if needed.