This paper introduces a viscous vortex model for predicting the optimal drag reduction of riblet surfaces, eliminating the need for expensive direct numerical simulations (DNSs) or experiments. The footprint of a typical quasi-streamwise vortex, in terms of the spanwise and wall-normal velocities, is extracted from smooth-wall DNS flow fields in close proximity to the surface. The extracted velocities are then averaged and used as boundary conditions in a Stokes-flow problem, wherein riblets with various cross-sectional shapes are embedded. Here, the same smooth-wall-based boundary conditions can be used for riblets, as we observe from the DNSs that the quasi-streamwise vortices remain unmodified apart from an offset. In particular, the position of these vortices remain unpinned above small riblets. The present approach is compared with the protrusion-height model of Luchini et al. (J. Fluid Mech., vol. 228, 1991, pp. 87–109), which is also based on a Stokes calculation, but represents the vortex with only a uniform spanwise velocity boundary condition. The key novelty of the present model is the introduction of a wall-normal velocity component into the boundary condition, thus inducing transpiration at the riblet crests, which becomes relevant as the riblet size increases. Consequently, the present model allows for the drag-reduction prediction of riblets up to the optimal size. The present approach does not rely on the scale separation formally required by homogenisation techniques, which are only applicable for vanishingly small riblets.