Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ wheels/
.venv/
venv/
.doc/
.codex/skills/
.agents/skills/

# Pytest
.pytest_cache/
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Options:
--output, -o Base output directory for skill structure (overrides target default)
--skill-output Output directory for .skill file (default: .)
--temp-dir Temporary directory for processing (default: build)
--max-concurrency Maximum number of HTTP requests to run at once (default: 10)
--skip-fetch Skip the download step (use existing files in temp dir)
--clean Clean up temporary directory after completion
--version Print version (Rust beta only)
Expand Down
9 changes: 7 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use clap::{Parser, ValueEnum};
use chrono::Utc;
use std::num::NonZeroUsize;
use std::path::PathBuf;
use tokio::fs;
use tracing::{error, info, warn, Level};
Expand Down Expand Up @@ -27,7 +28,7 @@ impl TargetAgent {
TargetAgent::Claude | TargetAgent::ClaudeDesktop => ".claude/skills",
TargetAgent::Cursor => ".cursor/skills",
TargetAgent::Gemini => ".gemini/skills",
TargetAgent::Codex => ".codex/skills",
TargetAgent::Codex => ".agents/skills",
}
}
}
Expand Down Expand Up @@ -59,6 +60,10 @@ struct Args {
#[arg(long, default_value = "build")]
temp_dir: PathBuf,

/// Maximum number of HTTP requests to run at once
#[arg(long, default_value = "10")]
max_concurrency: NonZeroUsize,

/// Skip the download step (use existing files in temp dir)
#[arg(long)]
skip_fetch: bool,
Expand Down Expand Up @@ -110,7 +115,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
include_paths: vec![],
exclude_query_keys: ["hl", "lang", "locale"].iter().map(|s| s.to_string()).collect(),
delay_ms: 1000,
max_concurrency: 10,
max_concurrency: args.max_concurrency.get(),
user_agent: "site2skill/0.2 (+https://github.com/laiso/site2skill)".to_string(),
};

Expand Down
Loading