af3cli
Skill4 starsChanged 6 months agoMITView on GitHub
CLI and Python library for generating AlphaFold3 input JSON files. Use when the user wants to: create or modify AlphaFold3 input files, prepare protein/DNA/RNA sequences for AlphaFold3, add ligands/ions/bonds to AlphaFold3 jobs, convert FASTA/SDF to AlphaFold3 input format, or build complex multi-chain AlphaFold3 structures with modifications, templates, and MSA data. Triggers on mentions of AlphaFold3, af3cli, AlphaFold input, AF3 JSON.
- Installs packages
In this repository2 other files it gives its agents.
- alphafold3Skill
- remote-serverSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
All commands are chainable with -.
- Very specific: line 119
Merge files: Use merge to combine base system with new ligands/sequences
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
af3cli
CLI and Python library for generating AlphaFold3 input JSON files. Repo: https://github.com/SLx64/af3cli
Quick Start (Install)
git clone https://github.com/SLx64/af3cli.git
cd af3cli
uv sync --locked
# or: pip install af3cli[biopython,rdkit]CLI Usage
All commands are chainable with -. Show help: af3cli -- --help
Basic Workflow
# 1. Config
af3cli config -f "output.json" -j "my_job" -v 2
# 2. Random seeds
af3cli seeds -n 5 - \
# 3. Add sequences
- protein add "MVKLAGST..." \
- dna add --sequence "AATTTTCC" \
- rna add --sequence "UUUGGCCGG" \
# 4. Add ligands
- ligand add --smiles "CCC" \
- ligand add --ccd "MG" \
# 5. Add bonds
- bond --add "A:1:C-B:1:O" \
# 6. Write file
- debug --showKey Commands
| Command | Purpose |
config -f <file> -j <name> -v <version> | Set output file, job name, AF version |
seeds -n <count> / seeds -v "1,2,3" | Generate random seeds or specify list |
protein add --sequence <seq> | Add protein sequence |
dna add --sequence <seq> | Add DNA sequence |
rna add --sequence <seq> | Add RNA sequence |
protein add --sequence <fasta> --fasta | Read sequence from FASTA file |
protein [...] - modification <CCD> <pos> | Add residue modification |
protein [...] - template <mmcif> --read | Add structural template |
protein [...] - msa --paired ... --unpaired ... | Add MSA data |
ligand add --smiles <SMILES> | Add ligand by SMILES |
ligand add --ccd <CCD> | Add ligand by CCD ID |
ligand add --sdf <file> | Read ligands from SDF (needs RDKit) |
bond --add "A:1:C-B:1:O" | Add bonded atom pair (E:R:N-E:R:N) |
ccd <filename> | Add custom CCD mmCIF |
protein add -i "A,B" | Specify chain IDs manually |
protein add -n 2 | Specify copy number for homomultimers |
merge <file> - protein add ... | Merge with existing file, add new entries |
debug --show | Preview JSON without writing |
Sequence descriptions (optional JSON-only comments)
af3cli protein description "kinase domain of protein X" - add --sequence "MVKLAGST"The description field is auto-excluded for AF version <= 3 (compatibility).
Python API
from af3cli import InputBuilder
from af3cli import ProteinSequence, DNASequence, RNASequence
from af3cli import SMILigand, CCDLigand
from af3cli import ResidueModification, Template, TemplateType, Bond
builder = InputBuilder()
builder.set_name("my_job")
builder.set_version(2)
# Sequences
prot = ProteinSequence("MVKLAGST...", description="kinase domain")
prot.modifications.append(ResidueModification("SEP", 5))
builder.add_sequence(prot)
dna = DNASequence("AATTTTCC")
rc = dna.reverse_complement()
builder.add_sequence(dna)
builder.add_sequence(rc)
# Ligands
builder.add_ligand(SMILigand("CCC", description="propane"))
builder.add_ligand(CCDLigand(["MG"], description="magnesium"))
# Bonds
builder.add_bonded_atom_pair(Bond.from_string("A:1:C-B:1:O"))
# Seeds
builder.set_seeds([1, 2, 3])
# Write
input_file = builder.build()
input_file.write("output.json")See references/api-reference.md for full API docs and references/cli-reference.md for detailed CLI reference.
Common Patterns
- FASTA import:
af3cli protein add --sequence <file> --fastaorfastatop-level command for bulk - SDF import:
af3cli ligand add --sdf ligands.sdf(requires RDKit) - DNA reverse complement:
dna add --sequence "AATTTTCC" --complement - Merge files: Use
mergeto combine base system with new ligands/sequences - User CCD:
af3cli ccd my_ligand.ciffor custom CCD mmCIF data
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

