nn-architect
Design and implement neural network architectures in PyTorch or Keras from task descriptions.
Skill by tezansahu
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/tezansahu-nn-architect
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, ml, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/nn-architect
What's inside
- Skill name
nn-architect- Description
- Design and implement neural network architectures in PyTorch or Keras from task descriptions. Trigger when the user asks to "build a neural network", "design a CNN/RNN/transformer", "deep learning model", "PyTorch model", "Keras model", "neural net for images/text/tabular", "create a training loop", "implement attention", or describes a deep learning task. Also triggers on "what architecture should I use", "training not converging", "model architecture advice", or requests for specific components like "add batch normalization", "implement dropout", "learning rate scheduler".
- License
- GPL-3.0
- Instructions
- 199 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- architectures.md · references/
SKILL.md (first lines)
# NN Architect
Design, implement, and train neural networks with production-quality code and best practices.
---
## Workflow
```
1. Understand task and data
2. Select architecture (references/architectures.md)
3. Implement model
4. Implement training loop
5. Add training utilities (checkpointing, logging, scheduling)
```
---
## Step 1 -- Task Identification
| Task | Data type | Architecture family |
|---|---|---|
| Image classification | Images | CNN (ResNet, EfficientNet) or ViT |
| Object detection | Images + boxes | YOLO, Faster R-CNN |
| Text classification | Text sequences | Transformer encoder (BERT) |
| Text generation | Text sequences | Transformer decoder (GPT) |
| Tabular classification/regression | Structured | MLP, TabNet, FT-Transformer |
| Time series forecasting | Sequential numeric | LSTM, Temporal CNN, Transformer |
| Recommendation | User-item interactions | Embedding + MLP |
| Anomaly detection | Various | Autoencoder, VAE |
---
## Step 2 -- Select Architecture
Read `references/architectures.md` for detailed architecture selection guidance.
---
## Step 3 -- Implement Model
**Default framework**: PyTorch (unless user requests Keras/TensorFlow).
### PyTorch Model Template
```python
import torch
import torch.nn as nn
class MyModel(nn.Module):
def __init__(self, input_dim: int, hidden_dim: int, output_dim: int, dropout: float = 0.3):
super().__init__()
self.net = nn.Sequential(
nn.Linear(input_dim, hidden_dim),
nn.BatchNorm1d(hidden_dim),
nn.ReLU(),
nn.Dropout(dropout),
nn.Linear(hidden_dim, hidden_dim // 2),
nn.BatchNorm1d(hidden_dim // 2),
nn.ReLU(),
nn.Dropout(dropout),
nn.Linear(hidden_dim // 2, output_dim),
)
def forward(self, x: torch.Tensor) -> torch.Tensor:
return self.net(x)
```
### Architecture Best Practices
- **Always include**: BatchNorm or LayerNorm, Dropout, residual connections (for deep nets).
- **Initialization**: PyTorch defaults (Kaiming) are fine for ReLU networks.
- **Activation functions**: ReLU for hidden layers (default), GELU for transformers, Sigmoid/Softmax only at output.
- **Output layer**: No activation for regression, Sigmoid for binary, LogSoftmax for multiclass (with NLLLoss) or raw logits (with CrossEntropyLoss).
---
## Step 4 -- Training Loop
### PyTorch Training Template
```python
import torch
from torch.utils.data import DataLoader
from tqdm import tqdm
def train_one_epoch(model, dataloader, optimizer, criterion, device):
model.train()
total_loss = 0
correct = 0
total = 0
for batch in tqdm(dataloader, desc="Training"):
inputs, targets = batch
inputs, targets = inputs.to(device), targets.to(device)
optimizer.zero_grad()
outputs = model(inputs)
loss = criterion(outputs, targets)
loss.backward()
torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)
optimizer.step()
total_loss += loss.item() * inputs.size(0)
if outputs.dim() > 1: # Classification
correct += (outputs.argmax(dim=1) == targets).sum().item()
total += inputs.size(0)
avg_loss = total_loss / total
accuracy = correct / total if correct else None
return {"loss": avg_loss, "accuracy": accuracy}
@torch.no_grad()
def evaluate(model, dataloader, criterion, device):
model.eval()
total_loss = 0
correct = 0
total = 0From tezansahu/ai-garage, GPL-3.0.
More from tezansahu/ai-garage
- 0.605score
generate-structurizr-c4-diagram
tezansahu
Generate C4 software-architecture diagrams in Structurizr DSL from a codebase, folder(s), a description, docs, or an existing diagram, then render them in the…
SkillBFreshness: B★ 16Claude Code +9 - 0.605score
insight-extractor
tezansahu
Extract key, actionable insights from knowledge resources and save as structured markdown files in the knowledge/insights/ folder.
SkillBFreshness: B★ 16Claude Code +9 - 0.605score
arxiv-submission
tezansahu
Submit a paper to arXiv as a preprint.
SkillBFreshness: B★ 16Claude Code +9 - 0.602score
evaluate-skill-with-copilot-sdk
tezansahu
Evaluate a skill with the GitHub Copilot SDK — measure its triggering accuracy and compare its output quality against a no-skill baseline.
SkillBFreshness: B★ 16Claude Code +9 - 0.580score
skill-creator
tezansahu
Create new skills, modify and improve existing skills, and measure skill performance.
SkillBFreshness: B★ 16Claude Code +9 - 0.575score
tdd
tezansahu
Test-driven development.
SkillBFreshness: B★ 16Claude Code +9 - 0.572score
to-spec
tezansahu
Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
SkillBFreshness: B★ 16Claude Code +9 - 0.572score
to-tickets
tezansahu
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker —…
SkillBFreshness: B★ 16Claude Code +9 - 0.564score
implement
tezansahu
Implement a piece of work based on a spec or set of tickets.
SkillBFreshness: B★ 16Claude Code +9 - 0.555score
stats-advisor
tezansahu
Recommend and execute the right statistical test for a given question, with plain-English interpretation.
SkillCFreshness: C★ 16Claude Code +9 - 0.555score
eda-autopilot
tezansahu
Perform comprehensive Exploratory Data Analysis on any tabular dataset (CSV, Parquet, Excel, or database table).
SkillCFreshness: C★ 16Claude Code +9 - 0.555score
llm-app-builder
tezansahu
Scaffold and build LLM-powered applications -- RAG pipelines, agentic workflows, structured output chains, tool-calling agents, and chatbot interfaces.
SkillCFreshness: C★ 16Claude Code +9
Signals
- Stars
- 16
- Forks
- 8
- Open issues
- 1
- Last commit (this folder)
- Jul 7, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/tezansahu/ai-garage
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from tezansahu
- 0.605score
generate-structurizr-c4-diagram
tezansahu
Generate C4 software-architecture diagrams in Structurizr DSL from a codebase, folder(s), a description, docs, or an existing diagram, then render them in the…
SkillBFreshness: B★ 16Claude Code +9 - 0.605score
insight-extractor
tezansahu
Extract key, actionable insights from knowledge resources and save as structured markdown files in the knowledge/insights/ folder.
SkillBFreshness: B★ 16Claude Code +9 - 0.605score
arxiv-submission
tezansahu
Submit a paper to arXiv as a preprint.
SkillBFreshness: B★ 16Claude Code +9 - 0.602score
evaluate-skill-with-copilot-sdk
tezansahu
Evaluate a skill with the GitHub Copilot SDK — measure its triggering accuracy and compare its output quality against a no-skill baseline.
SkillBFreshness: B★ 16Claude Code +9 - 0.580score
skill-creator
tezansahu
Create new skills, modify and improve existing skills, and measure skill performance.
SkillBFreshness: B★ 16Claude Code +9 - 0.575score
tdd
tezansahu
Test-driven development.
SkillBFreshness: B★ 16Claude Code +9
Cite this page
nn-architect skill. Agent Mart. https://agentmart.dev/skills/tezansahu-nn-architect (last updated 2026-10-24)