xargs -I puts the argument where you need it
By default xargs appends arguments to the end of the command. -I {} names a placeholder you can use anywhere, once per input line.
cat slugs.txt | xargs -I {} curl -s -o /dev/null -w '{} %{http_code}\n' https://example.com/tips/{}-I implies one argument per command, so it is slower than batching. For anything that needs the value in the middle it is the only way.
shell