Skip to content

Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.

fix(skills): make console diagnostics safe for cp1252

Timothy Kassisa0aea743b305
diff --git a/AGENTS.md b/AGENTS.md
index 4ccce5cc..c5007ddf 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -185,6 +185,8 @@ genuinely cannot run without.
- Give concrete workflows, commands, and worked examples rather than background explanation.
- Name the required packages, system dependencies, credentials, and network access.
- Include the scientific caveats and validation checks that matter.
+- Use ASCII console status markers (`[OK]`, `[FAIL]`, `->`) so diagnostics work on
+ legacy Windows consoles. Unicode in documentation and generated figures is fine.
- Put fragile or repetitive logic in `scripts/` instead of asking the agent to recreate it.
- Never include secrets, API keys, private URLs, or unpublished data.
diff --git a/skills/bioservices/SKILL.md b/skills/bioservices/SKILL.md
index 7d67e22e..7bfb98c9 100644
--- a/skills/bioservices/SKILL.md
+++ b/skills/bioservices/SKILL.md
@@ -5,7 +5,7 @@ license: GPLv3 license
allowed-tools: Read Write Edit Bash
compatibility: Requires Python 3.9–3.12 and internet access to 40+ bioinformatics web APIs. NCBI BLAST requires a contact email (`NCBI_EMAIL` env var or explicit parameter).
metadata:
- version: "1.5"
+ version: "1.6"
skill-author: K-Dense Inc.
openclaw:
envVars:
diff --git a/skills/bioservices/scripts/batch_id_converter.py b/skills/bioservices/scripts/batch_id_converter.py
index 14e3893a..72e1e3e4 100755
--- a/skills/bioservices/scripts/batch_id_converter.py
+++ b/skills/bioservices/scripts/batch_id_converter.py
@@ -86,7 +86,7 @@ def read_ids_from_file(filename):
if line and not line.startswith('#'):
ids.append(line)
- print(f"✓ Read {len(ids)} identifier(s)")
+ print(f"[OK] Read {len(ids)} identifier(s)")
return ids
@@ -119,9 +119,9 @@ def batch_convert(ids, from_db, to_db, chunk_size=100, delay=0.5):
if results:
all_results.update(results)
mapped_count = len([v for v in results.values() if v])
- print(f"✓ Mapped: {mapped_count}/{len(chunk)}")
+ print(f"[OK] Mapped: {mapped_count}/{len(chunk)}")
else:
- print(f"✗ No mappings returned")
+ print(f"[FAIL] No mappings returned")
failed_ids.extend(chunk)
# Rate limiting
@@ -129,7 +129,7 @@ def batch_convert(ids, from_db, to_db, chunk_size=100, delay=0.5):
time.sleep(delay)
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
# Try individual IDs in failed chunk
print(f" Retrying individual IDs...")
@@ -138,13 +138,13 @@ def batch_convert(ids, from_db, to_db, chunk_size=100, delay=0.5):
result = u.mapping(fr=from_db, to=to_db, query=single_id)
if result:
all_results.update(result)
- print(f" ✓ {single_id}")
+ print(f" [OK] {single_id}")
else:
failed_ids.append(single_id)
- print(f" ✗ {single_id} - no mapping")
+ print(f" [FAIL] {single_id} - no mapping")
except Exception as e2:
failed_ids.append(single_id)
- print(f" ✗ {single_id} - {e2}")
+ print(f" [FAIL] {single_id} - {e2}")
time.sleep(0.2)
@@ -153,7 +153,7 @@ def batch_convert(ids, from_db, to_db, chunk_size=100, delay=0.5):
if id_ not in all_results:
all_results[id_] = None
- print(f"\n✓ Conversion complete:")
+ print(f"\n[OK] Conversion complete:")
print(f" Total: {len(ids)}")
print(f" Mapped: {len([v for v in all_results.values() if v])}")
print(f" Failed: {len(failed_ids)}")
@@ -182,7 +182,7 @@ def save_mapping_csv(mapping, output_file, from_db, to_db):
writer.writerow([source_id, from_db, target_str, to_db, status])
- print(f"✓ Results saved")
+ print(f"[OK] Results saved")
def save_failed_ids(failed_ids, output_file):
@@ -196,7 +196,7 @@ def save_failed_ids(failed_ids, output_file):
for id_ in failed_ids:
f.write(f"{id_}\n")
- print(f"✓ Saved {len(failed_ids)} failed ID(s)")
+ print(f"[OK] Saved {len(failed_ids)} failed ID(s)")
def print_mapping_summary(mapping, from_db, to_db):
@@ -224,7 +224,7 @@ def print_mapping_summary(mapping, from_db, to_db):
target_str = ", ".join(target_ids[:3])
if len(target_ids) > 3:
target_str += f" ... +{len(target_ids)-3} more"
- print(f" {source_id} → {target_str}")
+ print(f" {source_id} -> {target_str}")
count += 1
if count >= 5:
break
@@ -304,19 +304,19 @@ Use --list-databases to see all supported aliases.
to_db = normalize_database_code(args.to_db)
if from_db != args.from_db:
- print(f"\nNote: Normalized '{args.from_db}' → '{from_db}'")
+ print(f"\nNote: Normalized '{args.from_db}' -> '{from_db}'")
if to_db != args.to_db:
- print(f"Note: Normalized '{args.to_db}' → '{to_db}'")
+ print(f"Note: Normalized '{args.to_db}' -> '{to_db}'")
# Read input IDs
try:
ids = read_ids_from_file(args.input_file)
except Exception as e:
- print(f"\n✗ Error reading input file: {e}")
+ print(f"\n[FAIL] Error reading input file: {e}")
sys.exit(1)
if not ids:
- print("\n✗ No IDs found in input file")
+ print("\n[FAIL] No IDs found in input file")
sys.exit(1)
# Perform conversion
@@ -340,7 +340,7 @@ Use --list-databases to see all supported aliases.
failed_file = output_file.replace(".csv", "_failed.txt")
save_failed_ids(failed_ids, failed_file)
- print(f"\n✓ Done!")
+ print(f"\n[OK] Done!")
if __name__ == "__main__":
diff --git a/skills/bioservices/scripts/compound_cross_reference.py b/skills/bioservices/scripts/compound_cross_reference.py
index 3758c1e7..f209fdee 100755
--- a/skills/bioservices/scripts/compound_cross_reference.py
+++ b/skills/bioservices/scripts/compound_cross_reference.py
@@ -37,12 +37,12 @@ def search_kegg_compound(compound_name):
results = k.find("compound", compound_name)
if not results or not results.strip():
- print(f"✗ No results found in KEGG")
+ print(f"[FAIL] No results found in KEGG")
return k, None
# Parse results
lines = results.strip().split("\n")
- print(f"✓ Found {len(lines)} result(s):\n")
+ print(f"[OK] Found {len(lines)} result(s):\n")
for i, line in enumerate(lines[:5], 1):
parts = line.split("\t")
@@ -59,7 +59,7 @@ def search_kegg_compound(compound_name):
return k, kegg_id
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return k, None
@@ -75,7 +75,7 @@ def get_kegg_info(kegg, kegg_id):
entry = kegg.get(f"cpd:{kegg_id}")
if not entry:
- print("✗ Failed to retrieve entry")
+ print("[FAIL] Failed to retrieve entry")
return None
# Parse entry
@@ -138,11 +138,11 @@ def get_kegg_info(kegg, kegg_id):
if len(compound_info['chebi_ids']) == 1:
compound_info['chebi_id'] = compound_info['chebi_ids'][0]
elif compound_info['chebi_ids']:
- print("⊘ Multiple ChEBI cross-references; review structures before mapping: "
+ print("[SKIP] Multiple ChEBI cross-references; review structures before mapping: "
+ ", ".join(compound_info['chebi_ids']))
# Display information
- print(f"\n✓ KEGG Compound Information:")
+ print(f"\n[OK] KEGG Compound Information:")
print(f" ID: {compound_info['kegg_id']}")
print(f" Name: {compound_info['name']}")
print(f" Formula: {compound_info['formula']}")
@@ -158,7 +158,7 @@ def get_kegg_info(kegg, kegg_id):
return compound_info
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return None
@@ -172,7 +172,7 @@ def get_chembl_id(kegg_id, chebi_id=None):
print("STEP 3: ChEMBL Mapping (via UniChem)")
print(f"{'='*70}")
if not chebi_id:
- print(f"⊘ KEGG:{kegg_id} has no unique ChEBI cross-reference; mapping unavailable")
+ print(f"[SKIP] KEGG:{kegg_id} has no unique ChEBI cross-reference; mapping unavailable")
return None
chebi_id = str(chebi_id)
if not chebi_id.startswith("CHEBI:"):
@@ -186,14 +186,14 @@ def get_chembl_id(kegg_id, chebi_id=None):
if source.get("shortName") == "chembl" and source.get("compoundId")
})
if len(identifiers) == 1:
- print(f"✓ {chebi_id} → ChEMBL ID: {identifiers[0]}")
+ print(f"[OK] {chebi_id} -> ChEMBL ID: {identifiers[0]}")
return identifiers[0]
if identifiers:
- print(f"⊘ Ambiguous ChEMBL mappings: {', '.join(identifiers)}; review structures")
+ print(f"[SKIP] Ambiguous ChEMBL mappings: {', '.join(identifiers)}; review structures")
else:
- print("⊘ No ChEMBL mapping returned; this does not prove absence")
+ print("[SKIP] No ChEMBL mapping returned; this does not prove absence")
except Exception as error:
- print(f"✗ UniChem lookup failed: {error}")
+ print(f"[FAIL] UniChem lookup failed: {error}")
return None
@@ -204,7 +204,7 @@ def get_chebi_info(chebi_id):
print(f"{'='*70}")
if not chebi_id:
- print("⊘ No ChEBI ID available")
+ print("[SKIP] No ChEBI ID available")
return None
try:
@@ -219,7 +219,7 @@ def get_chebi_info(chebi_id):
entity = c.getCompleteEntity(chebi_id)
if entity:
- print(f"\n✓ ChEBI Information:")
+ print(f"\n[OK] ChEBI Information:")
print(f" ID: {entity.chebiId}")
print(f" Name: {entity.chebiAsciiName}")
@@ -239,11 +239,11 @@ def get_chebi_info(chebi_id):
'mass': entity.mass if hasattr(entity, 'mass') else None
}
else:
- print("✗ Failed to retrieve ChEBI entry")
+ print("[FAIL] Failed to retrieve ChEBI entry")
return None
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return None
@@ -254,7 +254,7 @@ def get_chembl_info(chembl_id):
print(f"{'='*70}")
if not chembl_id:
- print("⊘ No ChEMBL ID available")
+ print("[SKIP] No ChEMBL ID available")
return None
try:
@@ -267,7 +267,7 @@ def get_chembl_info(chembl_id):
compound = c.get_molecule(chembl_id)
if compound:
- print(f"\n✓ ChEMBL Information:")
+ print(f"\n[OK] ChEMBL Information:")
print(f" ID: {chembl_id}")
if 'pref_name' in compound and compound['pref_name']:
@@ -297,11 +297,11 @@ def get_chembl_info(chembl_id):
return compound
else:
- print("✗ Failed to retrieve ChEMBL entry")
+ print("[FAIL] Failed to retrieve ChEMBL entry")
return None
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return None
@@ -342,7 +342,7 @@ def save_results(compound_name, kegg_info, chembl_id, output_file):
f.write(f"ChEMBL: {chembl_id}\n")
f.write("\n")
- print(f"✓ Results saved")
+ print(f"[OK] Results saved")
def main():
@@ -370,7 +370,7 @@ Examples:
# Step 1: Search KEGG
kegg, kegg_id = search_kegg_compound(args.compound)
if not kegg_id:
- print("\n✗ Failed to find compound. Exiting.")
+ print("\n[FAIL] Failed to find compound. Exiting.")
sys.exit(1)
# Step 2: Get KEGG details
diff --git a/skills/bioservices/scripts/pathway_analysis.py b/skills/bioservices/scripts/pathway_analysis.py
index 5ec3322d..e823a6f1 100755
--- a/skills/bioservices/scripts/pathway_analysis.py
+++ b/skills/bioservices/scripts/pathway_analysis.py
@@ -38,7 +38,7 @@ def get_all_pathways(kegg, organism):
kegg.organism = organism
pathway_ids = kegg.pathwayIds
- print(f"✓ Found {len(pathway_ids)} pathways")
+ print(f"[OK] Found {len(pathway_ids)} pathways")
return pathway_ids
@@ -82,7 +82,7 @@ def analyze_pathway(kegg, pathway_id):
return result
except Exception as e:
- print(f" ✗ Error analyzing {pathway_id}: {e}")
+ print(f" [FAIL] Error analyzing {pathway_id}: {e}")
return None
@@ -90,7 +90,7 @@ def analyze_all_pathways(kegg, pathway_ids, limit=None):
"""Analyze all pathways."""
if limit:
pathway_ids = pathway_ids[:limit]
- print(f"\n⚠ Limiting analysis to first {limit} pathways")
+ print(f"\n[WARN] Limiting analysis to first {limit} pathways")
print(f"\nAnalyzing {len(pathway_ids)} pathways...")
@@ -102,7 +102,7 @@ def analyze_all_pathways(kegg, pathway_ids, limit=None):
if result:
results.append(result)
- print(f"\n✓ Successfully analyzed {len(results)}/{len(pathway_ids)} pathways")
+ print(f"\n[OK] Successfully analyzed {len(results)}/{len(pathway_ids)} pathways")
return results
@@ -144,7 +144,7 @@ def save_pathway_summary(results, output_file):
if k not in ['activation', 'inhibition', 'phosphorylation', 'binding/association'])
])
- print(f"✓ Summary saved")
+ print(f"[OK] Summary saved")
def save_interactions_sif(results, output_file):
@@ -163,7 +163,7 @@ def save_interactions_sif(results, output_file):
# Write SIF format: source\tinteraction\ttarget
f.write(f"{entry1}\t{interaction_type}\t{entry2}\n")
- print(f"✓ Interactions saved")
+ print(f"[OK] Interactions saved")
def save_detailed_pathway_info(results, output_dir):
@@ -189,7 +189,7 @@ def save_detailed_pathway_info(results, output_dir):
rel.get('link', 'unknown')
])
- print(f"✓ Detailed files saved for {len(results)} pathways")
+ print(f"[OK] Detailed files saved for {len(results)} pathways")
def print_statistics(results):
@@ -273,14 +273,14 @@ Organism codes:
pathway_ids = get_all_pathways(kegg, args.organism)
if not pathway_ids:
- print(f"\n✗ No pathways found for {args.organism}")
+ print(f"\n[FAIL] No pathways found for {args.organism}")
sys.exit(1)
# Analyze pathways
results = analyze_all_pathways(kegg, pathway_ids, args.limit)
if not results:
- print("\n✗ No pathways successfully analyzed")
+ print("\n[FAIL] No pathways successfully analyzed")
sys.exit(1)
# Print statistics
diff --git a/skills/bioservices/scripts/protein_analysis_workflow.py b/skills/bioservices/scripts/protein_analysis_workflow.py
index 5756856a..05fdfcb8 100755
--- a/skills/bioservices/scripts/protein_analysis_workflow.py
+++ b/skills/bioservices/scripts/protein_analysis_workflow.py
@@ -64,7 +64,7 @@ def search_protein(query):
entry = u.retrieve(query, frmt="tab")
if entry:
uniprot_id = query
- print(f"✓ Found UniProt entry: {uniprot_id}")
+ print(f"[OK] Found UniProt entry: {uniprot_id}")
return u, uniprot_id
except:
pass
@@ -73,16 +73,16 @@ def search_protein(query):
results = u.search(query, frmt="tab", columns="id,genes,organism,length,protein names", limit=5)
if not results:
- print("✗ No results found")
+ print("[FAIL] No results found")
return u, None
lines = results.strip().split("\n")
if len(lines) < 2:
- print("✗ No entries found")
+ print("[FAIL] No entries found")
return u, None
# Display results
- print(f"\n✓ Found {len(lines)-1} result(s):")
+ print(f"\n[OK] Found {len(lines)-1} result(s):")
for i, line in enumerate(lines[1:], 1):
fields = line.split("\t")
print(f" {i}. {fields[0]} - {fields[1]} ({fields[2]})")
@@ -120,18 +120,18 @@ def retrieve_sequence(uniprot, uniprot_id):
header = lines[0]
seq_only = "".join(lines[1:])
- print(f"✓ Retrieved sequence:")
+ print(f"[OK] Retrieved sequence:")
print(f" Header: {header}")
print(f" Length: {len(seq_only)} residues")
print(f" First 60 residues: {seq_only[:60]}...")
return seq_only
else:
- print("✗ Failed to retrieve sequence")
+ print("[FAIL] Failed to retrieve sequence")
return None
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return None
@@ -142,11 +142,11 @@ def run_blast(sequence, email, skip=False):
print(f"{'='*70}")
if skip:
- print("⊘ Skipped (--skip-blast flag)")
+ print("[SKIP] Skipped (--skip-blast flag)")
return None
if not email:
- print("⊘ Skipped (set NCBI_EMAIL or pass email for BLAST)")
+ print("[SKIP] Skipped (set NCBI_EMAIL or pass email for BLAST)")
return None
try:
@@ -164,7 +164,7 @@ def run_blast(sequence, email, skip=False):
email=email
)
- print(f"✓ Job submitted: {jobid}")
+ print(f"[OK] Job submitted: {jobid}")
print(f" Waiting for completion...")
# Poll for completion
@@ -177,7 +177,7 @@ def run_blast(sequence, email, skip=False):
print(f" Status: {status} (elapsed: {elapsed}s)", end="\r")
if status == "FINISHED":
- print(f"\n✓ BLAST completed in {elapsed}s")
+ print(f"\n[OK] BLAST completed in {elapsed}s")
# Retrieve results
results = s.getResult(jobid, "out")
@@ -192,16 +192,16 @@ def run_blast(sequence, email, skip=False):
return results
elif status == "ERROR":
- print(f"\n✗ BLAST job failed")
+ print(f"\n[FAIL] BLAST job failed")
return None
time.sleep(5)
- print(f"\n✗ Timeout after {max_wait}s")
+ print(f"\n[FAIL] Timeout after {max_wait}s")
return None
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return None
@@ -217,11 +217,11 @@ def discover_pathways(uniprot, kegg, uniprot_id):
kegg_mapping = uniprot.mapping(fr="UniProtKB_AC-ID", to="KEGG", query=uniprot_id)
if not kegg_mapping or uniprot_id not in kegg_mapping:
- print("✗ No KEGG mapping found")
+ print("[FAIL] No KEGG mapping found")
return []
kegg_ids = kegg_mapping[uniprot_id]
- print(f"✓ KEGG ID(s): {kegg_ids}")
+ print(f"[OK] KEGG ID(s): {kegg_ids}")
# Get pathways for first KEGG ID
kegg_id = kegg_ids[0]
@@ -231,10 +231,10 @@ def discover_pathways(uniprot, kegg, uniprot_id):
pathways = kegg.get_pathway_by_gene(gene_id, organism)
if not pathways:
- print("✗ No pathways found")
+ print("[FAIL] No pathways found")
return []
- print(f"✓ Found {len(pathways)} pathway(s):\n")
+ print(f"[OK] Found {len(pathways)} pathway(s):\n")
# Get pathway names
pathway_info = []
@@ -258,7 +258,7 @@ def discover_pathways(uniprot, kegg, uniprot_id):
return pathway_info
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return []
@@ -269,7 +269,7 @@ def find_interactions(protein_query):
print(f"{'='*70}")
if PSICQUIC is None:
- print("⊘ Skipped (this bioservices release does not ship PSICQUIC)")
+ print("[SKIP] Skipped (this bioservices release does not ship PSICQUIC)")
return []
try:
@@ -283,12 +283,12 @@ def find_interactions(protein_query):
results = p.query("mint", query)
if not results:
- print("✗ No interactions found in MINT")
+ print("[FAIL] No interactions found in MINT")
return []
# Parse PSI-MI TAB format
lines = results.strip().split("\n")
- print(f"✓ Found {len(lines)} interaction(s):\n")
+ print(f"[OK] Found {len(lines)} interaction(s):\n")
# Display first 10 interactions
interactions = []
@@ -300,7 +300,7 @@ def find_interactions(protein_query):
interaction_type = fields[11]
interactions.append((protein_a, protein_b, interaction_type))
- print(f" {i}. {protein_a} ↔ {protein_b}")
+ print(f" {i}. {protein_a} <-> {protein_b}")
if len(lines) > 10:
print(f" ... and {len(lines)-10} more")
@@ -308,7 +308,7 @@ def find_interactions(protein_query):
return interactions
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return []
@@ -325,11 +325,11 @@ def get_go_annotations(uniprot_id):
annotations = g.Annotation(protein=uniprot_id, format="tsv")
if not annotations:
- print("✗ No GO annotations found")
+ print("[FAIL] No GO annotations found")
return []
lines = annotations.strip().split("\n")
- print(f"✓ Found {len(lines)-1} annotation(s)\n")
+ print(f"[OK] Found {len(lines)-1} annotation(s)\n")
# Group by aspect
aspects = {"P": [], "F": [], "C": []}
@@ -365,7 +365,7 @@ def get_go_annotations(uniprot_id):
return aspects
except Exception as e:
- print(f"✗ Error: {e}")
+ print(f"[FAIL] Error: {e}")
return {}
@@ -400,13 +400,13 @@ Examples:
# Step 1: Search protein
uniprot, uniprot_id = search_protein(args.protein)
if not uniprot_id:
- print("\n✗ Failed to find protein. Exiting.")
+ print("\n[FAIL] Failed to find protein. Exiting.")
sys.exit(1)
# Step 2: Retrieve sequence
sequence = retrieve_sequence(uniprot, uniprot_id)
if not sequence:
- print("\n⚠ Warning: Could not retrieve sequence")
+ print("\n[WARN] Warning: Could not retrieve sequence")
# Step 3: BLAST search
ncbi_email = resolve_ncbi_email(args.email)
@@ -429,8 +429,8 @@ Examples:
print(f"{'='*70}")
print(f" Protein: {args.protein}")
print(f" UniProt ID: {uniprot_id}")
- print(f" Sequence: {'✓' if sequence else '✗'}")
- print(f" BLAST: {'✓' if not args.skip_blast and sequence else '⊘'}")
+ print(f" Sequence: {'[OK]' if sequence else '[FAIL]'}")
+ print(f" BLAST: {'[OK]' if not args.skip_blast and sequence else '[SKIP]'}")
print(f" Pathways: {len(pathways)} found")
print(f" Interactions: {len(interactions)} found")
print(f" GO annotations: {sum(len(v) for v in go_terms.values())} found")
diff --git a/skills/deeptools/SKILL.md b/skills/deeptools/SKILL.md
index adcd44f3..1c139fbe 100644
--- a/skills/deeptools/SKILL.md
+++ b/skills/deeptools/SKILL.md
@@ -5,7 +5,7 @@ license: BSD license
allowed-tools: Read Write Edit Bash
compatibility: Requires Python >3.8 and deepTools 3.5.6-compatible dependencies. The upstream project recommends conda/bioconda for full dependency resolution; repo examples use uv with pinned PyPI installs for reproducible command-line workflows.
metadata:
- version: "1.5"
+ version: "1.6"
skill-author: K-Dense Inc.
---
diff --git a/skills/deeptools/scripts/validate_files.py b/skills/deeptools/scripts/validate_files.py
index f5db0321..ed468789 100644
--- a/skills/deeptools/scripts/validate_files.py
+++ b/skills/deeptools/scripts/validate_files.py
@@ -18,7 +18,7 @@ def check_file_exists(filepath):
return False, f"File not found: {filepath}"
if not os.access(filepath, os.R_OK):
return False, f"File not readable: {filepath}"
- return True, f"✓ File exists: {filepath}"
+ return True, f"[OK] File exists: {filepath}"
def check_bam_index(bam_file):
@@ -28,11 +28,11 @@ def check_bam_index(bam_file):
bai_file2 = str(Path(bam_file).with_suffix(".bai"))
if os.path.exists(bai_file1):
- return True, f"✓ BAM index found: {bai_file1}"
+ return True, f"[OK] BAM index found: {bai_file1}"
elif os.path.exists(bai_file2):
- return True, f"✓ BAM index found: {bai_file2}"
+ return True, f"[OK] BAM index found: {bai_file2}"
else:
- return False, f"✗ BAM index missing for: {bam_file}\n Run: samtools index {bam_file}"
+ return False, f"[FAIL] BAM index missing for: {bam_file}\n Run: samtools index {bam_file}"
def check_bigwig_file(bw_file):
@@ -40,8 +40,8 @@ def check_bigwig_file(bw_file):
# Check file size (bigWig files should have reasonable size)
file_size = os.path.getsize(bw_file)
if file_size < 100:
- return False, f"✗ bigWig file suspiciously small: {bw_file} ({file_size} bytes)"
- return True, f"✓ bigWig file appears valid: {bw_file} ({file_size} bytes)"
+ return False, f"[FAIL] bigWig file suspiciously small: {bw_file} ({file_size} bytes)"
+ return True, f"[OK] bigWig file appears valid: {bw_file} ({file_size} bytes)"
def check_bed_file(bed_file):
@@ -51,27 +51,27 @@ def check_bed_file(bed_file):
lines = [line.strip() for line in f if line.strip() and not line.startswith('#')]
if len(lines) == 0:
- return False, f"✗ BED file is empty: {bed_file}"
+ return False, f"[FAIL] BED file is empty: {bed_file}"
# Check first few lines for basic format
for i, line in enumerate(lines[:10], 1):
fields = line.split('\t')
if len(fields) < 3:
- return False, f"✗ BED file format error at line {i}: expected at least 3 columns\n Line: {line}"
+ return False, f"[FAIL] BED file format error at line {i}: expected at least 3 columns\n Line: {line}"
# Check if start and end are integers
try:
start = int(fields[1])
end = int(fields[2])
if start >= end:
- return False, f"✗ BED file error at line {i}: start >= end ({start} >= {end})"
+ return False, f"[FAIL] BED file error at line {i}: start >= end ({start} >= {end})"
except ValueError:
- return False, f"✗ BED file format error at line {i}: start and end must be integers\n Line: {line}"
+ return False, f"[FAIL] BED file format error at line {i}: start and end must be integers\n Line: {line}"
- return True, f"✓ BED file format appears valid: {bed_file} ({len(lines)} regions)"
+ return True, f"[OK] BED file format appears valid: {bed_file} ({len(lines)} regions)"
except Exception as e:
- return False, f"✗ Error reading BED file: {bed_file}\n Error: {str(e)}"
+ return False, f"[FAIL] Error reading BED file: {bed_file}\n Error: {str(e)}"
def validate_files(bam_files=None, bigwig_files=None, bed_files=None):
@@ -185,10 +185,10 @@ Examples:
# Summary
print("\n" + "="*50)
if success:
- print("✓ All validations passed!")
+ print("[OK] All validations passed!")
sys.exit(0)
else:
- print("✗ Some validations failed. Please fix the issues above.")
+ print("[FAIL] Some validations failed. Please fix the issues above.")
sys.exit(1)
diff --git a/skills/deeptools/scripts/workflow_generator.py b/skills/deeptools/scripts/workflow_generator.py
index 884eddab..9ccdabed 100644
--- a/skills/deeptools/scripts/workflow_generator.py
+++ b/skills/deeptools/scripts/workflow_generator.py
@@ -156,7 +156,7 @@ echo "Results are in: $OUTPUT_DIR"
with open(output_file, 'w') as f:
f.write(script)
- return f"✓ Generated ChIP-seq QC workflow: {output_file}"
+ return f"[OK] Generated ChIP-seq QC workflow: {output_file}"
def generate_chipseq_analysis_workflow(output_file, params):
@@ -277,7 +277,7 @@ echo "Results are in: $OUTPUT_DIR"
with open(output_file, 'w') as f:
f.write(script)
- return f"✓ Generated ChIP-seq analysis workflow: {output_file}"
+ return f"[OK] Generated ChIP-seq analysis workflow: {output_file}"
def generate_rnaseq_coverage_workflow(output_file, params):
@@ -328,7 +328,7 @@ echo "for strand-specific visualization of RNA-seq data."
with open(output_file, 'w') as f:
f.write(script)
- return f"✓ Generated RNA-seq coverage workflow: {output_file}"
+ return f"[OK] Generated RNA-seq coverage workflow: {output_file}"
def generate_atacseq_workflow(output_file, params):
@@ -416,7 +416,7 @@ echo " ~400bp: di-nucleosome"
with open(output_file, 'w') as f:
f.write(script)
- return f"✓ Generated ATAC-seq workflow: {output_file}"
+ return f"[OK] Generated ATAC-seq workflow: {output_file}"
def main():
diff --git a/skills/diffdock/SKILL.md b/skills/diffdock/SKILL.md
index ea73e261..a29ebe83 100644
--- a/skills/diffdock/SKILL.md
+++ b/skills/diffdock/SKILL.md
@@ -5,7 +5,7 @@ allowed-tools: Read Write Edit Bash Glob Grep
compatibility: Requires the DiffDock repository, Python 3.9 environment from upstream environment.yml or the official Docker image, RDKit, PyTorch/PyG, and optional CUDA GPU acceleration. Current guidance targets DiffDock v1.1.3 / DiffDock-L.
license: MIT license
metadata:
- version: "1.4"
+ version: "1.5"
skill-author: K-Dense Inc.
---
diff --git a/skills/diffdock/scripts/analyze_results.py b/skills/diffdock/scripts/analyze_results.py
index 22baabd8..50ae1d72 100755
--- a/skills/diffdock/scripts/analyze_results.py
+++ b/skills/diffdock/scripts/analyze_results.py
@@ -242,7 +242,7 @@ def export_to_csv(results, output_path):
pred['path']
])
- print(f"✓ Exported results to: {output_path}")
+ print(f"[OK] Exported results to: {output_path}")
def get_top_predictions(results, n=10, sort_by='confidence'):
diff --git a/skills/diffdock/scripts/prepare_batch_csv.py b/skills/diffdock/scripts/prepare_batch_csv.py
index fb402794..97b86c47 100755
--- a/skills/diffdock/scripts/prepare_batch_csv.py
+++ b/skills/diffdock/scripts/prepare_batch_csv.py
@@ -76,9 +76,9 @@ def validate_csv(csv_path, base_dir=None):
# Read CSV
try:
df = pd.read_csv(csv_path)
- messages.append(f"✓ Successfully read CSV with {len(df)} rows")
+ messages.append(f"[OK] Successfully read CSV with {len(df)} rows")
except Exception as e:
- messages.append(f"✗ Error reading CSV: {e}")
+ messages.append(f"[FAIL] Error reading CSV: {e}")
return False, messages
# Check required columns
@@ -86,10 +86,10 @@ def validate_csv(csv_path, base_dir=None):
missing_cols = [col for col in required_cols if col not in df.columns]
if missing_cols:
- messages.append(f"✗ Missing required columns: {', '.join(missing_cols)}")
+ messages.append(f"[FAIL] Missing required columns: {', '.join(missing_cols)}")
valid = False
else:
- messages.append("✓ All required columns present")
+ messages.append("[OK] All required columns present")
# Set base directory
if base_dir is None:
@@ -152,9 +152,9 @@ def validate_csv(csv_path, base_dir=None):
# Summary
messages.append(f"\n{'='*60}")
if valid:
- messages.append("✓ CSV validation PASSED - ready for DiffDock")
+ messages.append("[OK] CSV validation PASSED - ready for DiffDock")
else:
- messages.append("✗ CSV validation FAILED - please fix issues above")
+ messages.append("[FAIL] CSV validation FAILED - please fix issues above")
return valid, messages
@@ -219,7 +219,7 @@ Examples:
if args.create:
output_path = args.output or 'diffdock_batch_template.csv'
df = create_template_csv(output_path, args.num_examples)
- print(f"✓ Created template CSV: {output_path}")
+ print(f"[OK] Created template CSV: {output_path}")
print(f"\nTemplate contents:")
print(df.to_string(index=False))
print(f"\nEdit this file with your protein-ligand pairs and run with:")
diff --git a/skills/diffdock/scripts/setup_check.py b/skills/diffdock/scripts/setup_check.py
index 664a0645..3f9162d5 100755
--- a/skills/diffdock/scripts/setup_check.py
+++ b/skills/diffdock/scripts/setup_check.py
@@ -23,10 +23,10 @@ def check_python_version():
print("Checking Python version...")
if version.major == 3 and version.minor >= 9:
- print(f" ✓ Python {version.major}.{version.minor}.{version.micro}")
+ print(f" [OK] Python {version.major}.{version.minor}.{version.micro}")
return True
else:
- print(f" ✗ Python {version.major}.{version.minor}.{version.micro} "
+ print(f" [FAIL] Python {version.major}.{version.minor}.{version.micro} "
f"(requires Python 3.9 or higher; upstream environment.yml uses Python 3.9.18)")
return False
@@ -44,10 +44,10 @@ def check_package(package_name, import_name=None, version_attr='__version__'):
if version is None:
version = 'unknown'
break
- print(f" ✓ {package_name:20s} (version: {version})")
+ print(f" [OK] {package_name:20s} (version: {version})")
return True
except ImportError:
- print(f" ✗ {package_name:20s} (not installed)")
+ print(f" [FAIL] {package_name:20s} (not installed)")
return False
@@ -56,19 +56,19 @@ def check_pytorch():
print("\nChecking PyTorch...")
try:
import torch
- print(f" ✓ PyTorch version: {torch.__version__}")
+ print(f" [OK] PyTorch version: {torch.__version__}")
# Check CUDA
if torch.cuda.is_available():
- print(f" ✓ CUDA available: {torch.cuda.get_device_name(0)}")
+ print(f" [OK] CUDA available: {torch.cuda.get_device_name(0)}")
print(f" - CUDA version: {torch.version.cuda}")
print(f" - Number of GPUs: {torch.cuda.device_count()}")
return True, True
else:
- print(f" ⚠ CUDA not available (will run on CPU)")
+ print(f" [WARN] CUDA not available (will run on CPU)")
return True, False
except ImportError:
- print(f" ✗ PyTorch not installed")
+ print(f" [FAIL] PyTorch not installed")
return False, False
@@ -121,10 +121,10 @@ def check_esm():
print("\nChecking ESM (for protein sequence folding)...")
try:
import esm
- print(f" ✓ ESM installed (version: {esm.__version__ if hasattr(esm, '__version__') else 'unknown'})")
+ print(f" [OK] ESM installed (version: {esm.__version__ if hasattr(esm, '__version__') else 'unknown'})")
return True
except ImportError:
- print(f" ⚠ ESM not installed (needed for protein sequence folding)")
+ print(f" [WARN] ESM not installed (needed for protein sequence folding)")
print(f" Install with: uv pip install fair-esm")
return False
@@ -150,11 +150,11 @@ def check_diffdock_installation():
missing_files.append(filename)
if found_files:
- print(f" ✓ Found DiffDock files in current directory:")
+ print(f" [OK] Found DiffDock files in current directory:")
for f in found_files:
print(f" - {f}")
else:
- print(f" ⚠ DiffDock files not found in current directory")
+ print(f" [WARN] DiffDock files not found in current directory")
print(f" Current directory: {os.getcwd()}")
print(f" Make sure you're in the DiffDock repository root")
@@ -163,9 +163,9 @@ def check_diffdock_installation():
confidence_dir = Path('./workdir/v1.1/confidence_model')
if model_dir.exists() and confidence_dir.exists():
- print(f" ✓ Model checkpoints found")
+ print(f" [OK] Model checkpoints found")
else:
- print(f" ⚠ Model checkpoints not found in ./workdir/v1.1/")
+ print(f" [WARN] Model checkpoints not found in ./workdir/v1.1/")
print(f" Models will be downloaded on first run")
return len(found_files) > 0
@@ -208,7 +208,7 @@ def print_performance_notes(has_cuda):
if has_cuda:
print("""
-✓ GPU detected - DiffDock will run efficiently
+[OK] GPU detected - DiffDock will run efficiently
Expected performance:
- First run: ~2-5 minutes (pre-computing SO(2)/SO(3) tables)
@@ -217,7 +217,7 @@ Expected performance:
""")
else:
print("""
-⚠ No GPU detected - DiffDock will run on CPU
+[WARN] No GPU detected - DiffDock will run on CPU
Expected performance:
- CPU inference is SIGNIFICANTLY slower than GPU
@@ -266,15 +266,15 @@ def main():
all_passed = all(result for _, result in checks)
for check_name, result in checks:
- status = "✓ PASS" if result else "✗ FAIL"
+ status = "[OK] PASS" if result else "[FAIL] FAIL"
print(f" {status:8s} - {check_name}")
if all_passed:
- print("\n✓ All checks passed! DiffDock is ready to use.")
+ print("\n[OK] All checks passed! DiffDock is ready to use.")
print_performance_notes(has_cuda)
return 0
else:
- print("\n✗ Some checks failed. Please install missing dependencies.")
+ print("\n[FAIL] Some checks failed. Please install missing dependencies.")
print_installation_instructions()
return 1
diff --git a/skills/docx/SKILL.md b/skills/docx/SKILL.md
index 48ced476..b567c450 100644
--- a/skills/docx/SKILL.md
+++ b/skills/docx/SKILL.md
@@ -3,7 +3,7 @@ name: docx
description: "Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation."
license: Proprietary. LICENSE.txt has complete terms
metadata:
- version: "2.2"
+ version: "2.3"
skill-author: Anthropic, PBC
source: https://github.com/anthropics/skills/tree/main/skills/docx
---
diff --git a/skills/docx/scripts/office/validators/docx.py b/skills/docx/scripts/office/validators/docx.py
index b1814994..bdc477d1 100644
--- a/skills/docx/scripts/office/validators/docx.py
+++ b/skills/docx/scripts/office/validators/docx.py
@@ -252,7 +252,7 @@ class DOCXSchemaValidator(BaseSchemaValidator):
original_count = self.count_paragraphs_in_original()
diff = new_count - original_count
diff_str = f"+{diff}" if diff > 0 else str(diff)
- print(f"\nParagraphs: {original_count} → {new_count} ({diff_str})")
+ print(f"\nParagraphs: {original_count} -> {new_count} ({diff_str})")
def _parse_id_value(self, val: str, base: int = 16) -> int:
return int(val, base)
@@ -446,7 +446,7 @@ class DOCXSchemaValidator(BaseSchemaValidator):
elem.setAttribute(attr_name, new_id)
pending.append(
- f" Repaired: {xml_file.name}: durableId {durable_id} → {new_id}"
+ f" Repaired: {xml_file.name}: durableId {durable_id} -> {new_id}"
)
modified = True
diff --git a/skills/fictiv/SKILL.md b/skills/fictiv/SKILL.md
index d64e9e8e..ef19d4e5 100644
--- a/skills/fictiv/SKILL.md
+++ b/skills/fictiv/SKILL.md
@@ -4,7 +4,7 @@ description: Operate Fictiv (app.fictiv.com), the on-demand manufacturing platfo
license: MIT
compatibility: Needs a browser-automation tool with JavaScript execution (e.g. Claude in Chrome) and the user's logged-in Fictiv account at app.fictiv.com; there is no public API. The CAD pre-flight script needs Python 3.10+ (standard library only). UI mapped live in September 2026.
metadata:
- version: "1.1"
+ version: "1.2"
skill-author: K-Dense Inc.
---
diff --git a/skills/fictiv/scripts/check_cad_file.py b/skills/fictiv/scripts/check_cad_file.py
index 0ac3428e..2ccec9d7 100644
--- a/skills/fictiv/scripts/check_cad_file.py
+++ b/skills/fictiv/scripts/check_cad_file.py
@@ -244,7 +244,7 @@ def main() -> int:
for k, v in r["info"].items():
print(f" {k}: {v}")
for b in r["blocking"]:
- print(f" ✗ {b}")
+ print(f" [FAIL] {b}")
for w in r["warnings"]:
print(f" ! {w}")
return 1 if any(r["blocking"] for r in results) else 0
diff --git a/skills/imaging-data-commons/SKILL.md b/skills/imaging-data-commons/SKILL.md
index 1b1012a0..5c56a9ec 100644
--- a/skills/imaging-data-commons/SKILL.md
+++ b/skills/imaging-data-commons/SKILL.md
@@ -3,7 +3,7 @@ name: imaging-data-commons
description: Query and download public cancer imaging data from NCI Imaging Data Commons. Invoke for any question about IDC collections, cancer imaging datasets, DICOM data access, radiology (CT, MR, PET) or pathology AI training sets, metadata queries, visualization, or license checks — even when the user doesn't explicitly mention "IDC". No authentication required.
license: This skill is provided under the MIT License. IDC data itself has individual licensing (mostly CC-BY, some CC-NC) that must be respected when using the data.
metadata:
- version: "1.6"
+ version: "1.7"
source-skill-version: 1.8.1
skill-author: Andrey Fedorov, @fedorov
idc-index: "0.12.5"
diff --git a/skills/imaging-data-commons/scripts/check_version.py b/skills/imaging-data-commons/scripts/check_version.py
index d93253bd..fdb77dbe 100644
--- a/skills/imaging-data-commons/scripts/check_version.py
+++ b/skills/imaging-data-commons/scripts/check_version.py
@@ -112,12 +112,12 @@ def notify_updates(installed):
if installed:
pkg = fetch_json("https://pypi.org/pypi/idc-index/json", "info", "version")
if pkg and parse_version(pkg) > parse_version(installed):
- print(f"ℹ️ idc-index {pkg} available — to update: "
+ print(f"[INFO] idc-index {pkg} available — to update: "
f"{install_commands('idc-index', upgrade=True)[0]}")
tag = fetch_json(f"https://api.github.com/repos/{REPO}/releases/latest", "tag_name")
if tag and parse_version(tag) > parse_version(SKILL_VERSION):
- print(f"ℹ️ Skill {tag.lstrip('v')} available (you have {SKILL_VERSION}): "
+ print(f"[INFO] Skill {tag.lstrip('v')} available (you have {SKILL_VERSION}): "
f"https://github.com/{REPO}/releases/latest")
diff --git a/skills/infographics/SKILL.md b/skills/infographics/SKILL.md
index f07a4746..e249cbfc 100644
--- a/skills/infographics/SKILL.md
+++ b/skills/infographics/SKILL.md
@@ -3,7 +3,7 @@ name: infographics
description: "Create professional infographics using Nano Banana Pro AI with smart iterative refinement. Uses Gemini 3.6 Flash for quality review. Integrates research-lookup and web search for accurate data. Supports 10 infographic types, 8 industry styles, and colorblind-safe palettes."
allowed-tools: Read Write Edit Bash
metadata:
- version: "1.8"
+ version: "1.9"
skill-author: K-Dense Inc.
openclaw:
primaryEnv: OPENROUTER_API_KEY
diff --git a/skills/infographics/scripts/generate_infographic.py b/skills/infographics/scripts/generate_infographic.py
index c5a393ac..bcfe7a3f 100755
--- a/skills/infographics/scripts/generate_infographic.py
+++ b/skills/infographics/scripts/generate_infographic.py
@@ -101,12 +101,12 @@ def build_subprocess_env(api_key):
def list_options():
"""Print available types, styles, and palettes."""
print("""
-╔══════════════════════════════════════════════════════════════════════════════╗
-║ INFOGRAPHIC GENERATION OPTIONS ║
-╚══════════════════════════════════════════════════════════════════════════════╝
++==============================================================================+
+| INFOGRAPHIC GENERATION OPTIONS |
++==============================================================================+
-📊 INFOGRAPHIC TYPES (--type):
-──────────────────────────────────────────────────────────────────────────────
+INFOGRAPHIC TYPES (--type):
+------------------------------------------------------------------------------
statistical Data-driven infographic with charts, numbers, and statistics
timeline Chronological events or milestones
process Step-by-step instructions or workflow
@@ -118,8 +118,8 @@ def list_options():
resume Professional skills and experience visualization
social Social media optimized content
-🎨 STYLE PRESETS (--style):
-──────────────────────────────────────────────────────────────────────────────
+STYLE PRESETS (--style):
+------------------------------------------------------------------------------
corporate Navy/gold, professional business style
healthcare Blue/cyan, trust-inducing medical style
technology Blue/violet, modern tech style
@@ -129,14 +129,14 @@ def list_options():
finance Navy/gold, conservative professional style
nonprofit Orange/sage/sand, warm human-centered style
-🎨 COLORBLIND-SAFE PALETTES (--palette):
-──────────────────────────────────────────────────────────────────────────────
+COLORBLIND-SAFE PALETTES (--palette):
+------------------------------------------------------------------------------
wong Wong's palette (7 colors) - most widely recommended
ibm IBM colorblind-safe (8 colors)
tol Tol's qualitative (12 colors)
-📄 DOCUMENT TYPES (--doc-type):
-──────────────────────────────────────────────────────────────────────────────
+DOCUMENT TYPES (--doc-type):
+------------------------------------------------------------------------------
marketing 8.5/10 threshold - Marketing materials (highest quality)
report 8.0/10 threshold - Business reports
presentation 7.5/10 threshold - Slides and talks
@@ -145,7 +145,7 @@ def list_options():
draft 6.5/10 threshold - Working drafts (lowest quality)
default 7.5/10 threshold - General purpose
-──────────────────────────────────────────────────────────────────────────────
+------------------------------------------------------------------------------
Examples:
python generate_infographic.py "5 benefits of exercise" -o benefits.png --type list
python generate_infographic.py "AI adoption 2020-2025" -o timeline.png --type timeline --style technology
diff --git a/skills/infographics/scripts/generate_infographic_ai.py b/skills/infographics/scripts/generate_infographic_ai.py
index 777ca829..03d05f3e 100644
--- a/skills/infographics/scripts/generate_infographic_ai.py
+++ b/skills/infographics/scripts/generate_infographic_ai.py
@@ -859,24 +859,24 @@ Incorporate specific numbers, percentages, and dates from the research."""
if isinstance(error_msg, dict):
error_msg = error_msg.get("message", str(error_msg))
self._last_error = f"API Error: {error_msg}"
- print(f"✗ {self._last_error}")
+ print(f"[FAIL] {self._last_error}")
return None
image_data = self._extract_image_from_response(response)
if image_data:
- self._log(f"✓ Generated image ({len(image_data)} bytes)")
+ self._log(f"[OK] Generated image ({len(image_data)} bytes)")
else:
self._last_error = "No image data in API response"
- self._log(f"✗ {self._last_error}")
+ self._log(f"[FAIL] {self._last_error}")
return image_data
except RuntimeError as e:
self._last_error = str(e)
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
return None
except Exception as e:
self._last_error = f"Unexpected error: {str(e)}"
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
return None
def review_image(self, image_path: str, original_prompt: str,
@@ -988,7 +988,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
# provider hiccup. The image itself is fine; only its review is
# missing, and saying so beats inventing a score.
reason = "the review model returned no choices"
- self._log(f"⚠ Review unavailable: {reason}")
+ self._log(f"[WARN] Review unavailable: {reason}")
return ReviewResult(
f"Review unavailable: {reason}.",
None, False, reviewed=False, error=reason,
@@ -1013,7 +1013,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
if score is None and verdict is None:
reason = "no score or verdict found in the review"
- self._log(f"⚠ Review unusable: {reason}")
+ self._log(f"[WARN] Review unusable: {reason}")
return ReviewResult(
content if content else f"Review unusable: {reason}.",
None, False, reviewed=True, error=reason,
@@ -1024,7 +1024,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
)
shown = f"{score}/10" if score is not None else "not stated"
- self._log(f"✓ Review complete (Score: {shown}, Threshold: {threshold}/10)")
+ self._log(f"[OK] Review complete (Score: {shown}, Threshold: {threshold}/10)")
self._log(f" Verdict: {'Needs improvement' if needs_improvement else 'Acceptable'}")
return ReviewResult(
@@ -1037,7 +1037,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
except Exception as e:
# A failed review must not fail the run -- the image is already
# generated and saved -- but it must not read as a pass either.
- self._log(f"⚠ Review failed: {str(e)}")
+ self._log(f"[WARN] Review failed: {str(e)}")
return ReviewResult(
f"Review failed: {str(e)}",
None, False, reviewed=False, error=str(e),
@@ -1187,7 +1187,7 @@ Generate an improved version that:
research_result = self.research_topic(user_prompt, infographic_type)
if research_result.get("success"):
- print(f"✓ Research complete - gathered facts and statistics")
+ print(f"[OK] Research complete - gathered facts and statistics")
results["research_data"] = research_result
# Enhance the prompt with researched data
@@ -1197,9 +1197,9 @@ Generate an improved version that:
research_path = output_dir / f"{base_name}_research.json"
with open(research_path, "w") as f:
json.dump(research_result, f, indent=2)
- print(f"✓ Research saved: {research_path}")
+ print(f"[OK] Research saved: {research_path}")
else:
- print(f"⚠ Research failed: {research_result.get('error', 'Unknown error')}")
+ print(f"[WARN] Research failed: {research_result.get('error', 'Unknown error')}")
print(f" Proceeding with original prompt...")
# Build initial prompt (using enhanced prompt if research was done)
@@ -1217,7 +1217,7 @@ Generate an improved version that:
if not image_data:
error_msg = getattr(self, '_last_error', 'Generation failed')
- print(f"✗ Generation failed: {error_msg}")
+ print(f"[FAIL] Generation failed: {error_msg}")
results["iterations"].append({
"iteration": i,
"success": False,
@@ -1229,7 +1229,7 @@ Generate an improved version that:
iter_path = output_dir / f"{base_name}_v{i}{extension}"
with open(iter_path, "wb") as f:
f.write(image_data)
- print(f"✓ Saved: {iter_path}")
+ print(f"[OK] Saved: {iter_path}")
# Review the image with the vision review model
print(f"Reviewing with {self.review_model}...")
@@ -1237,9 +1237,9 @@ Generate an improved version that:
str(iter_path), user_prompt, infographic_type, i, doc_type, iterations
)
if review.score is not None:
- print(f"✓ Score: {review.score}/10 (threshold: {threshold}/10)")
+ print(f"[OK] Score: {review.score}/10 (threshold: {threshold}/10)")
else:
- print(f"⚠ Review unavailable — image kept, quality not verified")
+ print(f"[WARN] Review unavailable — image kept, quality not verified")
print(f" Reason: {review.error}")
# Save iteration results
@@ -1259,12 +1259,12 @@ Generate an improved version that:
# Check if quality is acceptable
if not review.needs_improvement:
if review.score is not None:
- print(f"\n✓ Quality meets threshold ({review.score} >= {threshold})")
+ print(f"\n[OK] Quality meets threshold ({review.score} >= {threshold})")
print(f" No further iterations needed!")
reason = f"Quality score {review.score} meets threshold {threshold}"
else:
# Regenerating cannot fix a reviewer that did not answer.
- print(f"\n⚠ Stopping without a verified score — review the image yourself")
+ print(f"\n[WARN] Stopping without a verified score — review the image yourself")
reason = f"Review did not produce a score: {review.error}"
results["final_image"] = str(iter_path)
results["final_score"] = review.score
@@ -1276,7 +1276,7 @@ Generate an improved version that:
# If this is the last iteration, we're done
if i == iterations:
- print(f"\n⚠ Maximum iterations reached")
+ print(f"\n[WARN] Maximum iterations reached")
results["final_image"] = str(iter_path)
results["final_score"] = review.score
results["final_reviewed"] = review.reviewed and review.score is not None
@@ -1284,7 +1284,7 @@ Generate an improved version that:
break
# Quality below threshold - improve prompt
- print(f"\n⚠ Quality below threshold ({review.score} < {threshold})")
+ print(f"\n[WARN] Quality below threshold ({review.score} < {threshold})")
print(f"Improving prompt based on feedback...")
current_prompt = self.improve_prompt(
user_prompt, review.critique, infographic_type, style, palette, background, i + 1,
@@ -1297,13 +1297,13 @@ Generate an improved version that:
if final_iter_path != output_path:
import shutil
shutil.copy(final_iter_path, output_path)
- print(f"\n✓ Final image: {output_path}")
+ print(f"\n[OK] Final image: {output_path}")
# Save review log
log_path = output_dir / f"{base_name}_review_log.json"
with open(log_path, "w") as f:
json.dump(results, f, indent=2)
- print(f"✓ Review log: {log_path}")
+ print(f"[OK] Review log: {log_path}")
print(f"\n{'='*60}")
print(f"Generation Complete!")
@@ -1429,16 +1429,16 @@ Environment:
)
if results["success"]:
- print(f"\n✓ Success! Infographic saved to: {args.output}")
+ print(f"\n[OK] Success! Infographic saved to: {args.output}")
if results.get("early_stop"):
iterations_used = len([r for r in results['iterations'] if r.get('success')])
print(f" (Completed in {iterations_used} iteration(s) - quality threshold met)")
sys.exit(0)
else:
- print(f"\n✗ Generation failed. Check review log for details.")
+ print(f"\n[FAIL] Generation failed. Check review log for details.")
sys.exit(1)
except Exception as e:
- print(f"\n✗ Error: {str(e)}")
+ print(f"\n[FAIL] Error: {str(e)}")
sys.exit(1)
diff --git a/skills/latex-posters/SKILL.md b/skills/latex-posters/SKILL.md
index 61887d49..14c06349 100644
--- a/skills/latex-posters/SKILL.md
+++ b/skills/latex-posters/SKILL.md
@@ -3,7 +3,7 @@ name: latex-posters
description: "Create professional research posters in LaTeX using beamerposter, tikzposter, or baposter. Support for conference presentations, academic posters, and scientific communication. Includes layout design, color schemes, multi-column formats, figure integration, and poster-specific best practices for visual communication."
allowed-tools: Read Write Edit Bash
metadata:
- version: "1.8"
+ version: "1.9"
skill-author: K-Dense Inc.
openclaw:
primaryEnv: OPENROUTER_API_KEY
diff --git a/skills/latex-posters/scripts/generate_schematic_ai.py b/skills/latex-posters/scripts/generate_schematic_ai.py
index 86219d24..09637449 100644
--- a/skills/latex-posters/scripts/generate_schematic_ai.py
+++ b/skills/latex-posters/scripts/generate_schematic_ai.py
@@ -464,15 +464,15 @@ IMPORTANT - NO FIGURE NUMBERS:
if isinstance(error_msg, dict):
error_msg = error_msg.get("message", str(error_msg))
self._last_error = f"API Error: {error_msg}"
- print(f"✗ {self._last_error}")
+ print(f"[FAIL] {self._last_error}")
return None
image_data = self._extract_image_from_response(response)
if image_data:
- self._log(f"✓ Generated image ({len(image_data)} bytes)")
+ self._log(f"[OK] Generated image ({len(image_data)} bytes)")
else:
self._last_error = "No image data in API response - model may not support image generation"
- self._log(f"✗ {self._last_error}")
+ self._log(f"[FAIL] {self._last_error}")
# Additional debug info when image extraction fails
if self.verbose and "choices" in response:
msg = response["choices"][0].get("message", {})
@@ -481,11 +481,11 @@ IMPORTANT - NO FIGURE NUMBERS:
return image_data
except RuntimeError as e:
self._last_error = str(e)
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
return None
except Exception as e:
self._last_error = f"Unexpected error: {str(e)}"
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
import traceback
if self.verbose:
traceback.print_exc()
@@ -598,7 +598,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
# provider hiccup. The diagram itself is fine; only its review
# is missing, and saying so beats inventing a score.
reason = "the review model returned no choices"
- self._log(f"⚠ Review unavailable: {reason}")
+ self._log(f"[WARN] Review unavailable: {reason}")
return ReviewResult(
f"Review unavailable: {reason}.",
None, False, reviewed=False, error=reason,
@@ -625,7 +625,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
if score is None and verdict is None:
reason = "no score or verdict found in the review"
- self._log(f"⚠ Review unusable: {reason}")
+ self._log(f"[WARN] Review unusable: {reason}")
return ReviewResult(
content if content else f"Review unusable: {reason}.",
None, False, reviewed=True, error=reason,
@@ -636,7 +636,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
)
shown = f"{score}/10" if score is not None else "not stated"
- self._log(f"✓ Review complete (Score: {shown}, Threshold: {threshold}/10)")
+ self._log(f"[OK] Review complete (Score: {shown}, Threshold: {threshold}/10)")
self._log(f" Verdict: {'Needs improvement' if needs_improvement else 'Acceptable'}")
return ReviewResult(
@@ -649,7 +649,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
except Exception as e:
# A failed review must not fail the run -- the image is already
# generated and saved -- but it must not read as a pass either.
- self._log(f"⚠ Review failed: {str(e)}")
+ self._log(f"[WARN] Review failed: {str(e)}")
return ReviewResult(
f"Review failed: {str(e)}",
None, False, reviewed=False, error=str(e),
@@ -750,7 +750,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
if not image_data:
error_msg = getattr(self, '_last_error', 'Image generation failed - no image data returned')
- print(f"✗ Generation failed: {error_msg}")
+ print(f"[FAIL] Generation failed: {error_msg}")
results["iterations"].append({
"iteration": i,
"success": False,
@@ -762,7 +762,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
iter_path = output_dir / f"{base_name}_v{i}{extension}"
with open(iter_path, "wb") as f:
f.write(image_data)
- print(f"✓ Saved: {iter_path}")
+ print(f"[OK] Saved: {iter_path}")
# Review the image with the vision review model
print(f"Reviewing image with {self.review_model}...")
@@ -770,9 +770,9 @@ Generate a publication-quality scientific diagram that meets all the guidelines
str(iter_path), user_prompt, i, doc_type, iterations
)
if review.score is not None:
- print(f"✓ Score: {review.score}/10 (threshold: {threshold}/10)")
+ print(f"[OK] Score: {review.score}/10 (threshold: {threshold}/10)")
else:
- print(f"⚠ Review unavailable — image kept, quality not verified")
+ print(f"[WARN] Review unavailable — image kept, quality not verified")
print(f" Reason: {review.error}")
# Save iteration results
@@ -792,13 +792,13 @@ Generate a publication-quality scientific diagram that meets all the guidelines
# Check if quality is acceptable - STOP EARLY if so
if not review.needs_improvement:
if review.score is not None:
- print(f"\n✓ Quality meets {doc_type} threshold ({review.score} >= {threshold})")
+ print(f"\n[OK] Quality meets {doc_type} threshold ({review.score} >= {threshold})")
print(f" No further iterations needed!")
reason = (f"Quality score {review.score} meets threshold "
f"{threshold} for {doc_type}")
else:
# Regenerating cannot fix a reviewer that did not answer.
- print(f"\n⚠ Stopping without a verified score — review the image yourself")
+ print(f"\n[WARN] Stopping without a verified score — review the image yourself")
reason = f"Review did not produce a score: {review.error}"
results["final_image"] = str(iter_path)
results["final_score"] = review.score
@@ -810,7 +810,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
# If this is the last iteration, we're done regardless
if i == iterations:
- print(f"\n⚠ Maximum iterations reached")
+ print(f"\n[WARN] Maximum iterations reached")
results["final_image"] = str(iter_path)
results["final_score"] = review.score
results["final_reviewed"] = review.reviewed and review.score is not None
@@ -818,7 +818,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
break
# Quality below threshold - improve prompt for next iteration
- print(f"\n⚠ Quality below threshold ({review.score} < {threshold})")
+ print(f"\n[WARN] Quality below threshold ({review.score} < {threshold})")
print(f"Improving prompt based on feedback...")
current_prompt = self.improve_prompt(user_prompt, review.critique, i + 1)
@@ -828,13 +828,13 @@ Generate a publication-quality scientific diagram that meets all the guidelines
if final_iter_path != output_path:
import shutil
shutil.copy(final_iter_path, output_path)
- print(f"\n✓ Final image: {output_path}")
+ print(f"\n[OK] Final image: {output_path}")
# Save review log
log_path = output_dir / f"{base_name}_review_log.json"
with open(log_path, "w") as f:
json.dump(results, f, indent=2)
- print(f"✓ Review log: {log_path}")
+ print(f"[OK] Review log: {log_path}")
print(f"\n{'='*60}")
print(f"Generation Complete!")
@@ -927,7 +927,7 @@ Environment:
)
if results["success"]:
- print(f"\n✓ Success! Image saved to: {args.output}")
+ print(f"\n[OK] Success! Image saved to: {args.output}")
used = len([r for r in results['iterations'] if r.get('success')])
if results.get("final_reviewed"):
if results.get("early_stop"):
@@ -938,10 +938,10 @@ Environment:
f" the review produced no score. Check the image yourself.)")
sys.exit(0)
else:
- print(f"\n✗ Generation failed. Check review log for details.")
+ print(f"\n[FAIL] Generation failed. Check review log for details.")
sys.exit(1)
except Exception as e:
- print(f"\n✗ Error: {str(e)}")
+ print(f"\n[FAIL] Error: {str(e)}")
sys.exit(1)
diff --git a/skills/liteparse/SKILL.md b/skills/liteparse/SKILL.md
index 51d33e3c..35870314 100644
--- a/skills/liteparse/SKILL.md
+++ b/skills/liteparse/SKILL.md
@@ -5,7 +5,7 @@ license: Apache-2.0
allowed-tools: Read Write Edit Bash
compatibility: Python 3.10+. Optional LibreOffice (Office formats) and ImageMagick (images). Bundled Tesseract for OCR. All processing is local — no cloud API required.
metadata:
- version: "1.3"
+ version: "1.4"
skill-author: K-Dense Inc.
---
diff --git a/skills/liteparse/scripts/batch_parse_dir.py b/skills/liteparse/scripts/batch_parse_dir.py
index fb80799e..efb7e311 100644
--- a/skills/liteparse/scripts/batch_parse_dir.py
+++ b/skills/liteparse/scripts/batch_parse_dir.py
@@ -150,10 +150,10 @@ def main(argv: Optional[List[str]] = None) -> int:
if success:
ok += 1
if not args.quiet:
- print(f"✓ {path}: {msg}")
+ print(f"[OK] {path}: {msg}")
else:
fail += 1
- print(f"✗ {path}: {msg}", file=sys.stderr)
+ print(f"[FAIL] {path}: {msg}", file=sys.stderr)
print(f"Done: {ok} succeeded, {fail} failed, {len(files)} total")
return 0 if fail == 0 else 1
diff --git a/skills/literature-review/SKILL.md b/skills/literature-review/SKILL.md
index 9ecbc97a..c1ea86e8 100644
--- a/skills/literature-review/SKILL.md
+++ b/skills/literature-review/SKILL.md
@@ -4,7 +4,7 @@ description: Conduct comprehensive, systematic literature reviews using multiple
allowed-tools: Read Write Edit Bash
license: MIT license
metadata:
- version: "1.9"
+ version: "1.10"
skill-author: K-Dense Inc.
openclaw:
primaryEnv: OPENROUTER_API_KEY
diff --git a/skills/literature-review/scripts/generate_pdf.py b/skills/literature-review/scripts/generate_pdf.py
index b9cc7dd3..a0c41bd1 100644
--- a/skills/literature-review/scripts/generate_pdf.py
+++ b/skills/literature-review/scripts/generate_pdf.py
@@ -89,7 +89,7 @@ def generate_pdf(
print(f"Generating PDF: {output_pdf}")
print(f"Command: {' '.join(cmd)}")
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
- print(f"✓ PDF generated successfully: {output_pdf}")
+ print(f"[OK] PDF generated successfully: {output_pdf}")
return True
except subprocess.CalledProcessError as e:
print(f"Error generating PDF:")
@@ -108,9 +108,9 @@ def check_dependencies():
for name, cmd in dependencies.items():
try:
subprocess.run(cmd.split(), capture_output=True, check=True)
- print(f"✓ {name} is installed")
+ print(f"[OK] {name} is installed")
except (subprocess.CalledProcessError, FileNotFoundError):
- print(f"✗ {name} is NOT installed")
+ print(f"[FAIL] {name} is NOT installed")
missing.append(name)
if missing:
diff --git a/skills/literature-review/scripts/generate_schematic_ai.py b/skills/literature-review/scripts/generate_schematic_ai.py
index 86219d24..09637449 100644
--- a/skills/literature-review/scripts/generate_schematic_ai.py
+++ b/skills/literature-review/scripts/generate_schematic_ai.py
@@ -464,15 +464,15 @@ IMPORTANT - NO FIGURE NUMBERS:
if isinstance(error_msg, dict):
error_msg = error_msg.get("message", str(error_msg))
self._last_error = f"API Error: {error_msg}"
- print(f"✗ {self._last_error}")
+ print(f"[FAIL] {self._last_error}")
return None
image_data = self._extract_image_from_response(response)
if image_data:
- self._log(f"✓ Generated image ({len(image_data)} bytes)")
+ self._log(f"[OK] Generated image ({len(image_data)} bytes)")
else:
self._last_error = "No image data in API response - model may not support image generation"
- self._log(f"✗ {self._last_error}")
+ self._log(f"[FAIL] {self._last_error}")
# Additional debug info when image extraction fails
if self.verbose and "choices" in response:
msg = response["choices"][0].get("message", {})
@@ -481,11 +481,11 @@ IMPORTANT - NO FIGURE NUMBERS:
return image_data
except RuntimeError as e:
self._last_error = str(e)
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
return None
except Exception as e:
self._last_error = f"Unexpected error: {str(e)}"
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
import traceback
if self.verbose:
traceback.print_exc()
@@ -598,7 +598,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
# provider hiccup. The diagram itself is fine; only its review
# is missing, and saying so beats inventing a score.
reason = "the review model returned no choices"
- self._log(f"⚠ Review unavailable: {reason}")
+ self._log(f"[WARN] Review unavailable: {reason}")
return ReviewResult(
f"Review unavailable: {reason}.",
None, False, reviewed=False, error=reason,
@@ -625,7 +625,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
if score is None and verdict is None:
reason = "no score or verdict found in the review"
- self._log(f"⚠ Review unusable: {reason}")
+ self._log(f"[WARN] Review unusable: {reason}")
return ReviewResult(
content if content else f"Review unusable: {reason}.",
None, False, reviewed=True, error=reason,
@@ -636,7 +636,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
)
shown = f"{score}/10" if score is not None else "not stated"
- self._log(f"✓ Review complete (Score: {shown}, Threshold: {threshold}/10)")
+ self._log(f"[OK] Review complete (Score: {shown}, Threshold: {threshold}/10)")
self._log(f" Verdict: {'Needs improvement' if needs_improvement else 'Acceptable'}")
return ReviewResult(
@@ -649,7 +649,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
except Exception as e:
# A failed review must not fail the run -- the image is already
# generated and saved -- but it must not read as a pass either.
- self._log(f"⚠ Review failed: {str(e)}")
+ self._log(f"[WARN] Review failed: {str(e)}")
return ReviewResult(
f"Review failed: {str(e)}",
None, False, reviewed=False, error=str(e),
@@ -750,7 +750,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
if not image_data:
error_msg = getattr(self, '_last_error', 'Image generation failed - no image data returned')
- print(f"✗ Generation failed: {error_msg}")
+ print(f"[FAIL] Generation failed: {error_msg}")
results["iterations"].append({
"iteration": i,
"success": False,
@@ -762,7 +762,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
iter_path = output_dir / f"{base_name}_v{i}{extension}"
with open(iter_path, "wb") as f:
f.write(image_data)
- print(f"✓ Saved: {iter_path}")
+ print(f"[OK] Saved: {iter_path}")
# Review the image with the vision review model
print(f"Reviewing image with {self.review_model}...")
@@ -770,9 +770,9 @@ Generate a publication-quality scientific diagram that meets all the guidelines
str(iter_path), user_prompt, i, doc_type, iterations
)
if review.score is not None:
- print(f"✓ Score: {review.score}/10 (threshold: {threshold}/10)")
+ print(f"[OK] Score: {review.score}/10 (threshold: {threshold}/10)")
else:
- print(f"⚠ Review unavailable — image kept, quality not verified")
+ print(f"[WARN] Review unavailable — image kept, quality not verified")
print(f" Reason: {review.error}")
# Save iteration results
@@ -792,13 +792,13 @@ Generate a publication-quality scientific diagram that meets all the guidelines
# Check if quality is acceptable - STOP EARLY if so
if not review.needs_improvement:
if review.score is not None:
- print(f"\n✓ Quality meets {doc_type} threshold ({review.score} >= {threshold})")
+ print(f"\n[OK] Quality meets {doc_type} threshold ({review.score} >= {threshold})")
print(f" No further iterations needed!")
reason = (f"Quality score {review.score} meets threshold "
f"{threshold} for {doc_type}")
else:
# Regenerating cannot fix a reviewer that did not answer.
- print(f"\n⚠ Stopping without a verified score — review the image yourself")
+ print(f"\n[WARN] Stopping without a verified score — review the image yourself")
reason = f"Review did not produce a score: {review.error}"
results["final_image"] = str(iter_path)
results["final_score"] = review.score
@@ -810,7 +810,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
# If this is the last iteration, we're done regardless
if i == iterations:
- print(f"\n⚠ Maximum iterations reached")
+ print(f"\n[WARN] Maximum iterations reached")
results["final_image"] = str(iter_path)
results["final_score"] = review.score
results["final_reviewed"] = review.reviewed and review.score is not None
@@ -818,7 +818,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
break
# Quality below threshold - improve prompt for next iteration
- print(f"\n⚠ Quality below threshold ({review.score} < {threshold})")
+ print(f"\n[WARN] Quality below threshold ({review.score} < {threshold})")
print(f"Improving prompt based on feedback...")
current_prompt = self.improve_prompt(user_prompt, review.critique, i + 1)
@@ -828,13 +828,13 @@ Generate a publication-quality scientific diagram that meets all the guidelines
if final_iter_path != output_path:
import shutil
shutil.copy(final_iter_path, output_path)
- print(f"\n✓ Final image: {output_path}")
+ print(f"\n[OK] Final image: {output_path}")
# Save review log
log_path = output_dir / f"{base_name}_review_log.json"
with open(log_path, "w") as f:
json.dump(results, f, indent=2)
- print(f"✓ Review log: {log_path}")
+ print(f"[OK] Review log: {log_path}")
print(f"\n{'='*60}")
print(f"Generation Complete!")
@@ -927,7 +927,7 @@ Environment:
)
if results["success"]:
- print(f"\n✓ Success! Image saved to: {args.output}")
+ print(f"\n[OK] Success! Image saved to: {args.output}")
used = len([r for r in results['iterations'] if r.get('success')])
if results.get("final_reviewed"):
if results.get("early_stop"):
@@ -938,10 +938,10 @@ Environment:
f" the review produced no score. Check the image yourself.)")
sys.exit(0)
else:
- print(f"\n✗ Generation failed. Check review log for details.")
+ print(f"\n[FAIL] Generation failed. Check review log for details.")
sys.exit(1)
except Exception as e:
- print(f"\n✗ Error: {str(e)}")
+ print(f"\n[FAIL] Error: {str(e)}")
sys.exit(1)
diff --git a/skills/literature-review/scripts/search_databases.py b/skills/literature-review/scripts/search_databases.py
index 19081cdc..6524c00a 100644
--- a/skills/literature-review/scripts/search_databases.py
+++ b/skills/literature-review/scripts/search_databases.py
@@ -295,7 +295,7 @@ def main():
if output_file:
with open(output_file, 'w', encoding='utf-8') as f:
f.write(output)
- print(f"✓ Results saved to: {output_file}")
+ print(f"[OK] Results saved to: {output_file}")
else:
print(output)
diff --git a/skills/phylogenetics/SKILL.md b/skills/phylogenetics/SKILL.md
index 68a97391..04bcbd92 100644
--- a/skills/phylogenetics/SKILL.md
+++ b/skills/phylogenetics/SKILL.md
@@ -3,7 +3,7 @@ name: phylogenetics
description: Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.
license: Unknown
metadata:
- version: "1.3"
+ version: "1.4"
skill-author: Kuan-lin Huang
---
diff --git a/skills/phylogenetics/scripts/phylogenetic_analysis.py b/skills/phylogenetics/scripts/phylogenetic_analysis.py
index fea5cfed..af9f1cee 100644
--- a/skills/phylogenetics/scripts/phylogenetic_analysis.py
+++ b/skills/phylogenetics/scripts/phylogenetic_analysis.py
@@ -72,7 +72,7 @@ def run_mafft(input_fasta: str, output_fasta: str, n_threads: int = 4,
if result.returncode != 0:
raise RuntimeError(f"MAFFT failed:\n{result.stderr[:500]}")
- print(f" Alignment complete → {output_fasta}")
+ print(f" Alignment complete -> {output_fasta}")
return output_fasta
@@ -111,7 +111,7 @@ def run_iqtree(aligned_fasta: str, prefix: str, seq_type: str = "nt",
if "Best-fit model" in line:
print(f" {line.strip()}")
- print(f" Tree saved → {tree_file}")
+ print(f" Tree saved -> {tree_file}")
return tree_file
@@ -130,7 +130,7 @@ def run_fasttree(aligned_fasta: str, output_tree: str, seq_type: str = "nt") ->
if result.returncode != 0:
raise RuntimeError(f"FastTree failed:\n{result.stderr[:500]}")
- print(f" Tree saved → {output_tree}")
+ print(f" Tree saved -> {output_tree}")
return output_tree
@@ -164,13 +164,13 @@ def visualize_tree(tree_file: str, output_png: str, outgroup: str = None) -> Non
try:
t.render(output_png, tree_style=ts, w=800, units="px")
- print(f" Visualization saved → {output_png}")
+ print(f" Visualization saved -> {output_png}")
except Exception as e:
print(f" Visualization failed (display issue?): {e}")
# Save tree in Newick format as fallback
rooted_nwk = output_png.replace(".png", "_rooted.nwk")
t.write(format=1, outfile=rooted_nwk)
- print(f" Rooted tree saved → {rooted_nwk}")
+ print(f" Rooted tree saved -> {rooted_nwk}")
def tree_summary(tree_file: str) -> dict:
diff --git a/skills/pptx/SKILL.md b/skills/pptx/SKILL.md
index 5fdf15c9..d8fd91dc 100644
--- a/skills/pptx/SKILL.md
+++ b/skills/pptx/SKILL.md
@@ -3,7 +3,7 @@ name: pptx
description: "Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill."
license: Proprietary. LICENSE.txt has complete terms
metadata:
- version: "2.2"
+ version: "2.3"
skill-author: Anthropic, PBC
source: https://github.com/anthropics/skills/tree/main/skills/pptx
---
diff --git a/skills/pptx/scripts/office/validators/docx.py b/skills/pptx/scripts/office/validators/docx.py
index b1814994..bdc477d1 100644
--- a/skills/pptx/scripts/office/validators/docx.py
+++ b/skills/pptx/scripts/office/validators/docx.py
@@ -252,7 +252,7 @@ class DOCXSchemaValidator(BaseSchemaValidator):
original_count = self.count_paragraphs_in_original()
diff = new_count - original_count
diff_str = f"+{diff}" if diff > 0 else str(diff)
- print(f"\nParagraphs: {original_count} → {new_count} ({diff_str})")
+ print(f"\nParagraphs: {original_count} -> {new_count} ({diff_str})")
def _parse_id_value(self, val: str, base: int = 16) -> int:
return int(val, base)
@@ -446,7 +446,7 @@ class DOCXSchemaValidator(BaseSchemaValidator):
elem.setAttribute(attr_name, new_id)
pending.append(
- f" Repaired: {xml_file.name}: durableId {durable_id} → {new_id}"
+ f" Repaired: {xml_file.name}: durableId {durable_id} -> {new_id}"
)
modified = True
diff --git a/skills/pydeseq2/SKILL.md b/skills/pydeseq2/SKILL.md
index 16d7fbcd..58ab1798 100644
--- a/skills/pydeseq2/SKILL.md
+++ b/skills/pydeseq2/SKILL.md
@@ -5,7 +5,7 @@ allowed-tools: Read Write Edit Bash
compatibility: Requires Python >=3.11 and PyDESeq2 0.5.4-compatible dependencies. Examples target PyDESeq2 0.5.x, formulaic design strings, explicit contrasts, and uv-based installs.
license: MIT license
metadata:
- version: "1.5"
+ version: "1.6"
skill-author: K-Dense Inc.
---
diff --git a/skills/pydeseq2/scripts/run_deseq2_analysis.py b/skills/pydeseq2/scripts/run_deseq2_analysis.py
index c6555340..114e8119 100644
--- a/skills/pydeseq2/scripts/run_deseq2_analysis.py
+++ b/skills/pydeseq2/scripts/run_deseq2_analysis.py
@@ -116,7 +116,7 @@ def run_deseq2(counts_df, metadata, design, n_cpus=1):
dds.deseq2()
- print("\n✓ DESeq2 fitting complete")
+ print("\n[OK] DESeq2 fitting complete")
return dds, inference
@@ -157,14 +157,14 @@ def run_statistical_tests(dds, contrast, alpha=0.05, shrink_lfc=True, inference=
ds.summary()
- print("\n✓ Statistical testing complete")
+ print("\n[OK] Statistical testing complete")
# Optional LFC shrinkage
if shrink_lfc:
print("\nApplying LFC shrinkage for visualization...")
coeff = shrink_coeff or infer_shrink_coeff(dds, contrast)
ds.lfc_shrink(coeff=coeff)
- print("✓ LFC shrinkage complete")
+ print("[OK] LFC shrinkage complete")
return ds
@@ -381,7 +381,7 @@ Examples:
if args.plots:
create_plots(ds, args.output)
- print(f"\n✓ Analysis complete! Results saved to {args.output}/")
+ print(f"\n[OK] Analysis complete! Results saved to {args.output}/")
if __name__ == "__main__":
diff --git a/skills/pymc/SKILL.md b/skills/pymc/SKILL.md
index 2e3b4e32..87e969a9 100644
--- a/skills/pymc/SKILL.md
+++ b/skills/pymc/SKILL.md
@@ -5,7 +5,7 @@ allowed-tools: Read Write Edit Bash
compatibility: Requires Python 3.12+ and PyMC 6.0.1-compatible dependencies. Install reproducible environments with `uv pip install "pymc[nutpie]==6.0.1"`; optional NumPyro or BlackJAX samplers require separately pinned JAX-compatible dependencies.
license: Apache License, Version 2.0
metadata:
- version: "1.5"
+ version: "1.6"
skill-author: K-Dense Inc.
---
diff --git a/skills/pymc/assets/hierarchical_model_template.py b/skills/pymc/assets/hierarchical_model_template.py
index dfd277ac..d72da1e0 100644
--- a/skills/pymc/assets/hierarchical_model_template.py
+++ b/skills/pymc/assets/hierarchical_model_template.py
@@ -148,27 +148,27 @@ print(summary)
# Check convergence
bad_rhat = summary[summary['r_hat'] > 1.01]
if len(bad_rhat) > 0:
- print(f"\n⚠️ WARNING: {len(bad_rhat)} parameters with R-hat > 1.01")
+ print(f"\n[WARN] WARNING: {len(bad_rhat)} parameters with R-hat > 1.01")
print(bad_rhat[['r_hat']])
else:
- print("\n✓ All R-hat values < 1.01 (good convergence)")
+ print("\n[OK] All R-hat values < 1.01 (good convergence)")
# Check effective sample size
low_ess = summary[summary['ess_bulk'] < 400]
if len(low_ess) > 0:
- print(f"\n⚠️ WARNING: {len(low_ess)} parameters with ESS < 400")
+ print(f"\n[WARN] WARNING: {len(low_ess)} parameters with ESS < 400")
print(low_ess[['ess_bulk']].head(10))
else:
- print("\n✓ All ESS values > 400 (sufficient samples)")
+ print("\n[OK] All ESS values > 400 (sufficient samples)")
# Check divergences
divergences = idata.sample_stats.diverging.sum().item()
if divergences > 0:
- print(f"\n⚠️ WARNING: {divergences} divergent transitions")
+ print(f"\n[WARN] WARNING: {divergences} divergent transitions")
print(" This is common in hierarchical models - non-centered parameterization already applied")
print(" Consider even higher target_accept or stronger hyperpriors")
else:
- print("\n✓ No divergences")
+ print("\n[OK] No divergences")
# Trace plots for hyperparameters
az.plot_trace_dist(
diff --git a/skills/pymc/assets/linear_regression_template.py b/skills/pymc/assets/linear_regression_template.py
index 32a53647..a104a3a8 100644
--- a/skills/pymc/assets/linear_regression_template.py
+++ b/skills/pymc/assets/linear_regression_template.py
@@ -119,26 +119,26 @@ print(summary)
# Check convergence
bad_rhat = summary[summary['r_hat'] > 1.01]
if len(bad_rhat) > 0:
- print(f"\n⚠️ WARNING: {len(bad_rhat)} parameters with R-hat > 1.01")
+ print(f"\n[WARN] WARNING: {len(bad_rhat)} parameters with R-hat > 1.01")
print(bad_rhat[['r_hat']])
else:
- print("\n✓ All R-hat values < 1.01 (good convergence)")
+ print("\n[OK] All R-hat values < 1.01 (good convergence)")
# Check effective sample size
low_ess = summary[summary['ess_bulk'] < 400]
if len(low_ess) > 0:
- print(f"\n⚠️ WARNING: {len(low_ess)} parameters with ESS < 400")
+ print(f"\n[WARN] WARNING: {len(low_ess)} parameters with ESS < 400")
print(low_ess[['ess_bulk', 'ess_tail']])
else:
- print("\n✓ All ESS values > 400 (sufficient samples)")
+ print("\n[OK] All ESS values > 400 (sufficient samples)")
# Check divergences
divergences = idata.sample_stats.diverging.sum().item()
if divergences > 0:
- print(f"\n⚠️ WARNING: {divergences} divergent transitions")
+ print(f"\n[WARN] WARNING: {divergences} divergent transitions")
print(" Consider increasing target_accept or reparameterizing")
else:
- print("\n✓ No divergences")
+ print("\n[OK] No divergences")
# Trace plots
az.plot_trace_dist(idata, var_names=['alpha', 'beta', 'sigma'])
diff --git a/skills/pymc/scripts/model_comparison.py b/skills/pymc/scripts/model_comparison.py
index fafd1366..27e479f0 100644
--- a/skills/pymc/scripts/model_comparison.py
+++ b/skills/pymc/scripts/model_comparison.py
@@ -97,7 +97,7 @@ def compare_models(models_dict: Dict[str, Any],
print("="*70)
best_model = comparison.index[0]
- print(f"\n✓ Best model: {best_model}")
+ print(f"\n[OK] Best model: {best_model}")
# Check for a clear winner. Vehtari et al. recommend treating an ELPD
# difference below 4 as small, and otherwise judging it against the
@@ -107,16 +107,16 @@ def compare_models(models_dict: Dict[str, Any],
delta_se = comparison.iloc[1]['dse']
if delta < 4:
- print(f" → Models are SIMILAR (ELPD difference {delta:.1f} < 4)")
+ print(f" -> Models are SIMILAR (ELPD difference {delta:.1f} < 4)")
print(" Consider model averaging or choose based on simplicity")
elif delta > 2 * delta_se:
print(
- f" → STRONG evidence for {best_model} "
+ f" -> STRONG evidence for {best_model} "
f"(ELPD difference {delta:.1f} > 2 SE)"
)
else:
print(
- f" → MODERATE evidence for {best_model} "
+ f" -> MODERATE evidence for {best_model} "
f"(ELPD difference {delta:.1f}, within 2 SE)"
)
@@ -128,9 +128,9 @@ def compare_models(models_dict: Dict[str, Any],
if isinstance(diagnostic, str) and diagnostic.strip() not in ('', 'ok')
]
if flagged:
- print("\n⚠️ WARNING: Some models have reliability issues")
+ print("\n[WARN] WARNING: Some models have reliability issues")
print(f" Models with warnings: {', '.join(flagged)}")
- print(" → Check Pareto-k diagnostics with check_loo_reliability()")
+ print(" -> Check Pareto-k diagnostics with check_loo_reliability()")
return comparison
@@ -186,25 +186,25 @@ def check_loo_reliability(models_dict: Dict[str, Any],
if verbose:
print(f"Pareto-k diagnostics:")
print(f" • Good (k < 0.5): {(pareto_k < 0.5).sum()} observations")
- print(f" • OK (0.5 ≤ k < 0.7): {((pareto_k >= 0.5) & (pareto_k < 0.7)).sum()} observations")
- print(f" • Bad (0.7 ≤ k < 1.0): {((pareto_k >= 0.7) & (pareto_k < 1.0)).sum()} observations")
- print(f" • Very bad (k ≥ 1.0): {(pareto_k >= 1.0).sum()} observations")
+ print(f" • OK (0.5 <= k < 0.7): {((pareto_k >= 0.5) & (pareto_k < 0.7)).sum()} observations")
+ print(f" • Bad (0.7 <= k < 1.0): {((pareto_k >= 0.7) & (pareto_k < 1.0)).sum()} observations")
+ print(f" • Very bad (k >= 1.0): {(pareto_k >= 1.0).sum()} observations")
print(f" • Maximum k: {pareto_k.max():.3f}")
if n_high > 0:
- print(f"\n⚠️ {n_high} observations with k > {threshold}")
+ print(f"\n[WARN] {n_high} observations with k > {threshold}")
print(" LOO approximation may be unreliable for these points")
print(" Solutions:")
- print(" → Use WAIC instead (less sensitive to outliers)")
- print(" → Investigate influential observations")
- print(" → Consider more flexible model")
+ print(" -> Use WAIC instead (less sensitive to outliers)")
+ print(" -> Investigate influential observations")
+ print(" -> Consider more flexible model")
if n_very_high > 0:
- print(f"\n⚠️ {n_very_high} observations with k > 1.0")
+ print(f"\n[WARN] {n_very_high} observations with k > 1.0")
print(" These points have very high influence")
- print(" → Strongly consider K-fold CV or other validation")
+ print(" -> Strongly consider K-fold CV or other validation")
else:
- print(f"✓ All Pareto-k values < {threshold}")
+ print(f"[OK] All Pareto-k values < {threshold}")
print(" LOO estimates are reliable")
return results
@@ -304,7 +304,7 @@ def model_averaging(models_dict: Dict[str, Any],
# Weighted average
averaged = sum(w * p for w, p in zip(weights, predictions))
- print(f"\n✓ Model averaging complete")
+ print(f"\n[OK] Model averaging complete")
print(f" Combined predictions using {len(predictions)} models")
return averaged, weights
diff --git a/skills/pymc/scripts/model_diagnostics.py b/skills/pymc/scripts/model_diagnostics.py
index 1b79f28a..8e29502c 100644
--- a/skills/pymc/scripts/model_diagnostics.py
+++ b/skills/pymc/scripts/model_diagnostics.py
@@ -60,15 +60,15 @@ def check_diagnostics(idata, var_names=None, ess_threshold=400, rhat_threshold=1
bad_rhat = summary[summary['r_hat'] > rhat_threshold]
if len(bad_rhat) > 0:
- print(f"⚠️ WARNING: {len(bad_rhat)} parameters have R-hat > {rhat_threshold}")
+ print(f"[WARN] WARNING: {len(bad_rhat)} parameters have R-hat > {rhat_threshold}")
print("\nTop 10 worst R-hat values:")
print(bad_rhat[['r_hat']].sort_values('r_hat', ascending=False).head(10))
- print("\n⚠️ Chains may not have converged!")
- print(" → Run longer chains or check for multimodality")
+ print("\n[WARN] Chains may not have converged!")
+ print(" -> Run longer chains or check for multimodality")
results['has_issues'] = True
results['issues'].append('convergence')
else:
- print(f"✓ All R-hat values ≤ {rhat_threshold}")
+ print(f"[OK] All R-hat values <= {rhat_threshold}")
print(" Chains have converged successfully")
# 2. Check Effective Sample Size
@@ -78,7 +78,7 @@ def check_diagnostics(idata, var_names=None, ess_threshold=400, rhat_threshold=1
low_ess_tail = summary[summary['ess_tail'] < ess_threshold]
if len(low_ess_bulk) > 0 or len(low_ess_tail) > 0:
- print(f"⚠️ WARNING: Some parameters have ESS < {ess_threshold}")
+ print(f"[WARN] WARNING: Some parameters have ESS < {ess_threshold}")
if len(low_ess_bulk) > 0:
print(f"\n Bulk ESS issues ({len(low_ess_bulk)} parameters):")
@@ -88,12 +88,12 @@ def check_diagnostics(idata, var_names=None, ess_threshold=400, rhat_threshold=1
print(f"\n Tail ESS issues ({len(low_ess_tail)} parameters):")
print(low_ess_tail[['ess_tail']].sort_values('ess_tail').head(10))
- print("\n⚠️ High autocorrelation detected!")
- print(" → Sample more draws or reparameterize to reduce correlation")
+ print("\n[WARN] High autocorrelation detected!")
+ print(" -> Sample more draws or reparameterize to reduce correlation")
results['has_issues'] = True
results['issues'].append('low_ess')
else:
- print(f"✓ All ESS values ≥ {ess_threshold}")
+ print(f"[OK] All ESS values >= {ess_threshold}")
print(" Sufficient effective samples")
# 3. Check Divergences
@@ -105,18 +105,18 @@ def check_diagnostics(idata, var_names=None, ess_threshold=400, rhat_threshold=1
total_samples = len(idata.posterior.draw) * len(idata.posterior.chain)
divergence_rate = divergences / total_samples * 100
- print(f"⚠️ WARNING: {divergences} divergent transitions ({divergence_rate:.2f}% of samples)")
+ print(f"[WARN] WARNING: {divergences} divergent transitions ({divergence_rate:.2f}% of samples)")
print("\n Divergences indicate biased sampling in difficult posterior regions")
print(" Solutions:")
- print(" → Increase target_accept (e.g., target_accept=0.95 or 0.99)")
- print(" → Use non-centered parameterization for hierarchical models")
- print(" → Add stronger/more informative priors")
- print(" → Check for model misspecification")
+ print(" -> Increase target_accept (e.g., target_accept=0.95 or 0.99)")
+ print(" -> Use non-centered parameterization for hierarchical models")
+ print(" -> Add stronger/more informative priors")
+ print(" -> Check for model misspecification")
results['has_issues'] = True
results['issues'].append('divergences')
results['n_divergences'] = divergences
else:
- print("✓ No divergences detected")
+ print("[OK] No divergences detected")
print(" NUTS explored the posterior successfully")
# 4. Check Tree Depth
@@ -132,21 +132,21 @@ def check_diagnostics(idata, var_names=None, ess_threshold=400, rhat_threshold=1
total_samples = len(idata.posterior.draw) * len(idata.posterior.chain)
hit_rate = hits_max / total_samples * 100
- print(f"⚠️ WARNING: Hit maximum tree depth {hits_max} times ({hit_rate:.2f}% of samples)")
+ print(f"[WARN] WARNING: Hit maximum tree depth {hits_max} times ({hit_rate:.2f}% of samples)")
print("\n Model may be difficult to explore efficiently")
print(" Solutions:")
- print(" → Reparameterize model to improve geometry")
- print(" → Increase max_treedepth (if necessary)")
+ print(" -> Reparameterize model to improve geometry")
+ print(" -> Increase max_treedepth (if necessary)")
results['issues'].append('max_treedepth')
else:
- print(f"✓ No maximum tree depth issues")
+ print(f"[OK] No maximum tree depth issues")
print(f" Maximum tree depth reached: {max_tree_depth}")
# 5. Check Energy (if available)
if hasattr(idata.sample_stats, 'energy'):
print("\n5. ENERGY DIAGNOSTICS")
print("-" * 70)
- print("✓ Energy statistics available")
+ print("[OK] Energy statistics available")
print(" Use az.plot_energy(idata) to visualize energy transitions")
print(" Good separation indicates healthy HMC sampling")
@@ -156,11 +156,11 @@ def check_diagnostics(idata, var_names=None, ess_threshold=400, rhat_threshold=1
print("="*70)
if not results['has_issues']:
- print("✓ All diagnostics passed!")
+ print("[OK] All diagnostics passed!")
print(" Your model has sampled successfully.")
print(" Proceed with inference and interpretation.")
else:
- print("⚠️ Some diagnostics failed!")
+ print("[WARN] Some diagnostics failed!")
print(f" Issues found: {', '.join(results['issues'])}")
print(" Review warnings above and consider re-running with adjustments.")
@@ -205,7 +205,7 @@ def create_diagnostic_report(idata, var_names=None, output_dir='diagnostics/', s
plot_collection.savefig(
output_path / filename, dpi=300, bbox_inches='tight'
)
- print(f" ✓ Saved {label}")
+ print(f" [OK] Saved {label}")
if show:
plt.show()
else:
@@ -246,7 +246,7 @@ def create_diagnostic_report(idata, var_names=None, output_dir='diagnostics/', s
# Save summary to CSV
results['summary'].to_csv(output_path / 'summary_statistics.csv')
- print(f" ✓ Saved summary statistics")
+ print(f" [OK] Saved summary statistics")
print(f"\nDiagnostic report complete! Files saved in '{output_dir}'")
diff --git a/skills/scientific-schematics/SKILL.md b/skills/scientific-schematics/SKILL.md
index 1b7eae6f..0b714fd1 100644
--- a/skills/scientific-schematics/SKILL.md
+++ b/skills/scientific-schematics/SKILL.md
@@ -4,7 +4,7 @@ description: Create publication-quality scientific diagrams using Nano Banana 2
allowed-tools: Read Write Edit Bash
license: MIT license
metadata:
- version: "1.8"
+ version: "1.9"
skill-author: K-Dense Inc.
openclaw:
primaryEnv: OPENROUTER_API_KEY
diff --git a/skills/scientific-schematics/scripts/generate_schematic_ai.py b/skills/scientific-schematics/scripts/generate_schematic_ai.py
index 86219d24..09637449 100644
--- a/skills/scientific-schematics/scripts/generate_schematic_ai.py
+++ b/skills/scientific-schematics/scripts/generate_schematic_ai.py
@@ -464,15 +464,15 @@ IMPORTANT - NO FIGURE NUMBERS:
if isinstance(error_msg, dict):
error_msg = error_msg.get("message", str(error_msg))
self._last_error = f"API Error: {error_msg}"
- print(f"✗ {self._last_error}")
+ print(f"[FAIL] {self._last_error}")
return None
image_data = self._extract_image_from_response(response)
if image_data:
- self._log(f"✓ Generated image ({len(image_data)} bytes)")
+ self._log(f"[OK] Generated image ({len(image_data)} bytes)")
else:
self._last_error = "No image data in API response - model may not support image generation"
- self._log(f"✗ {self._last_error}")
+ self._log(f"[FAIL] {self._last_error}")
# Additional debug info when image extraction fails
if self.verbose and "choices" in response:
msg = response["choices"][0].get("message", {})
@@ -481,11 +481,11 @@ IMPORTANT - NO FIGURE NUMBERS:
return image_data
except RuntimeError as e:
self._last_error = str(e)
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
return None
except Exception as e:
self._last_error = f"Unexpected error: {str(e)}"
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
import traceback
if self.verbose:
traceback.print_exc()
@@ -598,7 +598,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
# provider hiccup. The diagram itself is fine; only its review
# is missing, and saying so beats inventing a score.
reason = "the review model returned no choices"
- self._log(f"⚠ Review unavailable: {reason}")
+ self._log(f"[WARN] Review unavailable: {reason}")
return ReviewResult(
f"Review unavailable: {reason}.",
None, False, reviewed=False, error=reason,
@@ -625,7 +625,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
if score is None and verdict is None:
reason = "no score or verdict found in the review"
- self._log(f"⚠ Review unusable: {reason}")
+ self._log(f"[WARN] Review unusable: {reason}")
return ReviewResult(
content if content else f"Review unusable: {reason}.",
None, False, reviewed=True, error=reason,
@@ -636,7 +636,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
)
shown = f"{score}/10" if score is not None else "not stated"
- self._log(f"✓ Review complete (Score: {shown}, Threshold: {threshold}/10)")
+ self._log(f"[OK] Review complete (Score: {shown}, Threshold: {threshold}/10)")
self._log(f" Verdict: {'Needs improvement' if needs_improvement else 'Acceptable'}")
return ReviewResult(
@@ -649,7 +649,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
except Exception as e:
# A failed review must not fail the run -- the image is already
# generated and saved -- but it must not read as a pass either.
- self._log(f"⚠ Review failed: {str(e)}")
+ self._log(f"[WARN] Review failed: {str(e)}")
return ReviewResult(
f"Review failed: {str(e)}",
None, False, reviewed=False, error=str(e),
@@ -750,7 +750,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
if not image_data:
error_msg = getattr(self, '_last_error', 'Image generation failed - no image data returned')
- print(f"✗ Generation failed: {error_msg}")
+ print(f"[FAIL] Generation failed: {error_msg}")
results["iterations"].append({
"iteration": i,
"success": False,
@@ -762,7 +762,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
iter_path = output_dir / f"{base_name}_v{i}{extension}"
with open(iter_path, "wb") as f:
f.write(image_data)
- print(f"✓ Saved: {iter_path}")
+ print(f"[OK] Saved: {iter_path}")
# Review the image with the vision review model
print(f"Reviewing image with {self.review_model}...")
@@ -770,9 +770,9 @@ Generate a publication-quality scientific diagram that meets all the guidelines
str(iter_path), user_prompt, i, doc_type, iterations
)
if review.score is not None:
- print(f"✓ Score: {review.score}/10 (threshold: {threshold}/10)")
+ print(f"[OK] Score: {review.score}/10 (threshold: {threshold}/10)")
else:
- print(f"⚠ Review unavailable — image kept, quality not verified")
+ print(f"[WARN] Review unavailable — image kept, quality not verified")
print(f" Reason: {review.error}")
# Save iteration results
@@ -792,13 +792,13 @@ Generate a publication-quality scientific diagram that meets all the guidelines
# Check if quality is acceptable - STOP EARLY if so
if not review.needs_improvement:
if review.score is not None:
- print(f"\n✓ Quality meets {doc_type} threshold ({review.score} >= {threshold})")
+ print(f"\n[OK] Quality meets {doc_type} threshold ({review.score} >= {threshold})")
print(f" No further iterations needed!")
reason = (f"Quality score {review.score} meets threshold "
f"{threshold} for {doc_type}")
else:
# Regenerating cannot fix a reviewer that did not answer.
- print(f"\n⚠ Stopping without a verified score — review the image yourself")
+ print(f"\n[WARN] Stopping without a verified score — review the image yourself")
reason = f"Review did not produce a score: {review.error}"
results["final_image"] = str(iter_path)
results["final_score"] = review.score
@@ -810,7 +810,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
# If this is the last iteration, we're done regardless
if i == iterations:
- print(f"\n⚠ Maximum iterations reached")
+ print(f"\n[WARN] Maximum iterations reached")
results["final_image"] = str(iter_path)
results["final_score"] = review.score
results["final_reviewed"] = review.reviewed and review.score is not None
@@ -818,7 +818,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
break
# Quality below threshold - improve prompt for next iteration
- print(f"\n⚠ Quality below threshold ({review.score} < {threshold})")
+ print(f"\n[WARN] Quality below threshold ({review.score} < {threshold})")
print(f"Improving prompt based on feedback...")
current_prompt = self.improve_prompt(user_prompt, review.critique, i + 1)
@@ -828,13 +828,13 @@ Generate a publication-quality scientific diagram that meets all the guidelines
if final_iter_path != output_path:
import shutil
shutil.copy(final_iter_path, output_path)
- print(f"\n✓ Final image: {output_path}")
+ print(f"\n[OK] Final image: {output_path}")
# Save review log
log_path = output_dir / f"{base_name}_review_log.json"
with open(log_path, "w") as f:
json.dump(results, f, indent=2)
- print(f"✓ Review log: {log_path}")
+ print(f"[OK] Review log: {log_path}")
print(f"\n{'='*60}")
print(f"Generation Complete!")
@@ -927,7 +927,7 @@ Environment:
)
if results["success"]:
- print(f"\n✓ Success! Image saved to: {args.output}")
+ print(f"\n[OK] Success! Image saved to: {args.output}")
used = len([r for r in results['iterations'] if r.get('success')])
if results.get("final_reviewed"):
if results.get("early_stop"):
@@ -938,10 +938,10 @@ Environment:
f" the review produced no score. Check the image yourself.)")
sys.exit(0)
else:
- print(f"\n✗ Generation failed. Check review log for details.")
+ print(f"\n[FAIL] Generation failed. Check review log for details.")
sys.exit(1)
except Exception as e:
- print(f"\n✗ Error: {str(e)}")
+ print(f"\n[FAIL] Error: {str(e)}")
sys.exit(1)
diff --git a/skills/scientific-slides/SKILL.md b/skills/scientific-slides/SKILL.md
index aac093ea..5509625d 100644
--- a/skills/scientific-slides/SKILL.md
+++ b/skills/scientific-slides/SKILL.md
@@ -4,7 +4,7 @@ description: Build slide decks and presentations for research talks. Use this fo
allowed-tools: Read Write Edit Bash
license: MIT license
metadata:
- version: "1.9"
+ version: "1.10"
skill-author: K-Dense Inc.
openclaw:
primaryEnv: OPENROUTER_API_KEY
diff --git a/skills/scientific-slides/scripts/generate_schematic_ai.py b/skills/scientific-slides/scripts/generate_schematic_ai.py
index 86219d24..09637449 100644
--- a/skills/scientific-slides/scripts/generate_schematic_ai.py
+++ b/skills/scientific-slides/scripts/generate_schematic_ai.py
@@ -464,15 +464,15 @@ IMPORTANT - NO FIGURE NUMBERS:
if isinstance(error_msg, dict):
error_msg = error_msg.get("message", str(error_msg))
self._last_error = f"API Error: {error_msg}"
- print(f"✗ {self._last_error}")
+ print(f"[FAIL] {self._last_error}")
return None
image_data = self._extract_image_from_response(response)
if image_data:
- self._log(f"✓ Generated image ({len(image_data)} bytes)")
+ self._log(f"[OK] Generated image ({len(image_data)} bytes)")
else:
self._last_error = "No image data in API response - model may not support image generation"
- self._log(f"✗ {self._last_error}")
+ self._log(f"[FAIL] {self._last_error}")
# Additional debug info when image extraction fails
if self.verbose and "choices" in response:
msg = response["choices"][0].get("message", {})
@@ -481,11 +481,11 @@ IMPORTANT - NO FIGURE NUMBERS:
return image_data
except RuntimeError as e:
self._last_error = str(e)
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
return None
except Exception as e:
self._last_error = f"Unexpected error: {str(e)}"
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
import traceback
if self.verbose:
traceback.print_exc()
@@ -598,7 +598,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
# provider hiccup. The diagram itself is fine; only its review
# is missing, and saying so beats inventing a score.
reason = "the review model returned no choices"
- self._log(f"⚠ Review unavailable: {reason}")
+ self._log(f"[WARN] Review unavailable: {reason}")
return ReviewResult(
f"Review unavailable: {reason}.",
None, False, reviewed=False, error=reason,
@@ -625,7 +625,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
if score is None and verdict is None:
reason = "no score or verdict found in the review"
- self._log(f"⚠ Review unusable: {reason}")
+ self._log(f"[WARN] Review unusable: {reason}")
return ReviewResult(
content if content else f"Review unusable: {reason}.",
None, False, reviewed=True, error=reason,
@@ -636,7 +636,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
)
shown = f"{score}/10" if score is not None else "not stated"
- self._log(f"✓ Review complete (Score: {shown}, Threshold: {threshold}/10)")
+ self._log(f"[OK] Review complete (Score: {shown}, Threshold: {threshold}/10)")
self._log(f" Verdict: {'Needs improvement' if needs_improvement else 'Acceptable'}")
return ReviewResult(
@@ -649,7 +649,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
except Exception as e:
# A failed review must not fail the run -- the image is already
# generated and saved -- but it must not read as a pass either.
- self._log(f"⚠ Review failed: {str(e)}")
+ self._log(f"[WARN] Review failed: {str(e)}")
return ReviewResult(
f"Review failed: {str(e)}",
None, False, reviewed=False, error=str(e),
@@ -750,7 +750,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
if not image_data:
error_msg = getattr(self, '_last_error', 'Image generation failed - no image data returned')
- print(f"✗ Generation failed: {error_msg}")
+ print(f"[FAIL] Generation failed: {error_msg}")
results["iterations"].append({
"iteration": i,
"success": False,
@@ -762,7 +762,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
iter_path = output_dir / f"{base_name}_v{i}{extension}"
with open(iter_path, "wb") as f:
f.write(image_data)
- print(f"✓ Saved: {iter_path}")
+ print(f"[OK] Saved: {iter_path}")
# Review the image with the vision review model
print(f"Reviewing image with {self.review_model}...")
@@ -770,9 +770,9 @@ Generate a publication-quality scientific diagram that meets all the guidelines
str(iter_path), user_prompt, i, doc_type, iterations
)
if review.score is not None:
- print(f"✓ Score: {review.score}/10 (threshold: {threshold}/10)")
+ print(f"[OK] Score: {review.score}/10 (threshold: {threshold}/10)")
else:
- print(f"⚠ Review unavailable — image kept, quality not verified")
+ print(f"[WARN] Review unavailable — image kept, quality not verified")
print(f" Reason: {review.error}")
# Save iteration results
@@ -792,13 +792,13 @@ Generate a publication-quality scientific diagram that meets all the guidelines
# Check if quality is acceptable - STOP EARLY if so
if not review.needs_improvement:
if review.score is not None:
- print(f"\n✓ Quality meets {doc_type} threshold ({review.score} >= {threshold})")
+ print(f"\n[OK] Quality meets {doc_type} threshold ({review.score} >= {threshold})")
print(f" No further iterations needed!")
reason = (f"Quality score {review.score} meets threshold "
f"{threshold} for {doc_type}")
else:
# Regenerating cannot fix a reviewer that did not answer.
- print(f"\n⚠ Stopping without a verified score — review the image yourself")
+ print(f"\n[WARN] Stopping without a verified score — review the image yourself")
reason = f"Review did not produce a score: {review.error}"
results["final_image"] = str(iter_path)
results["final_score"] = review.score
@@ -810,7 +810,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
# If this is the last iteration, we're done regardless
if i == iterations:
- print(f"\n⚠ Maximum iterations reached")
+ print(f"\n[WARN] Maximum iterations reached")
results["final_image"] = str(iter_path)
results["final_score"] = review.score
results["final_reviewed"] = review.reviewed and review.score is not None
@@ -818,7 +818,7 @@ Generate a publication-quality scientific diagram that meets all the guidelines
break
# Quality below threshold - improve prompt for next iteration
- print(f"\n⚠ Quality below threshold ({review.score} < {threshold})")
+ print(f"\n[WARN] Quality below threshold ({review.score} < {threshold})")
print(f"Improving prompt based on feedback...")
current_prompt = self.improve_prompt(user_prompt, review.critique, i + 1)
@@ -828,13 +828,13 @@ Generate a publication-quality scientific diagram that meets all the guidelines
if final_iter_path != output_path:
import shutil
shutil.copy(final_iter_path, output_path)
- print(f"\n✓ Final image: {output_path}")
+ print(f"\n[OK] Final image: {output_path}")
# Save review log
log_path = output_dir / f"{base_name}_review_log.json"
with open(log_path, "w") as f:
json.dump(results, f, indent=2)
- print(f"✓ Review log: {log_path}")
+ print(f"[OK] Review log: {log_path}")
print(f"\n{'='*60}")
print(f"Generation Complete!")
@@ -927,7 +927,7 @@ Environment:
)
if results["success"]:
- print(f"\n✓ Success! Image saved to: {args.output}")
+ print(f"\n[OK] Success! Image saved to: {args.output}")
used = len([r for r in results['iterations'] if r.get('success')])
if results.get("final_reviewed"):
if results.get("early_stop"):
@@ -938,10 +938,10 @@ Environment:
f" the review produced no score. Check the image yourself.)")
sys.exit(0)
else:
- print(f"\n✗ Generation failed. Check review log for details.")
+ print(f"\n[FAIL] Generation failed. Check review log for details.")
sys.exit(1)
except Exception as e:
- print(f"\n✗ Error: {str(e)}")
+ print(f"\n[FAIL] Error: {str(e)}")
sys.exit(1)
diff --git a/skills/scientific-slides/scripts/generate_slide_image_ai.py b/skills/scientific-slides/scripts/generate_slide_image_ai.py
index 1e3f30ac..cea1c92e 100644
--- a/skills/scientific-slides/scripts/generate_slide_image_ai.py
+++ b/skills/scientific-slides/scripts/generate_slide_image_ai.py
@@ -456,24 +456,24 @@ STYLE:
if isinstance(error_msg, dict):
error_msg = error_msg.get("message", str(error_msg))
self._last_error = f"API Error: {error_msg}"
- print(f"✗ {self._last_error}")
+ print(f"[FAIL] {self._last_error}")
return None
image_data = self._extract_image_from_response(response)
if image_data:
- self._log(f"✓ Generated image ({len(image_data)} bytes)")
+ self._log(f"[OK] Generated image ({len(image_data)} bytes)")
else:
self._last_error = "No image data in API response"
- self._log(f"✗ {self._last_error}")
+ self._log(f"[FAIL] {self._last_error}")
return image_data
except RuntimeError as e:
self._last_error = str(e)
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
return None
except Exception as e:
self._last_error = f"Unexpected error: {str(e)}"
- self._log(f"✗ Generation failed: {self._last_error}")
+ self._log(f"[FAIL] Generation failed: {self._last_error}")
return None
def review_image(self, image_path: str, original_prompt: str,
@@ -554,7 +554,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
# provider hiccup. The image itself is fine; only its review is
# missing, and saying so beats inventing a score.
reason = "the review model returned no choices"
- self._log(f"⚠ Review unavailable: {reason}")
+ self._log(f"[WARN] Review unavailable: {reason}")
return ReviewResult(
f"Review unavailable: {reason}.",
None, False, reviewed=False, error=reason,
@@ -579,7 +579,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
if score is None and verdict is None:
reason = "no score or verdict found in the review"
- self._log(f"⚠ Review unusable: {reason}")
+ self._log(f"[WARN] Review unusable: {reason}")
return ReviewResult(
content if content else f"Review unusable: {reason}.",
None, False, reviewed=True, error=reason,
@@ -590,7 +590,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
)
shown = f"{score}/10" if score is not None else "not stated"
- self._log(f"✓ Review complete (Score: {shown}, Threshold: {threshold}/10)")
+ self._log(f"[OK] Review complete (Score: {shown}, Threshold: {threshold}/10)")
return ReviewResult(
content if content else "Review returned no text",
@@ -602,7 +602,7 @@ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
except Exception as e:
# A failed review must not fail the run -- the image is already
# generated -- but it must not read as a pass either.
- self._log(f"⚠ Review failed: {str(e)}")
+ self._log(f"[WARN] Review failed: {str(e)}")
return ReviewResult(
f"Review failed: {str(e)}",
None, False, reviewed=False, error=str(e),
@@ -697,7 +697,7 @@ Generate a high-quality {'visual/figure' if visual_only else 'presentation slide
if not image_data:
error_msg = self._last_error or 'Image generation failed'
- print(f"✗ Generation failed: {error_msg}")
+ print(f"[FAIL] Generation failed: {error_msg}")
results["iterations"].append({
"iteration": i,
"success": False,
@@ -714,16 +714,16 @@ Generate a high-quality {'visual/figure' if visual_only else 'presentation slide
with open(temp_path, "wb") as f:
f.write(image_data)
- print(f"✓ Generated image (iteration {i})")
+ print(f"[OK] Generated image (iteration {i})")
print(f"Reviewing image with {self.review_model}...")
review = self.review_image(
str(temp_path), user_prompt, i, visual_only, iterations
)
if review.score is not None:
- print(f"✓ Score: {review.score}/10 (threshold: {self.QUALITY_THRESHOLD}/10)")
+ print(f"[OK] Score: {review.score}/10 (threshold: {self.QUALITY_THRESHOLD}/10)")
else:
- print(f"⚠ Review unavailable — image kept, quality not verified")
+ print(f"[WARN] Review unavailable — image kept, quality not verified")
print(f" Reason: {review.error}")
results["iterations"].append({
@@ -738,10 +738,10 @@ Generate a high-quality {'visual/figure' if visual_only else 'presentation slide
if not review.needs_improvement:
if review.score is not None:
- print(f"\n✓ Quality meets threshold ({review.score} >= {self.QUALITY_THRESHOLD})")
+ print(f"\n[OK] Quality meets threshold ({review.score} >= {self.QUALITY_THRESHOLD})")
else:
# Regenerating cannot fix a reviewer that did not answer.
- print(f"\n⚠ Stopping without a verified score — review the image yourself")
+ print(f"\n[WARN] Stopping without a verified score — review the image yourself")
final_image_data = image_data
results["final_score"] = review.score
results["final_reviewed"] = review.reviewed and review.score is not None
@@ -750,14 +750,14 @@ Generate a high-quality {'visual/figure' if visual_only else 'presentation slide
break
if i == iterations:
- print(f"\n⚠ Maximum iterations reached")
+ print(f"\n[WARN] Maximum iterations reached")
final_image_data = image_data
results["final_score"] = review.score
results["final_reviewed"] = review.reviewed and review.score is not None
results["success"] = True
break
- print(f"\n⚠ Quality below threshold ({review.score} < {self.QUALITY_THRESHOLD})")
+ print(f"\n[WARN] Quality below threshold ({review.score} < {self.QUALITY_THRESHOLD})")
print(f"Improving prompt...")
current_prompt = self.improve_prompt(user_prompt, review.critique, i + 1, visual_only)
@@ -774,7 +774,7 @@ Generate a high-quality {'visual/figure' if visual_only else 'presentation slide
with open(output_path, "wb") as f:
f.write(final_image_data)
results["final_image"] = str(output_path)
- print(f"\n✓ Final image: {output_path}")
+ print(f"\n[OK] Final image: {output_path}")
print(f"\n{'='*60}")
print(f"Generation Complete!")
@@ -863,13 +863,13 @@ Environment:
)
if results["success"]:
- print(f"\n✓ Success! Image saved to: {args.output}")
+ print(f"\n[OK] Success! Image saved to: {args.output}")
sys.exit(0)
else:
- print(f"\n✗ Generation failed. Check review log for details.")
+ print(f"\n[FAIL] Generation failed. Check review log for details.")
sys.exit(1)
except Exception as e:
- print(f"\n✗ Error: {str(e)}")
+ print(f"\n[FAIL] Error: {str(e)}")
sys.exit(1)
diff --git a/skills/scientific-slides/scripts/pdf_to_images.py b/skills/scientific-slides/scripts/pdf_to_images.py
index bfa95f16..9d2faa67 100644
--- a/skills/scientific-slides/scripts/pdf_to_images.py
+++ b/skills/scientific-slides/scripts/pdf_to_images.py
@@ -112,13 +112,13 @@ def main():
epilog="""
Examples:
%(prog)s presentation.pdf slides
- → Creates slides-001.jpg, slides-002.jpg, ...
+ -> Creates slides-001.jpg, slides-002.jpg, ...
%(prog)s presentation.pdf output/slide --dpi 300 --format png
- → Creates output/slide-001.png, slide-002.png, ... at high resolution
+ -> Creates output/slide-001.png, slide-002.png, ... at high resolution
%(prog)s presentation.pdf review/s --first 5 --last 10
- → Converts only slides 5-10
+ -> Converts only slides 5-10
Output:
Images are named: PREFIX-001.FORMAT, PREFIX-002.FORMAT, etc.
@@ -192,7 +192,7 @@ Requirements:
print()
print("=" * 60)
- print(f"✅ Success! Created {len(output_files)} image(s)")
+ print(f"[OK] Success! Created {len(output_files)} image(s)")
print("=" * 60)
if output_files:
@@ -213,7 +213,7 @@ Requirements:
sys.exit(0)
except Exception as e:
- print(f"\n❌ Error: {str(e)}", file=sys.stderr)
+ print(f"\n[FAIL] Error: {str(e)}", file=sys.stderr)
sys.exit(1)
diff --git a/skills/scientific-slides/scripts/slides_to_pdf.py b/skills/scientific-slides/scripts/slides_to_pdf.py
index 4f076f15..685c7e40 100644
--- a/skills/scientific-slides/scripts/slides_to_pdf.py
+++ b/skills/scientific-slides/scripts/slides_to_pdf.py
@@ -141,7 +141,7 @@ def combine_images_to_pdf(image_paths: List[Path], output_path: Path,
)
if verbose:
- print(f"\n✓ PDF created: {output_path}")
+ print(f"\n[OK] PDF created: {output_path}")
print(f" Total slides: {len(images)}")
file_size = output_path.stat().st_size
if file_size > 1024 * 1024:
@@ -224,10 +224,10 @@ Tips:
)
if success:
- print(f"\n✓ PDF created: {output_path}")
+ print(f"\n[OK] PDF created: {output_path}")
sys.exit(0)
else:
- print(f"\n✗ Failed to create PDF")
+ print(f"\n[FAIL] Failed to create PDF")
sys.exit(1)
diff --git a/skills/scientific-slides/scripts/validate_presentation.py b/skills/scientific-slides/scripts/validate_presentation.py
index 1dcd058a..08aeab20 100644
--- a/skills/scientific-slides/scripts/validate_presentation.py
+++ b/skills/scientific-slides/scripts/validate_presentation.py
@@ -314,30 +314,30 @@ def print_results(results: Dict):
# Print info
if results['info']:
- print("\n📋 Information:")
+ print("\nInformation:")
for item in results['info']:
print(f" • {item}")
# Print warnings
if results['warnings']:
- print("\n⚠️ Warnings:")
+ print("\n[WARN] Warnings:")
for item in results['warnings']:
print(f" • {item}")
# Print issues
if results['issues']:
- print("\n❌ Issues:")
+ print("\n[FAIL] Issues:")
for item in results['issues']:
print(f" • {item}")
# Overall status
print("\n" + "=" * 60)
if results['valid']:
- print("✅ Validation PASSED")
+ print("[OK] Validation PASSED")
if results['warnings']:
print(f" ({len(results['warnings'])} warning(s) found)")
else:
- print("❌ Validation FAILED")
+ print("[FAIL] Validation FAILED")
print(f" ({len(results['issues'])} issue(s) found)")
print("=" * 60)
@@ -395,7 +395,7 @@ Validation checks:
if results['warnings'] or results['issues']:
print_results(results)
else:
- print("✅ No issues found")
+ print("[OK] No issues found")
else:
print_results(results)
@@ -405,4 +405,3 @@ Validation checks:
if __name__ == '__main__':
main()
-
diff --git a/skills/statistical-analysis/SKILL.md b/skills/statistical-analysis/SKILL.md
index 9e07d953..5279a111 100644
--- a/skills/statistical-analysis/SKILL.md
+++ b/skills/statistical-analysis/SKILL.md
@@ -3,7 +3,7 @@ name: statistical-analysis
description: Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required sample sizes, or write up results - even if they never name a specific test. Covers t-tests, ANOVA, chi-square, correlation, regression, non-parametric and Bayesian methods. For low-level model APIs, see the statsmodels and pymc skills.
license: MIT license
metadata:
- version: "1.3"
+ version: "1.4"
skill-author: K-Dense Inc.
---
diff --git a/skills/statistical-analysis/scripts/assumption_checks.py b/skills/statistical-analysis/scripts/assumption_checks.py
index 6c477f39..92b1806a 100644
--- a/skills/statistical-analysis/scripts/assumption_checks.py
+++ b/skills/statistical-analysis/scripts/assumption_checks.py
@@ -577,7 +577,7 @@ def comprehensive_assumption_check(
all_normal = normality_results['Normal'].eq('Yes').all()
print(f"\n All groups normal: {'Yes' if all_normal else 'No'}")
if not all_normal:
- print(" → Consider non-parametric alternative (Mann-Whitney, Kruskal-Wallis)")
+ print(" -> Consider non-parametric alternative (Mann-Whitney, Kruskal-Wallis)")
# Homogeneity of variance
print(f"\n3. HOMOGENEITY OF VARIANCE")
@@ -613,17 +613,17 @@ def comprehensive_assumption_check(
is_homogeneous = results.get('homogeneity', {}).get('is_homogeneous', False)
if all_normal and is_homogeneous:
- print("✓ All assumptions met. Proceed with parametric test (t-test, ANOVA).")
+ print("[OK] All assumptions met. Proceed with parametric test (t-test, ANOVA).")
elif not all_normal:
- print("✗ Normality violated. Use non-parametric alternative.")
+ print("[FAIL] Normality violated. Use non-parametric alternative.")
elif not is_homogeneous:
- print("✗ Homogeneity violated. Use Welch's correction or transformation.")
+ print("[FAIL] Homogeneity violated. Use Welch's correction or transformation.")
else:
is_normal = results.get('normality', {}).get('is_normal', False)
if is_normal:
- print("✓ Normality assumption met.")
+ print("[OK] Normality assumption met.")
else:
- print("✗ Normality violated. Consider transformation or non-parametric method.")
+ print("[FAIL] Normality violated. Consider transformation or non-parametric method.")
print("=" * 70)
diff --git a/skills/timesfm-forecasting/SKILL.md b/skills/timesfm-forecasting/SKILL.md
index e8adb659..ac936266 100644
--- a/skills/timesfm-forecasting/SKILL.md
+++ b/skills/timesfm-forecasting/SKILL.md
@@ -4,7 +4,7 @@ description: Zero-shot time series forecasting with Google's TimesFM foundation
allowed-tools: Read Write Edit Bash
license: Apache-2.0 license
metadata:
- version: "2.0"
+ version: "2.1"
skill-author: Clayton Young / Superior Byte Works, LLC (@borealBytes)
skill-version: 1.0.0
---
diff --git a/skills/timesfm-forecasting/examples/global-temperature/generate_animation_data.py b/skills/timesfm-forecasting/examples/global-temperature/generate_animation_data.py
index fa480f77..ba225e87 100644
--- a/skills/timesfm-forecasting/examples/global-temperature/generate_animation_data.py
+++ b/skills/timesfm-forecasting/examples/global-temperature/generate_animation_data.py
@@ -40,14 +40,14 @@ def main() -> None:
all_dates = df["date"].tolist()
all_values = df["anomaly_c"].values.astype(np.float32)
- print(f"\n📊 Total data: {len(all_values)} months")
+ print(f"\nData: Total data: {len(all_values)} months")
print(
f" Date range: {all_dates[0].strftime('%Y-%m')} to {all_dates[-1].strftime('%Y-%m')}"
)
print(f" Animation steps: {len(all_values) - MIN_CONTEXT + 1}")
# Load TimesFM with max horizon (will truncate output for shorter forecasts)
- print(f"\n🤖 Loading TimesFM 1.0 (200M) PyTorch (horizon={MAX_HORIZON})...")
+ print(f"\nModel: Loading TimesFM 1.0 (200M) PyTorch (horizon={MAX_HORIZON})...")
hparams = timesfm.TimesFmHparams(horizon_len=MAX_HORIZON)
checkpoint = timesfm.TimesFmCheckpoint(
huggingface_repo_id="google/timesfm-1.0-200m-pytorch"
@@ -65,7 +65,7 @@ def main() -> None:
horizon = TOTAL_MONTHS - n_points
print(
- f"\n📈 Step {step_num}/{total_steps}: Using {n_points} points, forecasting {horizon} months..."
+ f"\nForecast: Step {step_num}/{total_steps}: Using {n_points} points, forecasting {horizon} months..."
)
# Get historical data up to this point
@@ -136,9 +136,9 @@ def main() -> None:
json.dump(output, f, indent=2)
print(f"\n" + "=" * 60)
- print(" ✅ ANIMATION DATA COMPLETE")
+ print(" [OK] ANIMATION DATA COMPLETE")
print("=" * 60)
- print(f"\n📁 Output: {OUTPUT_FILE}")
+ print(f"\nFiles: Output: {OUTPUT_FILE}")
print(f" Total steps: {len(animation_steps)}")
print(f" Each forecast extends to 2025-12")
diff --git a/skills/timesfm-forecasting/examples/global-temperature/generate_gif.py b/skills/timesfm-forecasting/examples/global-temperature/generate_gif.py
index 807709cf..c572cc1c 100644
--- a/skills/timesfm-forecasting/examples/global-temperature/generate_gif.py
+++ b/skills/timesfm-forecasting/examples/global-temperature/generate_gif.py
@@ -164,7 +164,7 @@ def main() -> None:
data = json.load(f)
total_steps = len(data["animation_steps"])
- print(f"\n📊 Total frames: {total_steps}")
+ print(f"\nData: Total frames: {total_steps}")
# Get the final forecast step for reference
final_forecast = data["animation_steps"][-1]
@@ -229,7 +229,7 @@ def main() -> None:
plt.close()
# Save as GIF
- print(f"\n💾 Saving GIF: {OUTPUT_FILE}")
+ print(f"\nSaving GIF: {OUTPUT_FILE}")
frames[0].save(
OUTPUT_FILE,
save_all=True,
@@ -241,7 +241,7 @@ def main() -> None:
# Get file size
size_kb = OUTPUT_FILE.stat().st_size / 1024
print(f" File size: {size_kb:.1f} KB")
- print(f"\n✅ Done!")
+ print(f"\n[OK] Done!")
if __name__ == "__main__":
diff --git a/skills/timesfm-forecasting/examples/global-temperature/generate_html.py b/skills/timesfm-forecasting/examples/global-temperature/generate_html.py
index d236226a..36868504 100644
--- a/skills/timesfm-forecasting/examples/global-temperature/generate_html.py
+++ b/skills/timesfm-forecasting/examples/global-temperature/generate_html.py
@@ -535,7 +535,7 @@ def main() -> None:
f.write(html_content)
size_kb = OUTPUT_FILE.stat().st_size / 1024
- print(f"\n✅ Generated: {OUTPUT_FILE}")
+ print(f"\n[OK] Generated: {OUTPUT_FILE}")
print(f" File size: {size_kb:.1f} KB")
print(f" Fully self-contained — no external dependencies")
diff --git a/skills/timesfm-forecasting/examples/global-temperature/run_forecast.py b/skills/timesfm-forecasting/examples/global-temperature/run_forecast.py
index 8e83587c..0297043a 100644
--- a/skills/timesfm-forecasting/examples/global-temperature/run_forecast.py
+++ b/skills/timesfm-forecasting/examples/global-temperature/run_forecast.py
@@ -22,7 +22,7 @@ data_path = Path(__file__).parent / "temperature_anomaly.csv"
df = pd.read_csv(data_path, parse_dates=["date"])
df = df.sort_values("date").reset_index(drop=True)
-print(f"\n📊 Input Data: {len(df)} months of temperature anomalies")
+print(f"\nInput Data: {len(df)} months of temperature anomalies")
print(
f" Date range: {df['date'].min().strftime('%Y-%m')} to {df['date'].max().strftime('%Y-%m')}"
)
@@ -39,7 +39,7 @@ input_series = df["anomaly_c"].values.astype(np.float32)
# NOTE: TimesFM 2.5 PyTorch checkpoint has a file format issue at time of writing.
# The model.safetensors file is not loadable via torch.load().
# Using TimesFM 1.0 PyTorch which works correctly.
-print("\n🤖 Loading TimesFM 1.0 (200M) PyTorch...")
+print("\nModel: Loading TimesFM 1.0 (200M) PyTorch...")
import timesfm
hparams = timesfm.TimesFmHparams(horizon_len=12)
@@ -49,7 +49,7 @@ checkpoint = timesfm.TimesFmCheckpoint(
model = timesfm.TimesFm(hparams=hparams, checkpoint=checkpoint)
# Forecast
-print("\n📈 Running forecast (12 months ahead)...")
+print("\nForecast: Running forecast (12 months ahead)...")
forecast_input = [input_series]
frequency_input = [0] # Monthly data
@@ -133,9 +133,9 @@ print("\n" + "=" * 60)
print(" FORECAST RESULTS")
print("=" * 60)
print(
- f"\n📅 Forecast period: {forecast_dates[0].strftime('%Y-%m')} to {forecast_dates[-1].strftime('%Y-%m')}"
+ f"\nDates: Forecast period: {forecast_dates[0].strftime('%Y-%m')} to {forecast_dates[-1].strftime('%Y-%m')}"
)
-print(f"\n🌡️ Temperature Anomaly Forecast (°C above 1951-1980 baseline):")
+print(f"\nTemperature Anomaly Forecast (°C above 1951-1980 baseline):")
print(f"\n {'Month':<10} {'Point':>8} {'80% CI':>15} {'90% CI':>15}")
print(f" {'-' * 10} {'-' * 8} {'-' * 15} {'-' * 15}")
for i, (date, pt, q10, q90, q05, q95) in enumerate(
@@ -152,7 +152,7 @@ for i, (date, pt, q10, q90, q05, q95) in enumerate(
f" {date:<10} {pt:>8.3f} [{q10:>6.3f}, {q90:>6.3f}] [{q05:>6.3f}, {q95:>6.3f}]"
)
-print(f"\n📊 Summary Statistics:")
+print(f"\nData: Summary Statistics:")
print(f" Mean forecast: {point.mean():.3f}°C")
print(
f" Max forecast: {point.max():.3f}°C (Month: {forecast_dates[point.argmax()].strftime('%Y-%m')})"
@@ -162,6 +162,6 @@ print(
)
print(f" vs 2024 mean: {point.mean() - df['anomaly_c'].iloc[-12:].mean():+.3f}°C")
-print(f"\n✅ Output saved to:")
+print(f"\n[OK] Output saved to:")
print(f" {output_dir / 'forecast_output.csv'}")
print(f" {output_dir / 'forecast_output.json'}")
diff --git a/skills/timesfm-forecasting/examples/global-temperature/visualize_forecast.py b/skills/timesfm-forecasting/examples/global-temperature/visualize_forecast.py
index 86e7d725..cf5d077c 100644
--- a/skills/timesfm-forecasting/examples/global-temperature/visualize_forecast.py
+++ b/skills/timesfm-forecasting/examples/global-temperature/visualize_forecast.py
@@ -114,7 +114,7 @@ def main() -> None:
# Save
fig.savefig(OUTPUT_FILE, dpi=150, bbox_inches="tight")
- print(f"✅ Saved visualization to: {OUTPUT_FILE}")
+ print(f"[OK] Saved visualization to: {OUTPUT_FILE}")
plt.close()
diff --git a/skills/timesfm-forecasting/scripts/check_system.py b/skills/timesfm-forecasting/scripts/check_system.py
index 75104e23..a65d38bf 100644
--- a/skills/timesfm-forecasting/scripts/check_system.py
+++ b/skills/timesfm-forecasting/scripts/check_system.py
@@ -80,7 +80,7 @@ class CheckResult:
@property
def icon(self) -> str:
- return {"pass": "✅", "warn": "⚠️", "fail": "🛑"}.get(self.status, "❓")
+ return {"pass": "[OK]", "warn": "[WARN]", "fail": "[FAIL]"}.get(self.status, "[?]")
def __str__(self) -> str:
return f"[{self.name:<10}] {self.value:<40} {self.icon} {self.status.upper()}"
@@ -459,14 +459,14 @@ def run_checks(model_version: str = "v2.5") -> SystemReport:
# Verdict
if report.passed:
report.verdict = (
- f"✅ System is ready for {profile['name']} ({report.mode.upper()} mode)"
+ f"[OK] System is ready for {profile['name']} ({report.mode.upper()} mode)"
)
report.verdict_detail = (
f"Recommended: per_core_batch_size={report.recommended_batch_size}"
)
else:
failed = [c for c in report.checks if c.status == "fail"]
- report.verdict = f"🛑 System does NOT meet requirements for {profile['name']}"
+ report.verdict = f"[FAIL] System does NOT meet requirements for {profile['name']}"
report.verdict_detail = "; ".join(c.detail for c in failed)
return report
diff --git a/skills/timesfm-forecasting/scripts/forecast_csv.py b/skills/timesfm-forecasting/scripts/forecast_csv.py
index 097ec962..06563e3c 100644
--- a/skills/timesfm-forecasting/scripts/forecast_csv.py
+++ b/skills/timesfm-forecasting/scripts/forecast_csv.py
@@ -38,7 +38,7 @@ def run_preflight() -> dict:
report = run_checks("v2.5")
if not report.passed:
- print("\n🛑 System check FAILED. Cannot proceed with forecasting.")
+ print("\n[ERROR] System check FAILED. Cannot proceed with forecasting.")
print(f" {report.verdict_detail}")
print("\nRun 'python scripts/check_system.py' for details.")
sys.exit(1)
@@ -91,14 +91,14 @@ def load_csv(
if date_col and date_col in df.columns:
df[date_col] = pd.to_datetime(df[date_col])
elif date_col:
- print(f"⚠️ Date column '{date_col}' not found. Available: {list(df.columns)}")
+ print(f"[WARN] Date column '{date_col}' not found. Available: {list(df.columns)}")
date_col = None
# Identify value columns
if value_cols:
missing = [c for c in value_cols if c not in df.columns]
if missing:
- print(f"⚠️ Columns not found: {missing}. Available: {list(df.columns)}")
+ print(f"[WARN] Columns not found: {missing}. Available: {list(df.columns)}")
value_cols = [c for c in value_cols if c in df.columns]
else:
# Auto-detect numeric columns (exclude date)
@@ -108,7 +108,7 @@ def load_csv(
value_cols = numeric_cols
if not value_cols:
- print("🛑 No numeric columns found to forecast.")
+ print("[ERROR] No numeric columns found to forecast.")
sys.exit(1)
print(f"Found {len(value_cols)} series to forecast: {value_cols}")
@@ -181,14 +181,14 @@ def write_csv_output(
out_df = pd.DataFrame(rows)
out_df.to_csv(output_path, index=False)
- print(f"✅ Wrote {len(rows)} forecast rows to {output_path}")
+ print(f"[OK] Wrote {len(rows)} forecast rows to {output_path}")
def write_json_output(results: dict[str, dict], output_path: str) -> None:
"""Write forecast results to JSON."""
with open(output_path, "w") as f:
json.dump(results, f, indent=2)
- print(f"✅ Wrote forecasts for {len(results)} series to {output_path}")
+ print(f"[OK] Wrote forecasts for {len(results)} series to {output_path}")
def main() -> None:
@@ -244,7 +244,7 @@ def main() -> None:
report = run_preflight()
batch_size = args.batch_size or report.get("recommended_batch_size", 32)
else:
- print("⚠️ Skipping system check (--skip-check). Proceed with caution.")
+ print("[WARN] Skipping system check (--skip-check). Proceed with caution.")
batch_size = args.batch_size or 32
# 2. Load model
@@ -262,7 +262,7 @@ def main() -> None:
else:
write_csv_output(results, args.output, df, date_col, args.horizon)
- print("\nDone! 🎉")
+ print("\nDone! [OK]")
if __name__ == "__main__":
diff --git a/skills/venue-templates/SKILL.md b/skills/venue-templates/SKILL.md
index 3344e422..b4e41ddf 100644
--- a/skills/venue-templates/SKILL.md
+++ b/skills/venue-templates/SKILL.md
@@ -4,7 +4,7 @@ description: Prepare journal manuscripts, conference papers, research posters, a
license: MIT license
compatibility: Requires Python 3.11+ for helper scripts; LaTeX and Poppler command-line tools are optional for compilation and PDF inspection.
metadata:
- version: "1.4"
+ version: "1.5"
skill-author: K-Dense Inc.
---
diff --git a/skills/venue-templates/scripts/customize_template.py b/skills/venue-templates/scripts/customize_template.py
index 41f62ef7..fedd90eb 100755
--- a/skills/venue-templates/scripts/customize_template.py
+++ b/skills/venue-templates/scripts/customize_template.py
@@ -70,16 +70,16 @@ def customize_template(template_path, output_path, **kwargs):
if re.search(pattern, content):
content = re.sub(pattern, replacement, content, count=1)
modified = True
- print(f"✓ Replaced {key}")
+ print(f"[OK] Replaced {key}")
# Write output
with open(output_path, 'w') as f:
f.write(content)
if modified:
- print(f"\n✓ Customized template saved to: {output_path}")
+ print(f"\n[OK] Customized template saved to: {output_path}")
else:
- print(f"\n⚠️ Template copied to: {output_path}")
+ print(f"\n[WARN] Template copied to: {output_path}")
print(" No customizations applied (no matching placeholders found or no values provided)")
print(f"\nNext steps:")
diff --git a/skills/xlsx/SKILL.md b/skills/xlsx/SKILL.md
index df83eb41..7333e011 100644
--- a/skills/xlsx/SKILL.md
+++ b/skills/xlsx/SKILL.md
@@ -4,7 +4,7 @@ description: "Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm
allowed-tools: Read Write Edit Bash Grep Glob
license: Proprietary. LICENSE.txt has complete terms
metadata:
- version: "2.3"
+ version: "2.4"
skill-author: Anthropic, PBC
adapted-by: K-Dense Inc.
source: https://github.com/anthropics/skills/tree/main/skills/xlsx
diff --git a/skills/xlsx/scripts/office/validators/docx.py b/skills/xlsx/scripts/office/validators/docx.py
index b1814994..bdc477d1 100644
--- a/skills/xlsx/scripts/office/validators/docx.py
+++ b/skills/xlsx/scripts/office/validators/docx.py
@@ -252,7 +252,7 @@ class DOCXSchemaValidator(BaseSchemaValidator):
original_count = self.count_paragraphs_in_original()
diff = new_count - original_count
diff_str = f"+{diff}" if diff > 0 else str(diff)
- print(f"\nParagraphs: {original_count} → {new_count} ({diff_str})")
+ print(f"\nParagraphs: {original_count} -> {new_count} ({diff_str})")
def _parse_id_value(self, val: str, base: int = 16) -> int:
return int(val, base)
@@ -446,7 +446,7 @@ class DOCXSchemaValidator(BaseSchemaValidator):
elem.setAttribute(attr_name, new_id)
pending.append(
- f" Repaired: {xml_file.name}: durableId {durable_id} → {new_id}"
+ f" Repaired: {xml_file.name}: durableId {durable_id} -> {new_id}"
)
modified = True
diff --git a/tests/_meta/test_console_output.py b/tests/_meta/test_console_output.py
new file mode 100644
index 00000000..9e7ccf58
--- /dev/null
+++ b/tests/_meta/test_console_output.py
@@ -0,0 +1,50 @@
+"""Catch console glyphs that crash Python on legacy Windows output streams.
+
+Inspect literal print/log messages without importing scientific packages or
+constraining Unicode in documentation, image prompts, or generated artifacts.
+Dynamic data (such as user-supplied filenames) needs runtime coverage separately.
+"""
+
+import ast
+from pathlib import Path
+
+
+SKILLS = Path(__file__).resolve().parents[2] / "skills"
+
+
+def _literal_output(node):
+ if isinstance(node, ast.Constant) and isinstance(node.value, str):
+ yield node
+ elif isinstance(node, ast.JoinedStr):
+ for part in node.values:
+ yield from _literal_output(part)
+ elif isinstance(node, ast.FormattedValue):
+ yield from _literal_output(node.value)
+ elif isinstance(node, ast.IfExp):
+ yield from _literal_output(node.body)
+ yield from _literal_output(node.orelse)
+ # Do not inspect arbitrary calls: their arguments need not be printed,
+ # and serializers may escape Unicode before returning a console string.
+
+
+def test_literal_console_messages_fit_cp1252():
+ failures = []
+ for path in sorted(SKILLS.rglob("*.py")):
+ tree = ast.parse(path.read_text(encoding="utf-8"))
+ for node in ast.walk(tree):
+ if not isinstance(node, ast.Call):
+ continue
+ console_call = (
+ isinstance(node.func, ast.Name) and node.func.id == "print"
+ ) or (
+ isinstance(node.func, ast.Attribute) and node.func.attr == "_log"
+ )
+ if not console_call:
+ continue
+ for argument in node.args:
+ for literal in _literal_output(argument):
+ try:
+ literal.value.encode("cp1252")
+ except UnicodeEncodeError:
+ failures.append(f"{path.relative_to(SKILLS)}:{literal.lineno}")
+ assert not failures, "Console literals cannot encode as cp1252:\n" + "\n".join(failures)
diff --git a/tests/deeptools/test_scripts.py b/tests/deeptools/test_scripts.py
index 751818a8..8ef7d733 100644
--- a/tests/deeptools/test_scripts.py
+++ b/tests/deeptools/test_scripts.py
@@ -12,6 +12,7 @@ in a temporary directory rather than mocking `open`.
from __future__ import annotations
+import os
import subprocess
import sys
import tempfile
@@ -332,5 +333,36 @@ class FileValidationTests(unittest.TestCase):
self.assertEqual(messages, [])
+class ConsoleEncodingTests(unittest.TestCase):
+ def run_legacy_console(self, script, *args, cwd=None):
+ return subprocess.run(
+ [sys.executable, str(SCRIPTS / script), *args],
+ env={**os.environ, "PYTHONIOENCODING": "cp1252"},
+ capture_output=True, text=True, encoding="cp1252", timeout=30, cwd=cwd,
+ )
+
+ def test_validation_success_and_failure_on_cp1252(self):
+ with tempfile.TemporaryDirectory() as directory:
+ bed = Path(directory) / "sample.bed"
+ bed.write_text("chr1\t10\t20\n", encoding="utf-8")
+ result = self.run_legacy_console("validate_files.py", "--bed", str(bed))
+ self.assertEqual(result.returncode, 0, result.stderr)
+ self.assertIn("All validations passed", result.stdout)
+ result = self.run_legacy_console("validate_files.py", "--bam", str(bed) + ".missing")
+ self.assertEqual(result.returncode, 1, result.stderr)
+ self.assertIn("Some validations failed", result.stdout)
+ self.assertNotIn("Traceback", result.stderr)
+
+ def test_workflow_generation_on_cp1252(self):
+ with tempfile.TemporaryDirectory() as directory:
+ result = self.run_legacy_console(
+ "workflow_generator.py", "chipseq_qc", "-o", "workflow.sh",
+ "--input-bam", "input.bam", "--chip-bams", "chip.bam", cwd=directory,
+ )
+ self.assertEqual(result.returncode, 0, result.stderr)
+ self.assertIn("Generated ChIP-seq QC workflow", result.stdout)
+ self.assertTrue((Path(directory) / "workflow.sh").is_file())
+
+
if __name__ == "__main__":
unittest.main()
diff --git a/tests/timesfm-forecasting/test_scripts.py b/tests/timesfm-forecasting/test_scripts.py
index ba9e656d..568d6a02 100644
--- a/tests/timesfm-forecasting/test_scripts.py
+++ b/tests/timesfm-forecasting/test_scripts.py
@@ -347,6 +347,22 @@ class ReportTests(unittest.TestCase):
self.assertIn("ready", report.verdict)
self.assertIn(str(report.recommended_batch_size), report.verdict_detail)
+ def test_reports_print_on_cp1252_for_success_warning_and_failure(self) -> None:
+ for total_ram in (1.0, 32.0):
+ with self.subTest(total_ram=total_ram):
+ report = self.run_checks(
+ total_ram=total_ram, modules={"torch": None, "timesfm": None}
+ )
+ raw = io.BytesIO()
+ with io.TextIOWrapper(raw, encoding="cp1252", errors="strict") as stream:
+ with contextlib.redirect_stdout(stream):
+ check_system.print_report(report)
+ stream.flush()
+ output = raw.getvalue().decode("cp1252")
+ self.assertIn("VERDICT", output)
+ self.assertIn("WARN", output)
+ self.assertIn("ready" if report.passed else "does NOT meet", output)
+
def test_a_cuda_host_is_reported_in_gpu_mode(self) -> None:
report = self.run_checks(modules={"torch": GpuCheckTests.torch_module(cuda=True)})
self.assertEqual(report.mode, "gpu")