executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
layers-and-opsBuild TFLearn TensorFlow v1 graph components, layer APIs, operations, collections, shapes, and train-op wiring.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to construct, inspect, or debug TFLearn graph components: input layers, dense/dropout/reshape layers, convolution/recurrent/embedding/normalization layers, merge/multi-output branches, estimator regression, activations, objectives, metrics, optimizers, initializers, regularizers, variables, summaries, and TensorFlow graph collections.
Do not use this sub-skill for full training loops, checkpoint save/load, dataset loading, or long model-family examples. Route those to training-and-persistence, data-input-pipelines, or advanced-model-recipes respectively.
tensorflow.compat.v1 and disable v2 behavior before building graphs when the surrounding runtime may be TensorFlow 2.x.Start with a clean TensorFlow graph. Prefer with tf.Graph().as_default(): or tf.reset_default_graph() before constructing a new network in notebooks/tests.
Create or register inputs. Prefer tflearn.input_data(shape=[None, ...], name="..."); if using raw placeholders, add them to tf.GraphKeys.INPUTS yourself before relying on TFLearn feed helpers.
Choose layers by rank. Dense layers accept rank >=2 and flatten extra dimensions; conv1d/2d/3d require rank 3/4/5 respectively; recurrent layers expect rank >=3; embedding expects rank 2 integer-id inputs.
Use operation names intentionally. String activations, losses, metrics, optimizers, initializers, and regularizers are resolved by TFLearn registries; use the valid names in the API reference or pass callables/classes.
Use regression only to create train-op metadata. It returns the incoming prediction tensor while adding a target placeholder and TrainOp to graph collections. Actual fit, predict, save, and load belong to training-and-persistence.
Validate collections before handing off. Check INPUTS, TARGETS, TRAIN_OPS, LAYER_TENSOR/<name>, LAYER_VARIABLES/<scope>, ACTIVATIONS, and REGULARIZATION_LOSSES as applicable.
Run the bundled smoke script when verifying a new environment or debugging graph basics:
python scripts/layer_graph_smoke.py --help
python scripts/layer_graph_smoke.py
python scripts/layer_graph_smoke.py --skip-session-run
| User intent | Use this sub-skill for | Then route elsewhere if needed |
|---|---|---|
| Build an MLP/CNN/RNN graph | Layer API choice, shapes, names, scopes, variables, train-op collection | Actual .fit()/callbacks/checkpoints: training-and-persistence |
| Attach preprocessing/augmentation to an input layer | The input_data(data_preprocessing=..., data_augmentation=...) attachment point | Creating/validating preprocessing objects or loading files: data-input-pipelines |
| Add custom TensorFlow ops with TFLearn ops | Objectives, metrics, optimizers, summaries, variables, TrainOp-ready tensors | Custom training loop orchestration: training-and-persistence |
| Debug invalid activation/loss/metric/shape | Registry names, expected ranks, collection side effects | Environment/import failures beyond this scope: root troubleshooting |
| Adapt a large architecture example | Primitive layer behavior and graph pieces | Recipe selection and expensive example reduction: advanced-model-recipes |